-
Hi,
I am asking this question for one of my client sites which is running Rank Math PRO along with Google Web Stories. Now I have enabled the Google Web Story Integration inside Rankmath Dashboard.But when the client is running Rich Snippet Testing on a Web Story, Google is giving warning as the Author section in the structured data does not have a “URL” data. Screenshot: https://i.imgur.com/GE4fiBm.png
I have added the web story link shown in the screenshot above in the sensitive data section.
Now when I checked the source code of the web story page (by doing view source) I saw that there are 2 structured data that is being added to the page and they are as following:
There is no issue with this structured data but just after that there is another structured data:
Now in this structured data you see there is a section showing
"author":{"@type":"Person","name":"Cassidy Tuttle"}}
and here I need to add the URL field as well according to Google tests.Now while Googleing I came across this thread: https://support.rankmath.com/ticket/change-author-url-in-article-schema/ where this code snippet was mentioned:
add_filter( 'rank_math/snippet/rich_snippet_article_entity', function($entity) { $entity['author'] = [ '@type' => 'Person', 'name' => 'Author Name', ]; return $entity; });
But unfortunately, when I ran that, It was adding the data to the First structured data and the second structured data remained unaffected. Now after spending a lot of time I could not figure out which filter I need to call to add the author URL on the second structured data and not the first one.
Can anyone look into this and let me know the correct filter or snippet I need to call to make that happen?
Please note that:
- The author URL is present in the User profile information Section: https://i.imgur.com/l8PUPvQ.png
- Under Local SEO section URL is also present: https://i.imgur.com/fyC6m4f.png
————————————–
Another wired BUG that I have found is that if I enable the Google Web Stories Integration in Rankmath, It is adding the same
<title>
twice. Here are the screenshots:With Web Stories Integration Enabled In Rankmath checking the view source of a web story: https://i.imgur.com/Gl4AB3Y.png
With Web Stories Integration DISABLED: https://i.imgur.com/bMATKWy.png
Looking forward to the reply on both cases. Due to the double title issue I have disabled the Web Stories integration now on the site.
The ticket ‘Adding author url in structured data inside Web Stories’ is closed to new replies.