How do I remove the date from the meta description so that the date will be less

#813603
  • Resolved Valerie Burns
    Rank Math free

    Our site has been live for years and suddenly, Google is adding a date to our page in the search results. This is happening to static pages like the home page and about page. Those pages do not have dates in the content, in fact, none of our posts or pages have dates in the content — we don’t want dates showing anywhere. But recently Google has been returning our site with a date stamp. I understand that Google’s algorithm decides whether to show a date, but I also understand that if date stamps are removed from the php of our site, Google would be less likely to show the date stamp in the search results.

    Screenshot of SERP with dates

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    I apologize for the issue you are facing with Google adding a date to your site’s search results. To remove the date from the meta description and reduce the chances of Google displaying a date stamp, you can follow these steps:

    1. Remove Dates in the Content: Ensure that there are no dates present in your content, including posts, pages, and meta descriptions. Dates can be added by WordPress, themes, plugins, or comments. Edit affected posts/pages and delete any dates present.

    2. Remove Dates in the Sitemap: Search engines use the lastmod date from your sitemap to identify updated pages. If you have Rank Math installed, you can use a filter to remove the lastmod date from your sitemap index. Here is the code snippet you can use:

      add_filter( 'rank_math/sitemap/index/entry', function( $index, $type ) {
         if ( isset( $index['lastmod'] ) ) {
             unset( $index['lastmod'] );
         }
         return $index;
      }, 10, 2 );
    3. Block RSS Feed Crawling: Google uses RSS feeds to detect new content and dates. You can block search engines from crawling your RSS feed by adding a rule to your robots.txt file:

      User-Agent: *
      Disallow: /feed/

    By following these steps, you can help reduce the chances of Google displaying a date stamp in the search results. However, please note that Google’s algorithm ultimately decides whether to show a date based on various factors.

    If you have any further questions or need assistance, feel free to reach out to our support team for more personalized help.

    Thank you for bringing this concern to our attention!

    Sources:
    How to Remove Date Snippets from Search Results » Rank Math

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Please note that Google picks and shows the date that they found in the content itself and this is something an SEO plugin cannot fully control. But you can follow this guideline which will help you to understand the situation better and you can apply the filters on your site to remove the visible dates added by Rank Math: https://rankmath.com/kb/remove-dates-from-search/

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    The image link didn’t come through. You can see it here: https://tinyurl.com/2depp4pe

    Yes, I was trying to put the snippets into a section for CSS and HTML. Thank you for the info.
    I have installed the code snippets plugin and the three snippets from the article How to Remove Date Snippets from Search Results, but the schema date is still showing in the HTML.

    Screenshot here Screenshot

    Hello,

    We’ve checked the page, and the datePublished and dateModified are coming under the WebPage schema.

    In this case, please add this filter as well:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if( isset($data['WebPage']) ) {
            unset($data['WebPage']['datePublished']);
    	unset($data['WebPage']['dateModified']);
        }
    
        return $data;
    }, 99, 2);

    Once done, clear your website’s cache and check again the schema.

    Let us know how this goes.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘How do I remove the date from the meta description so that the date will be less’ is closed to new replies.