Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

How to keep consistency in the date?

  • Hi

    How are you

    https://prnt.sc/WIXd1cGnw9x8

    Pls check above screenshot

    You will find the publishing date of the post.

    In case, I have added extra new content after 2 days for this old post, then saved it again with extra new content.

    How to keep consistency in the publishing date and updating date?

    Should i change some setting inside Generepatess or Generateblocks?

    Pls help me to fix that

    Thnaks,Paul

  • Hi there,

    Are you looking to display the last updated date only on the blog post?

    The date shown in the Posts list in the admin area always reflects the published date, even if the post is updated later. That’s the default WordPress behavior.

  • Hi Alvind

    1, my published date of the post is 2026/01/19 https://prnt.sc/baFxvZA04a9M
    2, today i have updated my content for this post, i mean i added new new content based on the last content like this, https://prnt.sc/mzqt4Ea3fa4q,, then saved this post again, here the new date should be 2026/01/20 at the postion of https://prnt.sc/0Uu6X0f34wUS, right?

    Otherwise, How do search engines evaluate the updates of my content? Apart from the new content, it’s mainly the change in the publication date, right?

  • The updated date exists in the HTML markup of the post, so search engines will recognize that the content has been updated:

    By default, GeneratePress only displays the published date. If you want to display the updated date instead, you can use this PHP snippet:

    
    add_filter( 'generate_post_date_show_updated_only', '__return_true' ); 
    

    Adding PHP: https://docs.generatepress.com/article/adding-php/

  • Hi Alvind

    If I add the above PHP snippet, https://prnt.sc/lea0_q_NErWj, so GeneratePress will change the published date on the website,

    but in the HTML markup, still will show the original published date of the post blog?

  • Hi there.

    Did you actually add the code Alvind provided to your site? When this code is added, only the updated date should show in the markup.

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