Add aseaServed Schema Geocircle and Geomidpoint

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

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    You can modify and use the following filter to add the areaServed property:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if ( isset( $data['publisher'] ) ) {
            $data['publisher']['areaServed']['@type'] = "city";
    		$data['publisher']['areaServed']['geoMidpoint'] = [
    			"@type" => 'GeoCordinates',
    			"latutude" => '40.42',
    			"longitude" => '23.23'
    		];
    		$data['publisher']['areaServed']['geoRadius'] = '550000';
        }
        return $data;
    }, 99, 2 );

    Hope this helps. Let us know if you need any other assistance.

    Ross
    Rank Math free

    Thank you so much!

    Hello,

    We are super happy that we could address your concern.

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

You must be logged in to reply to this ticket.