HomeBusinessWordPressHow to Remove Date from Google Search Results in WordPress

How to Remove Date from Google Search Results in WordPress

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. 

Method 2: Using JavaScript

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.

  1. 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.
  2. 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)
  3. Find this code in those files.
<?php the_time('F jS, Y') ?>
  1. Replace that code with the following and save those files.
<script language="javascript" type="text/javascript">document.write("<?php the_time('F jS, Y') ?>");</script>

Note:

  • 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. 


“As an Amazon Associate & Affiliate Partners of several other brands we earn from qualifying purchases.” [Read More Here]


12 COMMENTS

  1. Now, you will need to remove the date manually from the code of the theme. You also need to make sure that any date does not appear in the article published/updated. Though I have not tried this personally but seen many big sites using the same strategy to remove date from Google Search Results.

  2. Hi, I tried to get a proper solution to remove date from page search query. Though I am using Yoast. But the latest version doesn’t support that. If I change it manually does it make impact on SEO?

Leave a Comment

Please enter your comment!
Please enter your name here

By submitting the above comment form, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.


Stay Connected

Subscribe to our Newsletter

Stay updated with all the latest news, offers and special announcements.

By signing up, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.

Latest Posts

Vidnoz AI Video Generator Review: Best Free Video Generator with Realistic Avatars

Nowadays, people worldwide are spending more time watching video content than reading. Hence, it becomes essential for businesses to keep up with the trend...

How to Optimize Your Digital Camera for Photography

If you are a professional photographer or love photography, you need the best camera for quality pictures and videos. The digital camera provides all...

7 Ways to Take Advantage of Customer Data

In the modern digital era, escaping data seems virtually impossible. It appears as though data is ubiquitous, and its volume is expanding at an...

Enhancing Image Details: Exploring the Role of Super-Resolution Techniques in AI Upscaling

In the digital age, where visual content is highly valued and shared across various platforms, the quality of images plays a vital role in...

LLC Services That an IT Development Agency Can Use

When starting an IT development agency and forming a limited liability company (LLC), you have to follow a process to get your LLC up...

All Time Favorites

11 Best WiFi Hacking Apps for Android (2023)

Today, almost anywhere we go, we are surrounded by tons of WiFi Networks, whether at our homes, hotels, workplaces, or even public places like...

17 Best Illegal Android Apps Not on Play Store (2023)

Google Play Store has the most extensive collection of apps for Android. Almost everyone downloads apps from the Play Store. However, certain genuinely excellent...

15 Best Game Hacking Apps for Android (2023)

Are you a mobile gamer? If you are, then you've come to the right place. This post will tell you about the Best Game...

How to Download Torrent Files with IDM (Torrent to IDM)

Hey guys, you may all have heard about different ways to download torrent files. And some of you may also have downloaded them using...

11 Best Download Managers for Windows

The Internet is a vast resource of a lot of things which includes music, videos, movies and a lot of other things. The ability...