Archived topic
Last Updated Date Via dynamic content and schema check in search engines.
5 replies · Started by Sharmila on May 18, 2021
Hello Tom, Thanks for the latest great update. Works like a charm.
Now my question.
I want last updated date displayed in the blog post. This can be done by new dynamic content. But can it be picked by search engines as updated date. Or it is just for the sake of showing updated date.
Initially I implemented updated date by php code and some css. I want to remove it.
I am using the site demo "Search" from site library.
//Thanks.
Hi there,
For search engines to solely pick up only the updated date, the sure way to go is to only have a modified date rendered and not have both on your HTML structure.
We can filter that in.
Check the PHP snippet here -
https://generatepress.com/forums/topic/customising-entry-meta-published-vs-updated/#post-1742685
This Should explain what I need in all aspects.
Hi there,
so the code that Elvin provided will apply the Updated date to the default Theme meta - as is shown in the Blog/Archives.
And you should keep that code enabled if you want to continue using the default Blog/Archive templates.
For the single post - the best method would be to replace the Header Element with the Block Element.
The Update Date ( dynamic data ) will display the valid HTML for the date.
For the Schema - GP doesn't generate the Meta data for that - you would add this via an SEO plugin. None of the above will affect that as the SEO plugin will dictate which date to use.
Thanks David.
You're welcome