add review schema to local business schema.

#39181
  • Resolved C.K.
    Rank Math pro

    1- I have issue when trying to extend the rm schema with custom schema that doesn’t have @id attribute? how can this be done.
    2- I can insert schema for only one product for each page but I have pages with two related products?
    3- also I have pages that need article schema and product schema at the same page?

    • This topic was modified 4 years ago by C.K..
Viewing 10 replies - 1 through 10 (of 10 total)
  • Todd
    Rank Math free

    Hi,

    Thanks for getting in touch with us.

    You can disable the Local SEO Schema that Rank Math adds by disabling the module in WordPress Dashboard > Rank Math > Dashboard.

    Then you can continue to use the other plugin you are using for the purpose.

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

    C.K.
    Rank Math pro

    Hi Todd,
    I guess you didn’t get my question!

    the 3rd party plugin I am using is specialized only in grabbing reviews but it adds a simple local schema for the purpose of inserting aggregate rating with it.

    1- I have rm local schema & I know I can’t keep both local schemas so I want to integrate their local schema with rm local schema, how this could be done?

    2- If I can’t integrate both local schemas then I want to disable their schema but add the aggregate rating of the reviews to rm local schema, how this should be done.

    3- can I add two schemas at the same page, one as service and one as product, this is one of the workarounds that might help me solve the issue.

    thanks

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for the follow up.

    1. Using two schema plugins in your site will most likely lead to conflicts and errors in your site. I would very much discourage you on the same.
    2. In the specific page, under Rank math SEO> Schema, you can set the schema type as product which will allow you to add rating for your schema.

    3. To add two different schema in one page is not possible using Rank math and using two different plugins would lead to a conflict as stated in (1.)

    I hope this helps you. Thank you.

    ​​​​​​

    C.K.
    Rank Math pro

    Hi Michael,

    1- I don’t use another plugin for schema, I want to add the other schema manually and keep the rm schema activated, is this right?

    2- wt is the right thing for reviews rating schema, to add it to the product schema or to the local business schema

    3- does rm add sitelink search schema, if so, is it added to all pages?

    thanks
    c.k.

    Michael Davis
    Rank Math pro

    Hi there,

    Thanks for getting back to us.

    I am afraid that Google does not allow self serving reviews on the local business schema since a recent update a few months ago and even though you can integrate the rating stars, these won’t show on the SERP. You can learn more about this here: https://rankmath.com/kb/how-to-fix-review-schema-errors/

    does rm add sitelink search schema, if so, is it added to all pages?
    Yes Rank Math add this schema but only for the homepage.

    I hope this info helps.

    C.K.
    Rank Math pro

    Hi Michael,
    I know about the google update and that rating won’t’ show up on SERP but i still want to add them for other reasons.

    I want to extend the schema to add rating and other fields as areaServed and couldn’t find full coding instructions & examples at the knowledge base.

    I am using this filter to add for example areaServed field to RM local schema:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    // IF STATEMENT TO TEST IF LOCAL BUSINESS SCHEMA IS EXIST ON THE PAGE BEFORE ADDING THE EXTRA FIELDS
    	$data['LocalBusiness'] = [
    	    	'@context' => 'https://schema.org',
    	    	'@type'    => 'LocalBusiness',
    	    	'@id'      => 'https://abc.com/#organization',
    		'areaServed' => 'CA-ON'
    			];
    		return $data;
    }, 10, 2);

    1- I added “areaServed” field and to ensure it will integrate with the rm local schema I used same @type & @id, is this correct method?

    2- the code adds the extra field correctly to the current local bus. schema but it creates another local bus. schema in all other pages with only the extra field I added?

    the code needs if statement to check that the page doesn’t have local business schema before adding the extra fields to it? wt should I use to fix it?

    thank you
    c.k.

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for contacting Rank Math today.

    You can use an if conditional containing the is_page($page_id) to only assign the schema to the homepage and any other page that you would like the schema to appear.

    Looking forward to helping you. Thank you.

    ​​​​​​

    C.K.
    Rank Math pro

    Hi Michael,
    ur previous reply provided great help 🙂

    1- I have issue when trying to extend the rm schema with custom schema that doesn’t have @id attribute? how can this be done.
    2- I can insert schema for only one product for each page but I have pages with two related products?
    3- also I have pages that need article schema and product schema at the same page?

    thank you v much for ur pro assistance
    c.k.

    Todd
    Rank Math free

    Hi,

    As much as we would love to offer customized solution to each and every user we have, it just isn’t possible for a small company like ours with limited resources. You may have to seek assistance from a developer if you want to customize Rank Math beyond the options that we offer.

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

    C.K.
    Rank Math pro

    is there an option or filter to:
    1- extend rm schema with other custom schema that doesn’t have @id attribute?
    2- add more than one schema at the same page as article & product together

    • This reply was modified 4 years ago by C.K..

    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.

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

The ticket ‘add review schema to local business schema.’ is closed to new replies.