sameas

#168010
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math Support.

    Please note that we removed the Social Meta options for “sameAs” Schema intentionally because Google doesn’t use it anymore.

    If you still want to add it, then you can use the filter as follows by adding it to your theme’s functions.php or by using a plugin like Code Snippets:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if ( isset( $data['publisher'] ) ) {
            $data['publisher']['sameAs'] = ['https://twitter.com/RankMath', 'https://facebook.com/....'];
        }
        return $data;
    }, 99, 2 );

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Bergen
    Rank Math free

    I am NOT asking about social meta.

    I am interested in doing what is mentioned in this link below which is to help establish entity.

    *** https://schema.org/sameAs

    In this example they use 3rd party links for wikidata.com to help establish the entity of the topic of The Hitchhiker’s Guide to the Galaxy

    I want to be able to do that for my posts. So where I discuss Mortgages, I can use https://en.wikipedia.org/wiki/Mortgage_loan

    Is that currently possible to do with Rankmath??

    Hello,

    Thank you for the follow-up, and sorry for the delay.

    You would need to customize the filter that my colleague mentioned above to return the wiki link you wanted to use.

    However, you can add the sameAs schema easily via Advanced Schema Generator available using our PRO version. You can check the links below for more information:
    https://rankmath.com/kb/schema-generator/
    https://rankmath.com/kb/rich-snippets/#custom-schema-pro

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘sameas’ is closed to new replies.