Hello,
Thank you for contacting Rank Math today.
Yes, you can easily change it as I show you in the following screencast: https://i.rankmath.com/m8Sljr
Looking forward to helping you. Thank you.
​​​​​​
Hi Alberto,
thanks for your reply!
The setting as shown in the screencast is already set to Organization.
Yet, in the sourcecode for my pages I see the “publisher” correctly as our organization, but the post author: “author”:{“@type”:”Person”,”name”:”Anke Rueb”}. This is what we dont want. I cannot find an option to not show the author as persons/wordpress users, but our organization instead.
Is there a way to display the post author as our organization, too?
Hello,
Could you please create a new post and check if this is still replicated.?
It is likely the data is not updated to the already existing posts since the author data is usually taken from the author who creates the post and publishes the same.
Could you also share one of your posts so we can check from our end?
Looking forward to helping you.
Hey Michael,
thanks for your fast reply.
This is a good example: https://www.lecturio.com/concepts/arm/
If you look at the structred data it says: “author”:{“@type”:”Person”,”name”:”Anke Rueb”}
However, as described in the Google Documentation (https://developers.google.com/search/docs/data-types/article) an article-author can also be type “Person” OR “Organization”. And “Organization” is what we want to do.
Thus, it should be “author”:{“@type”:”Organization”,”name”:”Lecturio”}
Is there a setting or some hook that we can use to switch the author type from “Person” to “Organization”?
https://cdn.lecturio.com/assets/article-structured-data.png
Big thanks for your help and patience. I guess this option would be helpful for many other users as well. I’ve already seen some dirty work-arounds, but I would prefer to have a correct solution.
Hello,
You can try and 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 ) {
$entity['author'][] = [
'@type' => 'Organization',
'name' => 'Your Organization name'
];
return $entity;
});
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
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.