Need to sort by "Latest by PUBLISH DATE"

Posted in: Newspaper
Post count: 13

The “Latest” sort method is not sufficient. I need a “Latest” by “Published Date” as i run a big news website and i have articles that are written now, but are scheduled to be published in the future. Unfortunately when the time to be published comes, they are not “Latest” and do not show at the blocks (because based on “Latest” and because they were originally written in the past they are not at the top). I hope you can understand what i’m saying :/

Is there a way to bypass “Latest” for now? I have no problem on modifying php code, i guess i need to find your function that builds the query and wherever it gets a “sort” as “Latest” i should add a sorting by post publish date or something? (and maybe add an index at db for that column)

So i hope at least to find a temporary solution for now.:
1) Please, just save me some time and tell me where to start looking at the code so i can tamper the query building, i can handle the rest trust me.

2) Please add this sorting method to a future update so everyone can use this. i’m sure people will use this.

Thanks
Dimitris

Post count: 22421

Hello,
If you want to change the sorting order of the blocks or add a new sort order, you can follow this topic to see how it can be done:
https://forum.tagdiv.com/topic/how-to-order-tag-items-from-least-recent/
Thank you!

Post count: 13

Thanks Bogdan! Exactly what i needed!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.