Site logo

Archived topic

Date not updating in Google

22 replies · Started by Tibs on May 28, 2020

Viewing posts 1–15 of 23

I've read other support tickets about this topic, but couldn't come to a conclusion.

Here are the details:

Problem: Date isn't being updated in Google Snippet: http://prntscr.com/spljvn. (It updates fine on website, but not on Google Search)

Details: I'm using Author/Date snippet: http://prntscr.com/splkf1 so it could look like this: http://prntscr.com/spllf1. I also have custom CSS: http://prntscr.com/spllxs.

Question: How can I make the updated date show up in Google search?

P.S. I've had no problems with this issue with other themes. I'd update the post and shortly after, Google would pick up the updated date and display in search.

Quick disclosure:

My previous theme (Soledad) didn't have this problem. The date would update both on site and Google search.

I just changed the theme to (GeneratePress) and now, the date isn't updating in Google search. In fact, it shows the original published date -- not the updated date.

Can you remove the other generate_post_date_output function which is adding the separator to test first?

Please make sure your caching plugins are all cleared if you are using one.

Just to confirm:

You’d like for me to remove this line of code: prntscr.com/sq56hs

And then clear cache?

Yup give that a shot first.

Let me know :)

I've removed the snippet: http://prntscr.com/sq9hxb

(Now, there's no space between author and date: http://prntscr.com/sq9ihv)

I've also cleared cache. Lastly, I've requested Google to index content to see if date will update in Google search.

So far, nothing. Date is still outdated in Google.

You should be fine to add those functions back.

These things aren't instant in Google - it may take a couple of days to update. Any chance you can link us to your site so I can take a look at the code to make sure it looks good?

Sure thing!

I've edited the original post to include my website :)

Side note: I used to use Soledad theme and the dates would update (both on site and in Google). 2 days ago, I switched themes to GeneratePress and now, the dates are reverting back to original published date (in Google).

Hey Tom,

I've added the snippet: http://prntscr.com/sqrmmb

Now it shows two dates on post: http://prntscr.com/sqrmw2

P.S. Would it be ok with you if you removed my post URL from your answer?

I appreciate your help Tom in trying to find a solution :)

Can you remove the last function from your second snippet? The post date one?

This archived topic is closed to new replies.