Site logo

Archived topic

How to Display the Last Updated Date of Your Posts

3 replies · Started by shailesh on February 18, 2021

Viewing posts 1–4 of 4

In WordPress, published date is shown by default. Even if I update my post, it will show published date. This is a bad practise of SEO.
I want to show my UPDATED DATE in post.
How to SHOW UPDATED DATE IN POST?

Hi there,

Do you want to post the UPDATED date only if it exists?

If so, try adding this PHP snippet:

add_filter( 'generate_post_date_show_updated_only', '__return_true' );

Here's how to add PHP https://docs.generatepress.com/article/adding-php/

HeHe.
Thanks.

No problem. Glad you got it sorted. :D

This archived topic is closed to new replies.