How to set date to appear when your blog posts shows up on google

S E O |

15th Apr, 2023

Click here to share

Add a date meta tag

This post on StackOverflow  suggests that adding the below code as a meta stage to your page head section is a criterion to follow

<head>
<meta http-equiv="last-modified" content="YYYY-MM-DD@hh:mm:ss TMZ" />
</head>

if you are using laravel you will have to use the code below

<head>
<meta http-equiv="last-modified" content="<?=$post->updated_at->format('Y-m-d@H:i:sP')?>" />
</head>

Also to be on the safe side, ensure that you have just one date on the page

The solution is to only have one date visible. Thus, the published date should not be visible and the modified date should be the one in the article.

Leave a Reply

RELATED POSTS


Total of 0 Comment