• Resolved silverback123

    (@silverback123)


    sorry but my other topic is marked as resolved when its not.

    in google search results, my homepage is showing the date before the meta title. My other pages dont have this issue so I’m confused where this is coming from.

    i thought it was og updated time but that’s on all pages. As is organisation schema. Can you confirm why my homepage would be showing the date and how I can resolve this? This wasn’t an issue until using rankmath but I cant work out how this is happening.

    I’m happy for posts to show a date in search results but I dont want pages to do the same.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @silverback123,
    ?
    Thank you for contacting Rank Math support.
    ?
    Please share the site URL so we can check and assist you further.
    ?
    Looking forward to helping you.

    Thread Starter silverback123

    (@silverback123)

    Hi. Thanks for the reply. I’d rather not post the url publicly.

    it seems that in the web page schema there is a date published and a date modified. How do you remove this? I assume this is the reason?

    I understand posts showing a date, but not webpages.

    Thread Starter silverback123

    (@silverback123)

    from what I see on your kb,

    add_filter( "rank_math/snippet/rich_snippet_article_entity", function( $entity ) {
      unset( $entity['dateModified'] );
      unset( $entity['datePublished'] );
      return $entity;
    });
    add_filter( 'rank_math/opengraph/facebook/og_updated_time', '__return_false');
    add_filter( 'rank_math/opengraph/facebook/article_published_time', '__return_false');
    add_filter( 'rank_math/opengraph/facebook/article_modified_time', '__return_false');

    How do I modify this so its for pages only? I want posts to continue to show dates, just not pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.