Hello,
Have you tried following the previous guide I posted? This one: https://www.shoutmeloud.com/how-to-remove-date-from-google-search-results.html
Let me know if it helps you.
That solution avoids the date to be updated with a minor changes which is not our goal.
Morever, the other solution is a plugin that hasn’t been updated in 10 months.
My sitemap on RankMath shows the page has been updated afterwards but Google seems to be ignoring that.
With that, pages without date have CTR 3-4 times higher than all my pages with date which is a pity I am losing tons of traffic with that.
Thanks anyway.
Hello,
You can try the following code to remove those tags, you can add the following code to your theme’s functions.php file:
/**
* Rank Math code to change the content of specific social meta tags.
*
* The dynamic part of the hook name. $network, is the network slug
* and $og_property, is the property which we are outputting.
*
* @param string $content The content of the property.
*/
add_filter( "rank_math/opengraph/facebook/article_published_time", function( $content ) {
$content = '';
return $content;
});
add_filter( "rank_math/opengraph/facebook/article_modified_time", function( $content ) {
$content = '';
return $content;
});
add_filter( "rank_math/opengraph/facebook/og_updated_time", function( $content ) {
$content = '';
return $content;
});
I hope this info helps. Thank you.
-
This reply was modified 4 years, 7 months ago by Alberto.
Hey thanks,
I investigated a lot and I am almost sure I found out where it comes from, and I am sure that Rank Math works perfectly and does not cause that.
Thanks a lot !
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.