-
Anonymous
Hi
How are you
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
-
Alvind
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.
-
Anonymous
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?
-
Alvind
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/
-
Anonymous
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?
-
George
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.
- You must be logged in to reply to this topic.