Site logo

Archived topic

Sort Recent Posts by Last Updated date

5 replies · Started by George on May 11, 2021

Viewing posts 1–6 of 6

I updated my GeneratePress site to show the Last Updated date for a post. I also updated the site to list the post summaries by Last Updated date.

How can I also sort the "Recent Posts" list by the Last Updated date?

For example, if you view my bog page, it shows my original Welcome post at the top because I just updated it. But it is still listed last under "Recent Posts."

Thanks much!
George

Hi Leo,

I had already added that PHP snippet, and it did sort the blog summaries on my Blog page. But it does not sort the "Recent Posts" list that appears in the right column. The Welcome! post is listed at the top of my Blog page, because it was the last post that I updated. But it is listed last in "Recent Posts" list.

Thanks,
George

Ahh I see.

Unfortunately that's a WordPress core widget so you will need to check with WP's support team and see if that can be modified.

Ahh, yes, I figured that out. I replaced the standard "Recent Posts" widget with the "Recent Posts Widget Extended" widget and that solved my issue. I am not sure if that's the best one to use (as it's untested with the current version of WordPress), but it seems to be working.

Thanks again,
George

I've used that plugin a couple times and quite like it as well :)

WordPress makes it a bit difficult to update the compatibility version number so I wouldn't worry about that too much.

This archived topic is closed to new replies.