Rankmath Schema for Authors

#597673
  • Resolved Anonymous
    Rank Math free

    Hello, I noticed that on my website, the Person schema type and ID display my website “username” when tested in the Google schema tester.

    Could you please advise on how to hide or remove this information? Otherwise, our website username may be visible to everyone.

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

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

    Rank Math pulls the author information from the profile of the author of the page/post and set that to the Schema automatically.

    If you do wish to remove the author information, you can make use of this filter code:

    add_filter( "rank_math/snippet/rich_snippet_article_entity", function ( $entity ) {
    	if ( isset( $entity['author'] ) ) {
    		unset( $entity['author'] );
    	}
    	return $entity;
    });

    You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

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

    Anonymous
    Rank Math free

    ³I have an additional request.
    Could you please add the following options in Rank Math (Hide/Remove Author Schema)? Additionally, I have observed that we are unable to modify this in the “👱 Users” section, where there is a link below to edit permalink.

    thanks

    Hello,

    Thank you so much for your suggestion. At the moment, we don’t have immediate plans on adding that specific option for the users. However, if this is something we can consider in the future, we will be sure to let you know.

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

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

You must be logged in to reply to this ticket.