How to remove dates from WordPress posts is one of those things many newbie bloggers struggle with. Most blog themes are coded in a way that every time you publish a new post, it displays the date of the post along with the post. But sometimes you don’t want the date to be displayed. So how do you get rid of dates in your posts?
Why remove dates from WP posts?
First lets see why you wouldn’t want to display dates in your posts. My reason and I am guessing most other blogger’s reason for removing dates from posts is to simply make the posts appear timeless or more current.
When readers come across a post which is dated to 1 year, 5 months, 3 weeks… earlier, it might make them feel like they are reading an outdated post, a post that the given information in it isn’t current anymore. Removing the date and time from the post, will solve that problem.
Try Swagbucks, the famous rewards program that pays you for watching videos, taking surveys, shopping and more.
Of course, this only works for posts that are not meant to be seasonal, or information about a subject that changes frequently. Removing the date from your word press blog is only good for when you are giving tips and information that are timeless. In another words, information that will always be the same.
Removing dates from your WP posts
To remove the the date from your posts, you have to remove a single line of codes in 2 places in your blog theme. Don’t freak out! I am terrible with coding as well. But this is very simple. You don’t need to be an expert to do this. Here is how to do it:
1- On your dashboard, go to Appearance – editor, and click on your Main Index Template (index.php). Find and delete this line of code
<?php the_time(‘F jS, Y’) ?>
and hit update file.
2- On your dashboard, go to Appearance– editor, and click on your Single post page (Singles.php). Find and delete this line of code
<?php the_time(‘F jS, Y’) ?> and hit update file.Want More Money?
If you have to only sign up for one paid survey site to make money with, I recommend Ipsos-iSay. Ipsos is the most fun and well-paying panel. Give it a try to see how you like it. It is free anyway!
That’s it! Your posts will no longer have time and date displayed. That is how you remove dates from your WordPress posts.