If you don’t update your website regularly, it can also be helpful to remove the date – posts with older dates may give the impression that your content is out of date. I’ll show you a few ways to remove your posts from the date.
How to Remove the Date With a Plugin
If the data from the post is removed, then WP Meta and Date Remover are the easiest way to remove the date. It has 70000+ installations on WordPress and it works well. You can remove your meta with this plugin. There are two ways of removing the meta from the posts.
REMOVE THE AUTHOR META AND DATE FROM YOUR WORDPRESS POSTS AND PAGES?
- Install and activate the WP Meta and Date remover.
- Choose the hide from Backend or Frontend or Both
- Save changes and you have done!
THE TWO WAY REMOVAL
This plugin uses two methods to delete your meta.
Removal using the CSS file
Plugin register custom CSS which hides any information contained by metadata class.
This plugin provides a CSS file and you can also edit it in the plugin editor.
Removal using PHP
The Plugin filters results of functions like get_date(), get_time() etc.
In some cases, the CSS file does not work, which is why PHP code is used to remove it.
Plugin removes Meta data from the source code. Which means even search engines can’t see it.
How to Remove the Date With Code
It’s very easy to remove the date from your posts. Simply create a (child theme) and after that add the following snippet to your newly created stylesheet:
This code removes the date and the clock icon next to the date on topics such as Twenty Fourteen and Twenty Thirteen.
I tested for this code all the default WordPress themes. Although it removes all the theme dates completely, it does not remove words like “Posted on,” usually published before the date on the Twenty Ten and Twenty Eleven themes.
Click Editor in the admin sidebar and open functions.php to remove the additional words for Twenty Eleven. Search for the text “Posted on” and the following code will be found:
Delete “Posted on.” Maybe you want to capitalize on “By,” so the front-end looks good.