gstarter
Forum Replies Created
-
Forum: Plugins
In reply to: [Contextual Related Posts] Related posts based on publish dateWorks like charm! Thanks Ajay 🙂
Forum: Plugins
In reply to: [Contextual Related Posts] Related posts based on publish dateThanks Ajay!
It works partially and I do not understand what rules does it follow …
Take for example https://www.tasteguru.com/weekly-dinner-plans/ in theory, when clicking on each of the recipes in the same plan, all the other recipes in the same plan should be added to the related recipes since all the recipes on the same plan have the same publish date.
You can try some of them and see that there are times were there are two related recipes and times there are no related recipes …Any idea why?
Cheers,
Guy.Forum: Plugins
In reply to: [Contextual Related Posts] Related posts based on publish dateThanks but it didn’t work.
get_the_date returns a string …Forum: Plugins
In reply to: [Contextual Related Posts] Related posts based on publish dateMoreover, there is a notice for the added lines:
A non well formed numeric value encounteredForum: Plugins
In reply to: [Contextual Related Posts] Related posts based on publish dateThanks!
Now the additional conditions are added to the query:
AND wp_posts.post_date > ‘1969-12-31’
AND wp_posts.post_date < ‘1970-01-02’Looks like it is not the post date …
Forum: Plugins
In reply to: [Contextual Related Posts] Related posts based on publish dateNo Error, I just need you to fix the query so that it will work …
The lines you used don’t make sense since no recipe will be in this date, you request the current date which is not relevant while you need to request the publish date of the recipe.
Does it make sense?
Forum: Plugins
In reply to: [Contextual Related Posts] Related posts based on publish dateHi Ajay,
This doesn’t work as well and there is no error in the code.
I think I understand what the problem is:
The recipes that should be returned from the query should have the same publish date as the current recipe, but only by the year month and day.
This is almost there but the problem it compares a full dates and there is no other publish date that match the current post date …
AND wp_posts.post_date = (select post_date from wp_posts where wp_posts.ID = $id)Could you refine the above?
Thanks!Forum: Plugins
In reply to: [Contextual Related Posts] Related posts based on publish dateHi Ajay,
Thanks for sending the code.
Other than adding the code to the functions.php file, was I supposed to do anything else?
When I used the code as is no results were fetched …
I tried -1, 1 and 0, none worked 🙁Thanks,
Guy.Forum: Plugins
In reply to: [Contextual Related Posts] Related posts based on publish dateThanks Ajay.
Yes I do, I have 5-20 recipes published on the same day, and they should be related to each other.Thanks for your help
Forum: Plugins
In reply to: [Contextual Related Posts] Related posts based on publish dateThanks Ajay,
But you are referring to the sorting, and I am referring to the related posts that appear on each post.
I’d like the related post to be only the ones with the same publish date as the current post.
Does it make sense?Cheers,
Guy.Forum: Plugins
In reply to: [Autoptimize] Page load issueThanks for your help Frank, much appreciated!
Forum: Plugins
In reply to: [Autoptimize] Page load issueThanks Frank.
Yes it is, BUT I’m looking for the way to do it right (not you or someone else to do it for me) AND it is not 100%, there are still parts that get in their position in delay.Two problems:
1. I’m kind of perfectionist
2. I would like to master it, so I can apply it to all my current sites and future sites.Any advice?
Forum: Plugins
In reply to: [Autoptimize] Page load issueYep, I tried the same, but doesn’t look better 🙁
It is live now with the css generated by criticalcss.comAny other way to track the right css that you know?
Forum: Plugins
In reply to: [Autoptimize] Page load issueSo if I understand correctly it is not because of the js, but because of the “Inline “above the fold CSS” which lacks some of the styling, correct?
I tried to find the lacking css part (used several critical path css tools), but none solved the problem.
Is there another way to know which part is missing?Thanks,
Guy.Forum: Plugins
In reply to: [Autoptimize] Page load issueNo, on loopindex.com, it is set now – http://www.loopindex.com/inline-comments/
Thanks Frank!