incorrect the_modified_time / post_modified
-
Hello,
I have a wordpress site that is close to 10 years old. I recently altered the template files so single posts would display the date they got updated on instead of the date they got published on.
To my surprise, every post that was published or updated before 6 februari 2021 now shows 6 februari 2021 as the_modified_time. The posts that were published or updated after 6 februari 2021 show the correct date.
I retraced my steps and remembered that on 6 februari 2021, after publishing a post, I saw the yoast notification to index a site’s SEO data (14.0 update). I then ran the indexing proces. Everything seemed fine and I forgot about it. This seems to explains the date.
I then went into the actual DB and found that in the table wp_posts, each row still has the correct date (the post_modified field). However, when I went into the wp_yoast_indexable table, there, the rows have the incorrect date (the 6 februari) in the post_modified field.
Wordpress site diagnose has been shouting at me for a while that my sql is outdated and I should be using a sql version higher then 5.6. (I’ve been putting this off since I have no clue how to do this or solve problems doing this) I just mention this cause it might have something to do with the indexing proces.
So, here’s my question: how do I fix this. It doesn’t only affect the post date I display to visitors but also the json-ld and the sitemap. Can I rerun the index proces somehow of can I alter some hook? Any ideas?
- The topic ‘incorrect the_modified_time / post_modified’ is closed to new replies.