Hello,
Thank you for reaching out to us and bringing your concern to our attention.
Please note that WordPress always refers to the post’s actual author who published that post and usually the theme handles how it displays on the article page (bio section).
However, if you meant to change the author schema, we do have a filter for you to modify the author schema. Please refer to this example filter code:
add_filter( "rank_math/snippet/rich_snippet_article_entity", function( $entity ) {
global $post;
$entity['author']['@id'] = 'https://rankmath.com/#person';
$entity['author']['@type'] = 'Person';
$entity['author']['name'] = get_field('YOUR_FIELD_NAME', $post->ID);
$author_imageData = [
"@type" => "ImageObject",
"@id" => "http://domain.com/your-path-to-your-image.jpg",
"url" => "http://domain.com/your-path-to-your-image.jpg"
];
$entity['author']['image'] = $author_imageData;
return $entity;
});
You may refer more about this filter hook here: https://rankmath.com/kb/filters-hooks-api-developer/#change-post-schema-data
Hope that helps and please do not hesitate to let us know if you need my 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.