Most of us know that Google can read anything on a webpage. The same goes for the date. A date may be helpful to our readers, but many times, while searching on Google, we often prefer the newer content even when the old one is still relevant.
In such cases, if we have an option not to allow Google to show the Date on the search results, it can be a great thing. It will not help improve your SERP but give you a higher CTR.
Update 2023: In our limited tests, we found that Google is picking up the date from the meta tags generated by WordPress by default. So, it is best to stick to the Modified Date instead of showing no date.
Update 2022: As a better alternative, we recommend you show Modified Date instead of Published Date so that it can be more accurate for the readers and the search engine.
Let’s check out the methods by which we can get this desired result.
Ways to Remove Date from Google Search Results
Method 1: Using Theme Settings
Some themes provide built-in functionality to show and hide dates in their settings menu. This is one of the easiest ways to remove the Google Search Results.
For this, we have to modify these three files in your WordPress theme directory:
- index.php for the homepage
- single.php for the single post
- archive.php for archives.
Warning: Please backup all the above three files so you can restore them to get your blog working if something goes wrong.
- Open up the WordPress Editor from Appearance or Go to your hosting panel file manager and go to the root of your active theme folder.
- Find those three files that were discussed above. (These are the general file names used in most themes. In some cases, there are different names; in our case, it was not single.PHP; it was loop-single.php)
- Find this code in those files.
<?php the_time('F jS, Y') ?>
- Replace that code with the following and save those files.
- If the date appears on any other page of your blog, you can edit that particular file and repeat the same process illustrated above.
- If the above method does not work and you still want to remove the date from Google Search Results, then you have to remove the <?php the_time(‘F jS, Y’) ?> from your theme file, But this will also remove it from readers.
Method 3: By Removing the Date Manually
If your theme doesn’t have this inbuilt option, you can find the PHP file where the code is inserted and remove that code manually. Here at techrrival.com, we are using the Newspaper Theme by Tagdiv, and we have written an article on How to Display the Last Updated Date in the Newspaper WordPress Theme.
Protect Your Online Privacy With Surfshark
[The VPN that we use here at Tech Arrival]
You can get an approximate idea of finding a similar code in your WordPress theme using the tutorial mentioned above. You can also try reading Theme Forums and discussions where you can get additional help.
So, that was all for this article; if you need any help with the code or the theme you are using with your WordPress theme, feel free to let us know in the comment section below.