Resolved

Display Date

Ultra Theme started by Nelson Jul 20, 2020 5 replies
Nelson Jul 20, 2020 · 9:05 am #14735

Hi 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,
Nelson

Andrew Misplon Puro Jul 20, 2020 · 6:11 pm #14736

Hi 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 the ultra_posted_on function.

Nelson Jul 21, 2020 · 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!

Andrew Misplon Puro Jul 21, 2020 · 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 🙂

Nelson Jul 22, 2020 · 12:15 am #14744

Sure thing, man. It’s WP Last Modified Info. Works wonders.

Andrew Misplon Puro Jul 22, 2020 · 8:56 am #14745

Awesome, glad to hear it helps, thanks for the tip.

6 posts