WordPress Tutorial – Removing Dates
By default, WordPress automatically prints the date and time a page or post was created. Your theme may be designed to override this default. In this WordPress tutorial we’ll review where you need to make the changes in your WordPress layout.
There are many reasons you may not want to show the date and time on your blog:
- Information on your blog is timeless
- You want to encourage people to continue commenting
- You don’t post very often
Before removing the dates on your blog, realize that reader response is more prevalent when the dates are shown.
The first thing you need to know about WordPress themes is that each theme has their own set of files that control the aesthetics on your blog. Therefore, if you have multiple themes installed, changing one theme DOES NOT affect the files in all themes. Only the file(s) changed for the current theme are changed. Therefore, if you have customized the files in a theme and then decide to change themes, you will need to transfer the customization to the files in the new theme.
Single Post
Let’s start with removing the date and time in a post.
Access Appearance; Editor; Single Post
Look for the loop to process all posts:
Within this loop, the following highlighted code needs to be removed:
In the above example, “Posted by”, the author’s name and “on” is printed before the date.
To be consistent, you may want to make these changes elsewhere on your blog. Be sure to check these pages:
- Main Index Template
- Page Template
- Search Results
- Recent Comments
Test Your Changes
The last step is to view your blog and test every page you changed:
- Carefully review the main page on your site
- Use the search function and review the results
- Access one of the pages on your site
- Click on the archives and make sure everything looks OK
- Click on a post that has comments and review those as well
Making changes to your theme are not too difficult when you know what to look for!




Link to this page










