Hello,
Thank you for contacting Rank Math today.
You need to go to Dashboard > Rank Math > Titles & Meta > Author > Author Archives > Disable that from there.
Then under Author Robots Meta, you need to select No Index and save the changes.
Hope that helps.
Thank you.
​​​​​​
Hi, thank you for your quick reply!
I already did the first part, disabling Author Archives.
But where can I find the second setting, Author Robots Meta? I can’t seem to locate that anywhere. Does it help to say I am trying to disable author schema data for a specific custom post type?
Thanks again!
Hello,
The author data shown for your posts is directly generated from WordPress user profile settings. You can change your author editing username in WordPress dashboard > Profiles/Users
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hi Michael,
thank you for your reply!
Changing the public display name of a user works, but it more of a workaround. That would only “change” the name in the schema data. My goal is to not display information about the author at all, only the publisher info. Is it at all possible to remove that part entirely from schema data? The first answer I got sounded like an answer to that, but I did not find the “Author Robots Meta” settings anywhere?
To be clear, ideally, I do not want this part displayed at all:
“author”:{“@type”:”Person”,”name”:”Anke”}
Thank you!
Hello,
The author markup is required by Google for AMP Pages: https://developers.google.com/search/docs/data-types/article#article-types
If you completely don’t want this i your schema, you can add the following filter to your theme functions.php file:
/**
* Filter to change the schema data.
* Replace $schema_type with schema name like article, review, etc.
* @param array $entity Snippet Data
* @return array
*/
add_filter( "rank_math/snippet/rich_snippet_article_entity", function( $entity ) {
if(isset($entity[author])){
unset($entity[author]);
return $entity;
}
return $entity;
});
You can then test your URL with Google Rich results test tool to see if the info has been removed under article schema.
Looking forward to helping you. Thank you.
​​​​​​
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.