How do I remove the date from the google search results of my posts?

Is this related to WordPress or is it theme-specific?

  • I didnt understand. You have some date in your meta description and you want to remove that data from dascription? Can you be more precise? Do you use any SEO plugin? – pendjer Dec 4 '13 at 19:42
  • I use Wordpress Yoast plugin - for some reason the date of the post is the first thing that appears on the google meta description - i don't know how this is added to the description – Joanna Mikalai Dec 4 '13 at 19:55

Paste this code in functions.php

add_filter( 'wpseo_show_date_in_snippet_preview', false); //Returning false on this will prevent the date from showing up in the snippet preview.

Note: WordPress SEO api


I think I got it.

Navigate to SEO>Titles and Metas and remove %%date%% from Meta description template field.


Unfortunately the accepted answer is incorrect. (See 1.)

Below is the working answer I have found. (Sourced here 2.)

add_action('wpseo_dc_'.'DC.date.issued', '__return_false'); // Premium only
add_filter( 'wpseo_og_article_published_time', '__return_false' );
add_filter( 'wpseo_og_article_modified_time', '__return_false' );
add_filter( 'wpseo_og_og_updated_time', '__return_false' );
  1. https://kb.yoast.com/kb/date-appears-search-results/
  2. https://gist.github.com/amboutwe/e5b83cd990b5c1bc4015c20f5e3cd754

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.