- This topic has 5 replies, 2 voices, and was last updated 2 years, 10 months ago by Andrew Misplon.
Tagged: display date modified date
- July 20, 2020 at 9:05 am #14735
I was just wondering if the theme will have an update where the modified date is displayed instead of the published date? With the sorting still based on the latter.
NelsonJuly 20, 2020 at 6:11 pm #14736
Thanks for reaching out.
That would be a custom development task. The
ultra_posted_onfunction that outputs the date would need to be used in a child theme and customized to change which date is printed. To change the post order, you’d need to modify the posts query: https://wordpress.stackexchange.com/questions/154595/how-do-i-order-posts-by-modified-date. You can try the function posted in the above link in Code Snippets plugin and see if that helps. I’ll try to assist you tomorrow with changing the
ultra_posted_onfunction.July 21, 2020 at 2:43 am #14737
No worries, Andrew. I was actually referring to retaining the sort order based on the published date despite that it’s the modified date that’s on display. I’m currently looking at a plugin that displays the modified date so all good’s for now. Will let you know otherwise. Thanks!July 21, 2020 at 8:33 am #14740
Ahh, I’m with you now. Yes, changing which date is displayed won’t impact the ordering of the post loop. Let me know how it goes with the plugin and perhaps which plugin you used. Thanks 🙂July 22, 2020 at 12:15 am #14744
Sure thing, man. It’s WP Last Modified Info. Works wonders.July 22, 2020 at 8:56 am #14745
Awesome, glad to hear it helps, thanks for the tip.
You must be logged in to reply to this topic.