Add Multiple “areaServed” Cities to Your LocalBusiness Schema

#1066969
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    We apologize for the issue you are facing with finding the "areaServed" field in the Local Business Schema. It can sometimes be a bit tricky to locate specific fields depending on the setup of your Rank Math plugin.

    Here are the steps to ensure you can find and set the "areaServed" field:

    1. Create a Rank Math Location: First, ensure that you have created a location for your business. Go to the Schema Generator and select Local Business. This is where you should see the option to fill in the area served.

    2. Fill Out the Area Served Field: In the Schema Generator, look for the section labeled Area Served. If you do not see it, make sure that you have enabled the Local SEO module in your Rank Math settings.

    3. Save Your Changes: After filling out the area served field, click on Save for this Post to ensure your changes are applied.

    If you still cannot find the field after following these steps, please reply to this ticket with your site URL so we can assist you further. A human agent from our support team will take over and help resolve this issue.

    Thank you for raising this concern!

    Where is Schema Generator?

    Hello,

    Apologies for the confusion, but the steps in our guide are meant for Rank Math PRO users.

    Could you please confirm if you have purchased the Rank Math PRO subscription?

    If not, and you are using the free version, then you may need to use and customize this filter to add multiple areaserved:

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

    Here’s a guide you can follow to apply that:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you.

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

The ticket ‘Add Multiple “areaServed” Cities to Your LocalBusiness Schema’ is closed to new replies.