Issue with Integrating ‘ReviewedBy’ Schema on Website

#724433
  • Resolved Anonymous
    Rank Math free

    Dear RankMath Support Team,

    I am reaching out for assistance regarding an issue I’m facing while trying to integrate the ‘ReviewedBy’ schema on my website. Despite following the integration steps, I am encountering an error when validating the schema through the Schema.org Validator.

    Here is the link to the validator showing the error: https://validator.schema.org/#url=https%3A%2F%2Fhappyhunde.de%2Ferste-laeufigkeit-huendin%2F

    I would greatly appreciate any guidance or solutions you could provide to resolve this issue.

    Thank you for your time and assistance.

    Best regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    We apologize for the inconvenience you’re experiencing with integrating the ‘ReviewedBy’ schema on your website. Thank you for reaching out to us and providing the link to the Schema.org Validator showing the error.

    To resolve this issue, we recommend validating your schema using the Rich Results Test tool provided by Google. You can follow the steps outlined in our knowledge base article on how to import schema from any URL using Rank Math, which includes instructions on testing your schema code with Google.

    Here’s the link to the article: How to Import Schema From Any URL Using Rank Math

    If you encounter any further issues or have additional questions, please feel free to reach out to our dedicated support team through this link: Contact Rank Math Support

    We’re available 24/7, 365 days a year and we’re always more than happy to help.

    Best regards,

    Sources:
    Article Schema Type » Rank Math
    How to Import Schema From Any URL Using Rank Math » Rank Math
    How to Choose the Right Schema for Your Content » Rank Math
    How to Fix Missing ThumbnailUrl Error in Schema Markup » Rank Math
    Resolving Rank Math Schema Markup Related Issues

    Anonymous
    Rank Math free

    I followed the Tutorial. But i still the get warning in Schema Validator.

    Hello,

    Thank you for contacting us and sorry for any inconvenience that this issue might have caused.

    reviewedBy is supposed to be under the type Organization, Person, or WebPage which is why you see that error.

    Instead of including the property as a new article, try inserting it into your publisher or WebPage schema instead.

    You can use the following filter to conditionally apply the reviewedBy property:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	global $post;
    	$term = get_the_category($post->ID);
    	if(is_single()) {
    		if($term[0]->name == 'Category A') {
    		$data['WebPage']['reviewedBy'] = [
    			'@type' => 'Person',
    			'name' => 'Reviewer Name',
    			];
    		} else if($term[0]->name == 'Category B') {
    			$data['WebPage']['reviewedBy'] = [
    				'@type' => 'Person',
    				'name' => 'Reviewer Name',
    			];
    	       }
    	}
    	
    	return $data;
    }, 99, 2);

    You can add more else if conditions if you have more categories.

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Anonymous
    Rank Math free

    Thank you.

    Is there a way to just add the Reviewedby Schema to specific articles instead of whole Category?

    How can i do this?

    Hello,

    Yes, we can do that. Here’s a code where you can set post IDs of choice:

    add_filter('rank_math/json_ld', function ($data, $jsonld) {
    	global $post;
    	if (is_single()) {
    		if ($post->ID == 123) {
    			$data['WebPage']['reviewedBy'] = [
    				'@type' => 'Person',
    				'name' => 'Reviewer Name',
    			];
    		}
    	}
    	return $data;
    }, 99, 2);

    Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.

    Anonymous
    Rank Math free

    Thank you works!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post or TrustPilot about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

The ticket ‘Issue with Integrating ‘ReviewedBy’ Schema on Website’ is closed to new replies.