How To Remove Post Dates from WordPress

This is a Guest post from Olga Ionel from

If you are blogging on WordPress, one of the things that will be automatically included with your post will be the date that you wrote the blog. Of course, the date can be a good thing in many ways. For example, this will make it easier for you to sort through your own posts and keep them organized. It also enables your users to know when a post was written, whether it has become old or outdated. There are also ways, though, that the date can be hindering you and you may not even know it.


This is what you need to consider. A dated blog will appear as just that in search engines. When your post comes up after a search, one of the things that will appear just below the title is the date. You most likely have noticed this when you performed your own searches. So, what is the problem with this? Actually, there is a big problem that could be affecting how many readers you get. The problem is that readers are picky about what they will and will not read on the Internet and they will be extremely picky about the date. In other words, if the date is more than a few months old, the reader will automatically assume that it is outdated and not useful. Your post may be very useful and it may be getting overlooked all because of a little date just on a search result.

As you can see, there is a very good reason to remove the date from your WordPress posts as they appear in search results. You actually have to take several steps to make this happen. If that date gets left anywhere in the post or in the comments or on the post page, then search engines, like Google, will find it. You must remove the date from everywhere. Do you know what everywhere means? Here are some of the places you will need to locate and remove the date:

  • The individual post
  • The comments left on the post
  • The post groupings

To remove the date from your WordPress themes, the easiest way to actually do this is by using plugin called called WP Post Date Remover. There are no options on the plugin. Just activate it, and it will remove the dates from your posts, homepage, category pages, etc.

A more manual way of doing this is by finding the code for the date function, and removing it. You will want to look for one of these functions:

<?php the_date(); ?>


<?php the_time(); ?>

When looking for these functions, keep in mind that they may not look exactly as they do above. They may look like this, for example:

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

These files are the most common where you will probably find the date function:

  • index.php (maybe home.php)
  • archive.php
  • category.php
  • single.php
  • page.php

Another manual method of doing this is to go to “Appearance > Editor” in your WordPress admin and add this code to the top of your theme’s functions.php file:

function jl_remove_post_dates() {
	add_filter('the_date', '__return_false');
	add_filter('the_time', '__return_false');
	add_filter('the_modified_date', '__return_false');
} add_action('loop_start', 'jl_remove_post_dates');

(The above method requires WordPress 3.0 or above)

if your website still shows post date, you can replace it with this version:

function jl_remove_post_dates() {
	add_filter('the_date', '__return_false');
	add_filter('the_time', '__return_false');
	add_filter('the_modified_date', '__return_false');
	add_filter('get_the_date', '__return_false');
	add_filter('get_the_time', '__return_false');
	add_filter('get_the_modified_date', '__return_false');
} add_action('loop_start', 'jl_remove_post_dates');

With all this work to remove dates, is it truly worth it? Actually, it could very much be if you have not been getting enough readers. By removing the dates, you will find that your site can have much more search engine success.

About author

Olga Ionel is an original writer at – a leader in the wordpress themes industry. She is fond of sharing SEO and blogging ideas.

About the Author

This post was originally published at TechTalkAsia

Comments are closed.