- This topic has 5 replies, 2 voices, and was last updated 4 years, 4 months ago by Andrew Misplon.
Tagged: display date modified date
- AuthorPosts
- July 20, 2020 at 9:05 am #14735
NelsonParticipantHi Andrew,
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.
Best regards,
NelsonJuly 20, 2020 at 6:11 pm #14736
Andrew MisplonKeymasterHi Nelson
Thanks for reaching out.
That would be a custom development task. The
ultra_posted_on
function 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 theultra_posted_on
function.July 21, 2020 at 2:43 am #14737
NelsonParticipantNo 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
Andrew MisplonKeymasterAhh, 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
NelsonParticipantSure thing, man. It’s WP Last Modified Info. Works wonders.
July 22, 2020 at 8:56 am #14745
Andrew MisplonKeymasterAwesome, glad to hear it helps, thanks for the tip.
- AuthorPosts
You must be logged in to reply to this topic.