How to Remove Date from Meta Description in Search Results

Share This Article:

Tutorial on How to Remove Date from Meta Description in Search Results of WordPress blog. Methods explained in this tutorial are tested well and works on any WordPress theme. Well, there are many factors to be considered before removing date from search results description.remove-date-timestamp-google-search-results

Reasons to Remove Date from Search Results

There are many reasons to remove date from search results description and some important ones are mentioned below.

  • To maintain the freshness of the content.
  • To improve CTR in Google Search Results.
  • To get extra space for text in META Description.

For better SEO use WordPress SEO by Yoast Plugin

Is it Necessary to Remove Date from Search Results ?

This completely depends on the niche of the blog you are working on. Tutorials, tuts, reviews and how-to guides will remain same for years (till the reviewed product / software is updated) and for articles written on them, there is no need to display date.


Coming to other things like daily news, magazines, sports etc related blogs and websites update content regularly and there is a need to display date, so that readers can easily find recent stories with breaking news.


Remove Date from Meta Description in Search Results

Date can be removed from search results description in many methods. We have researched well and found these following methods, which are working well. Check them all and follow any one of them based on your skill set.

check How to add ALT tag to images in WordPress

1. Using Code in Functions File

This can be considered as the aggressive version of removing date and time-stamp from your WordPress blog. It is very powerful and removes the function of every php code, that helps to generate date. Date displayed in the comments will also be completely removed.

/** Start of Remove Date TimeStamp from blog posts */
function remove_post_dates() {
add_filter('the_time', '__return_false');
add_filter('get_the_time', '__return_false');
add_filter('the_modified_time', '__return_false');
add_filter('get_the_modified_time', '__return_false');
add_filter('the_date', '__return_false');
add_filter('get_the_date', '__return_false');
add_filter('the_modified_date', '__return_false');
add_filter('get_the_modified_date', '__return_false');
add_filter('get_comment_date', '__return_false');
add_filter('get_comment_time', '__return_false');
add_action('loop_start', 'remove_post_dates');
/** End of Remove Date TimeStamp from blog posts */

Add this code to functions.php file in your theme and update it. Wait for Google Search Bots to crawl and index your blog posts. Date will be removed from meta description of search results.

2. Using a WordPress Plugin

This is simple and recommended method to remove date from search engine description. We got a cool WordPress plugin, that helps to remove date easily.

Date Exclusion SEO

If you dont want to mess up with code and like to install a plugin in two simple steps, then Date Exclusion SEO is for you. This is a great plugin that helps to remove dates from posts, tags, category and author pages.

Install Plugin ยป


3. Using JavaScript Method

This can also be considered as the manual method, in which you need to replace date and time code with a JavaScript based one. Generally date can be found in single.php and comments.php file of your WordPress theme.

If the_time is used:

<?php the_time('F j, Y') ?>

Should be replaced with by the below code.

<script language="javascript" type="text/javascript">document.write("<?php the_time('F j, Y') ?>");</script>


If the_date is used:

<?php the_date() ?>

Should be replaced with by the below code.

<script language="javascript" type="text/javascript">document.write("<?php the_date() ?>");</script>

Now, you need to wait till your website is re-crawled by Google. Date will be completely removed from SERP results description.

Hope you like this informative article on how to Remove Date from Meta Description in Search Results. If you got any query or if any of the methods mentioned above are not working, drop a comment here and we will get back to you very soon.

Genesis is the most flexible WordPress theme framework that comes with tons of options. We have been using Genesis on all of our blogs and recommending the same to you. Every bit of it is coded according to the standards. Give it a try!


  1. three method is very nice and useful tips thanks for sharing this :)

  2. Good One, I like the method as i was able to remove all the date stamp from my wordpress site but was struggling to remove it from RSS and feedburner. hope this will help me to achieve this.

  3. Installed that plugin , let’s see what happen , thanks for the post :)

  4. Marcus says:

    I just tested this guide on exclusion of dates on my page – and it works. Earlier I thought it was possible to get rid of the dates by deleting some code in the theme files, but still I saw dates in the search results. This works for shure. Just wrote a post and checked the search results later. Perfect:)

  5. Tesur says:

    Plugin is good but to limit the number of plugins used, I preferred to add the function.

  6. Neeraj says:

    thanks the dates issue really messed up our meta description space so was searching the whole google and yoast site for solution but finally the plugin worked.
    Thanks for the help.

  7. Mani says:

    I think update is need for plugin since it update over 2 years ago :( better to use code method ๐Ÿ˜›

  8. Ravi says:

    Excellent tutorial, I was just searching for it. I have used the option No. 1 and inserted the above code in my functions.php. Now some of the posts are showing the comment date and some are just showing hypertext word ‘at’ which I think is the comment number. Could you please tell me how to remove this word ‘at’ from the comments.
    Thanks in advance.

  9. I liked the theme of the article is very useful. I think I will try the plugin, I think it fits my need. Thank you. Greetings.

  10. That Plugin is Outdated Now, WordPress Disallows The Installation, Better To use manual Code Change method.

  11. zeek says:

    none of the methods work form me.
    first one doesn’t work
    second plug in is too old
    third i don’t have such a lines with my theme

  12. Thanks, I wanted to remove the date from my blog posts, and your article was very helpful.

Speak Your MindComments Policy →


Looking for More Awesomeness?