-
Hi there,
I am looking to add specific author schema, namely:
sameAs for Linkedin URL
reviewedBy, alumniOf, and honorificSuffixHow might I achieve this with RankMath?
I have read this: https://rankmath.com/kb/author-schema-entity/ and have looked at the RankMath Pro schema builder. However they do not appear to provide this functionality (the latter appears to be focused around post schema).
Thanks
-
Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
Those properties are not included by default with Rank Math’s Author Schema.
However, with Rank Math PRO, you can customize the Author Schema by using the Custom Schema in Schema Generator and save it in the Schema templates. Here’s a link for more information:
https://rankmath.com/kb/schema-generator/I hope that helps.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
Hi,
With Pro, what would be the process to achieve this once I go and buy it? The videos all talk about adding schema to posts, or author archive pages. I don’t use archive pages – I’m looking to have the schema show up on post pages for that author, and to define the schema by author (so I’m not doing it for each page). Can you confirm that this is possible?
Also, what would happen with this if my subscription expired? I’m assuming the schema will stay but I cannot edit it or create any more custom schema.
Thanks
Hello,
Thank you for your patience.
Yes, that is possible with the help of the Schema templates.
For your second question, yes, anything that you add during the PRO subscription will still be there, but you won’t be able to add and won’t have access to the PRO features anymore.
I hope that helps.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
Hi,
I have purchased Rank Math Pro. Can you please walk me through how to achieve this? I am trying to create a custom schema and I do not see an option for author variables, such as their LinkedIn URL etc. I have added @type as “Person” but am unsure how to proceed with each property/property group.
Thaanks
Hello,
We don’t have any option to set those values Since Google doesn’t honor that anymore.
Please use the following code and add it inside your current theme’s function.php file to your job done.
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) { if ( isset( $data['publisher'] ) ) { $data['publisher']['sameAs'] = [ 'https://www.instagram.com/example', 'https://www.facebook.com/example', 'https://www.facebook.com/groups/example', 'https://www.youtube.com/channel/example', 'https://inkedin.com/example' ]; } return $data; }, 99, 2 );;We hope that helps. We are here if you need us again.
Hi Ankit,
Thanks for that code. How do I handle different authors with this? Each author has their own LinkedIn profile.
I would be interested to learn more about Google depreciating these schema variables. Do you have an article? I have searched and still found them on schema.org, I thought Google still use them. I have seen reviewedBy used and pass the markup validator, please see the example URL in sensitive data.
If Rankmath Pro cannot do this, can I get a refund? Reinelle stated that this was possible with the plugin, which was why I bought it. I have added my email address in sensitive data.
Thanks
Hello,
This type of functionality is not available in the plugin at the moment but if you feel comfortable with adding some custom code and editing some plugin files we can help you set that up for you.
First you need to set the additional contact method to the user profiles by adding the following code in your theme’s
functions.phpfile:function extra_contact_info($contactmethods) { $contactmethods['facebook'] = 'Facebook'; $contactmethods['twitter'] = 'Twitter'; $contactmethods['linkedin'] = 'LinkedIn'; return $contactmethods; } add_filter('user_contactmethods', 'extra_contact_info');After adding this, if you go to the user profile for each author you’ll see an option to add all the profiles including LinkedIn to the user.
The last thing to do in order for this to show properly in the Schema is editing the following file:
seo-by-rank-math\includes\modules\schema\snippets\class-author.phpOn line 75 in that file add the following code:
if ( $linkedin = get_user_meta( $author_id, 'linkedin', true ) ) { // phpcs:ignore $same_as[] = 'https://linkedin.com/' . $linkedin; }All these modifications will make it possible to display the
sameAsproperty in the authors of the topics and include the different profiles for each author.Hope this helps solve your issue.
Don’t hesitate to get in touch if you require any further assistance.
Hi Miguel,
Thanks for this, it seems to work.
To my other question, is it possible to get a refund for Rank Math Pro? I was told earlier in this thread that I could add all of these schema types with the Pro plugin, but this seems to not be the case.
Thanks
Hello,
As requested, we have initiated a refund on your requested transaction. You should see a credit for the refund appear on your credit card statement anytime between now and the next 5 to 7 business days.
If you used a debit card for the payment, the refund might take up to 30 days to appear on your statement. Please note that refunds for international transactions can take up to 10 days to appear for credit cards or up to 60 days for debit cards.
For PayPal, it’s always almost instant.
As of the month date, you won’t be able to access those PRO files in the member area on Rank Math.
We would much appreciate any feedback you have to offer.
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.
The ticket ‘Adding custom author schema’ is closed to new replies.