Multiple restaurant locations one website

#731881
  • Resolved Anonymous
    Rank Math free

    Hello.

    What should I not forget when setting up Rank Math for a multiple-restaurant-locations with one website for all of them?

    Kind regards, Mikkel

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for your patience.

    If you want to rank in multiple cities, enabling the Multiple Locations option (Rank Math PRO) and creating dedicated pages for each location is recommended.

    However, if you want to add areaServed property to the default Organization/LocalBusiness Schema of our plugin, you can use and customize the following filter:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if ( isset( $data['publisher'] ) ) {
            $data['publisher']['areaServed'] = [ 
    			['@type' => 'city',
    			 'name'  => 'Prescott',
    			 'sameAs'=> 'https://en.wikipedia.org/wiki/Prescott,_Arizona'],
    		    ['@type' => 'city',
    			 'name'  => 'Prescott Valley',
    			 'sameAs'=> 'https://en.wikipedia.org/wiki/Prescott_Valley,_Arizona']
    										   ];
    										   
        }
        return $data;
    }, 99, 2 );

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

    Moreover, in Rank Math PRO, you can easily add it using our Multiple Location feature:
    https://rankmath.com/kb/multiple-locations/
    https://rankmath.com/kb/add-multiple-areaserved-cities-to-localbusiness-schema/

    Hope that helps.

    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 1 replies (of 1 total)

The ticket ‘Multiple restaurant locations one website’ is closed to new replies.