Remove Date Stamp from WordPress for Better Google Ranking

Date Stamps help users to check whether the content they are reading is latest or not. This can helpful to News websites and blogs that need constant updating. But, dates can be harmful to blogs and websites with evergreen content. Evergreen contents means the content that can be used for a long period of time. Like how-to and best-of articles.

How Date Stamps can Decrease Blog Traffic?

Blogs that provide evergreen content tend to post with some days of gap or may be a month gap. Because they try to post in-depth article rather than posting some frequent news. While searching on Google readers normally try to search for the latest article. And Google helps them by showing links with their published date. So, let’s say it’s the month of May, so the users will tend to click on the posts that were posted around the month of May. If the content is about year old than the user won’t click the link in the SERP. Even if the content is valuable and worth reading.

So, to avoid such thing to happen. The best solution is to remove the date stamps. The users won’t know when the article was posted. Also, it’s considered to be a good practice, since the Google’s Panda Algorithm was brought in. The Panda effect caused older articles to rank low in the SERP and ranked higher the article that were new. You can read about it more here in a case study done by Shoutmeloud.

How to Remove Date Stamps from WordPress Blog?

There are 3 methods through which you can remove the date stamps from your WordPress Blog.

Method 1: Completely Remove dates

This method is an aggressive one which will completely remove dates from your blog. But, don’t worry it won’t affect your site traffic as the sitemap will always have your dates.

Go to Appearance > Editor and open function.php. Copy the following code right before the first function or right after <?php.


/** 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 */

And hit update file.

Method 2: Use JavaScript

Go to Appearance > Editor and find the following code in single.php and index.php.

<?php the_time(‘F j, Y’) ?>

and replace it with:

<script type=”text/javascript”>document.write(“<?php the_time(‘F j, Y’) ?>”);</script> 

Method 3: Plugins

If you’re too lazy to edit some code than this method’s for you. Plugins do the work that needs coding to be accomplished. The best plugin I found was the WP old post date remover. This plugin let’s you remove dates from post that are “X” days old. You just have to fill in the X with the desired value (in days).

remove dates wordpress

Shows dates in post that are 30 days or less old.


So, if you want to remove the dates from posts that are 30 days old, than set the value to 30 and hit save changes.

You can also checkout my other tutorials on WordPress:

Add 2 More Layers of Security to WordPress

How to Bypass Google Authenticater when Unable to Login to WordPress

  1. Hi, wp meta and date remover and other plugins don’t work with urls containing date; dates still are in search result. What to do? I don’t want to change permalinks.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.