[Resolved] How to Display the Last Updated Date of Your Posts

Home Forums Support [Resolved] How to Display the Last Updated Date of Your Posts

Home Forums Support How to Display the Last Updated Date of Your Posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1663979
    shailesh

    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?

    #1663982
    Elvin
    Staff
    Customer Support

    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/

    A wise man once said:
    "Have you cleared your cache?"

    #1663983
    shailesh

    HeHe.
    Thanks.

    #1664213
    Elvin
    Staff
    Customer Support

    No problem. Glad you got it sorted. 😀

    A wise man once said:
    "Have you cleared your cache?"

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.