Remove date from search engines

#9171
  • Resolved Peter
    Rank Math free

    Hello.

    I started this thread and tried that filter with no success.

    Then I was told in this other thread that Rank Math is not adding any type of date information, that it will only add the date to the OG tags that are used when sharing to social media.

    However inspecting the code I see the dates in the meta property.

    
    <meta property="article:published_time" content="2012-02-21T13:48:40+00:00">
    <meta property="article:modified_time" content="2019-06-08T10:04:50+00:00">
    <meta property="og:updated_time" content="2019-06-08T10:04:50+00:00">
    

    And Google is showing the published_time. So I need to remove dates from search engines results.

    How can I do it?

    Thanks.

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

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

    As we mentioned earlier this data is used in OpenGraph you can however remove the same by adding this code to your theme:

    add_filter("rank_math/opengraph/facebook/article_published_time","__return_false");
    add_filter( "rank_math/opengraph/facebook/article_modified_time","__return_false");
    add_filter( "rank_math/opengraph/facebook/og_updated_time","__return_false");

    I hope this info helps. Thank you.

    ​​​​​​​

    Peter
    Rank Math free

    Can you please confirm 100% Google search results never uses that info?

    Thanks.

    Hi Peter,

    Thanks for the follow up.

    Yes Google does not use this data, the post date data is extracted from the theme.

    I hope this info helps. Thank you.

    Peter
    Rank Math free

    Thank you Michael, I’ll continue testing so I can remove dates.

    Hi Peter,

    Great! Feel free to contact us for any other issues.

    Thank you.

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

The ticket ‘Remove date from search engines’ is closed to new replies.