How To Remove A Date From A WordPress Post | Quick & Easy

Last Updated on March 8, 2021 

In this post, I’m going to be going over three different ways on how to remove a date from a WordPress post quick and easy.

I’ve also provided a video tutorial below that walks you through the process on how to remove a date from a WordPress post step by step in under two minutes.

 Pin Image To Pinterest

how-to-remove-a-date-from-a-wordpress-post

Reasons Why You’d Want To Remove Dates From WordPress Posts

Some common reasons you might want to remove dates from your WordPress posts is if post dates are not relevant to your audience, or you do not update your posts regularly. 

If your blog isn’t updated regularly, there is the scare between bloggers and companies that your audience might see the date the post was published and not want to read on because it is considered outdated.

If you don’t want to completely remove dates from your WordPress posts, you ought to read our post on how to backdate your WordPress posts.

Video Tutorial: How To Remove A Date From A WordPress Post

How To Remove A Date From A WordPress Post | Quick & Easy

How To Remove A Date From A WordPress Post With A Plugin

One of the easiest ways to remove a date from a WordPress post is by installing the plugin WP Meta and Date RemoverOnce you get the plugin installed and activated you want to click the Settings link next to the plugin on the plugins page. 

 

wp-meta-and-date-remover-settings

 

You then want to select the “plugin will not hide Metadata classes of Theme” like you see in the below screenshot and hit save changes. Congrats! That is all you have to do when using this plugin to remove dates from your WordPress posts or pages.

 

wp-meta-and-date-remover

How To Remove A Date From A WordPress Post In Your WordPress Dashboard

From a WordPress post or the WordPress blog page you will see the date listed under the post image and post title like the image provided below.

remove-a-date-from-a-wordpress-post

 

You want to head on over to the WordPress dashboard and hover over the settings tab and then click on the General tab.

 

wordpress-dashboard-settings-general

 

Scroll down towards the bottom of the General tab, and you will see date format. You will see the field custom. You want to select the custom bubble and remove any information showing in the field next to it.

 

wordpress-general-settings-date-format

 

Click the save changes button at the bottom of this page and then go back and review your post page, and you will no longer see the date.

 

Remove A Date From A WordPress Post With Code

Even if you’re a newbie at WordPress and might not know a lot about code removing a date in a WordPress post is easier than you might think. Head over to your WordPress dashboard. Find the appearance link over on the left and then click on editor. You want to add the following code to your theme’s functions.php file. You want to place it at the top of the file, just make sure it’s after the opening line<?php.

You want to make sure you have WordPress 3.0 or above before adding the below code.

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');

 Check your site, and you should see that your posts dates have been removed. If they’re not, replace the code above with this code below, and it should remove the dates from your WordPress posts.

 

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');

Final Thoughts

We hope this article helped you and showed you how to remove a date from a WordPress post or page.

Let us know in the comments below if you were successful! We would love to hear from you.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

4 replies
  1. Robert
    Robert says:

    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.

    Reply
    • Bryan Peterson
      Bryan Peterson says:

      Thanks for reaching out. I know you don’t want to change your permalink structure but I don’t know of a plugin or a way to do it without doing so. With your date being included in your permalink you’d want to change your permalink structure in WordPress. If you install the Simple 301 redirects plugin when you change your permalink structure you can have the old permalink redirect to the new one. This will also tell search engines this is a permanent change. You’d want to make sure any posts or pages that mention this post are changed to the new permalink structure.

      Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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