Author Schema: knowsAbout

#509473
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    You can use the following filter to add knowsAbout to the author. Please try to modify it to your particular needs:

    add_filter( "rank_math/snippet/rich_snippet_article_entity", function( $entity ) {
        $entity['author']['knowsAbout'] = 'https://rankmath.com';
        return $entity;
    });
    

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

    Thank you.

    Hey, thanks for the reply. I am not a coder, so the question: Where can I insert this code?

    Hello,

    Please refer to this URL to learn how to apply filters on your site. You can use any of the methods mentioned here:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

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

    Thank you.

    Ralph
    Rank Math free

    Hello. I’m also curious about adding ‘knowsAbout’ schema to author bios.

    Using the code you shared above, how would I set it up for multiple authors? For example, one author would have a specific set of ‘knowAbout’ schema and another one would have a different set altogether.

    Thanks!

    Hello @ralph-9871,

    Thank you for reaching out to us and bringing your concern to our attention.

    Since you are using the PRO version, you don’t have to use the filter to add that schema property, you can make use of our custom schema generator to insert the knowsAbout property: https://rankmath.com/kb/schema-generator/

    However, if you do wish to make use of the filter, you need to use conditional statements to check which specific property to be applied to the schema. This may require you to customize the filter further which is currently outside of the scope of our support.

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

    Hi,

    I have to ask about that again. When I create the person schema in the pro version, I can simply add knowsAbout. Do I then have to manually assign the person schema to each post in addition to the article schema? It then gets the author schema additionally from the wordpress user. Or do I have a thinking error?

    Kind regards
    Ralf

    Nigel
    Rank Math business

    Hello,

    Yes. If you create author schema using a template or the schema generator, you will have to manually add it to the post.

    Hope that helps. Please let us know if you have questions.

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

The ticket ‘Author Schema: knowsAbout’ is closed to new replies.