Local Business schema for a directory website

#188636
  • Resolved Karen
    Rank Math free

    Hello,

    Our website is a business directory that provides information on close to 1,000 different dental offices across the US. I want to add Local Business schema to each listing, but Local Business is not an available schema type. Do you have any suggestions on how to go about adding Local Business schema to a directory site, other than creating my own Local Business custom schema template?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Cris
    Rank Math business

    Hello,

    Thank you for contacting us, let me assist you.

    As you are aware that Rank Math does not have an option to add local business schema types to your posts. This schema will automatically be added to your homepage when this business type has been selected on the setup wizard.
    I would suggest that you make use of the Google structured data testing tool to check to see that this is already added: https://search.google.com/structured-data/testing-tool/u/0/

    You can also use this tool: https://technicalseo.com/tools/schema-markup-generator/ to generate the alternate schema then use the following filter to extend Rank math json schema markup:

    /**
    * Collect data to output in JSON-LD.
    *
    * @param array $unsigned An array of data to output in json-ld.
    * @param JsonLD $unsigned JsonLD instance.
    */
    add_filter( ‘rank_math/json_ld’, function( $data, $jsonld ) {
    return [];
    }, 99, 2);

    I hope that helps and please do not hesitate to contact us back anytime if you require further assistance.

    Cheers,

    Karen
    Rank Math free

    Hello and thank you for your response. I ended up creating a custom schema type so I can use it as a template on all of the dentist profiles. The only problem is that it won’t let me save multiple property groups of the same type. I am trying to add opening hours, which are different for different days of the week, and it will only save one property group for “openingHoursSpecification”. Please let me know how I can save different opening hours for different days. Thank you.

    Brian
    Rank Math free

    Hello,

    Thank you for getting back to us.

    The only problem is that it won’t let me save multiple property groups of the same type.

    Creating multiple property groups of the same type will have it appear as a duplicate which is not recommended in schemas.

    If you wish to set different opening hours you have to make sure that all the property groups of these opening hours fall under a different main property group of OpeningHoursSpecification.

    Here is a sample screenshot showing this:
    hours

    Hope this helps. Let us know if you have any other questions.

    Karen
    Rank Math free

    That worked! Thank you so much!

    Hello,

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

    If you don’t mind us 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 about your overall experience with Rank Math? We appreciate your time and patience.

    If you 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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Local Business schema for a directory website’ is closed to new replies.