Ordering blogposts by publishing date

@pamtbaau Thanks for taking the time. I will try my best to find that solution and post my results after.

@werdi Is there a github repo I could clone to test? You can DM me the link if you would like to keep it private.

@pamtbaau I’m afraid I have no idea how github repos work. :see_no_evil:

@werdi, Respect! it is very brave to admit that in public… :wink:

But you do know your way with Git itself, do you???

1 Like

@pamtbaau No shame whatsoever :joy: I know OF github and repos but know nothing about how it works. I know that people can post issues and others can work on them but how it all happens, no idea. And I want to respect your time so this is no fishing for instructions; I know that google has the answer to everything.

@pamtbaau This issue is starting to make sense now. Turns out, publish_date orders the posts by ā€œlast savedā€. Date orders the posts by date. When both were mixed, it was difficult to tell one from the other.

1 Like

@werdi, I still don’t understand what publish_date has to do with it, except… When you save a page which has only publish_date set, you update its modified_date. Since your ordering is dir:desc, pages with latest date or modified_date will move to the top.

@pamtbaau Exactly. And in that hierarchy, the posts where only publish_date has been set override those who have only date. Those with only date retain their order, though, even after being modified.

1 Like