Instead of author type: person get author type: organization

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

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

    The worksFor property is used for Organization type. You can change the type in Rank Math > Titles & Meta > Local SEO > Person or Company

    Worksfor

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

    I hope that helps.

    Thank you.

    Ross
    Rank Math free

    Hello,

    Yes, the way I have it in localseo is organization. But, on my post is shown author type:person https://imgbb.com/7kcVdSZ. You can see it on sensitive data link. I would like to have aothor type:organization like in your post https://ibb.co/hHxzX4W.

    Hello,

    If you want to use the Organization as the author type then you will first have to remove the Person Schema entirely from the site using the filter given below:

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

    Once done, you will have to modify and use the following filter to add the author property manually to the Article Schema:

    add_filter( 'rank_math/snippet/rich_snippet_article_entity', function($entity) {
        $entity['author'] = '';
        return $entity;
    });

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope this helps. Let us know if you need any other assistance.

    Thanks.

    Ross
    Rank Math free

    Thanks.

    Hello,

    We are super happy that we could address your issue.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.