missing elements in the markup schema restaurant

#57024
  • Hi guys

    In the local SEO. Schema Restaurant is necessary to include the url of the restaurant menu, which is included in the schema restaurante of the page; include the reserves page beside reserves telephon, and include servescuisine that make a warning in Google Test Structured Data.

    There are things that are icluded in SEO LOCAL Settings, and others that are included in page schema, but not all in two places.

    Google Test Structured Data

Viewing 8 replies - 1 through 8 (of 8 total)
  • the image of Google Test Structured Data

    Hello,

    Thank you for contacting Rank Math today.

    Rank math has on page schema where you key in your menu URL if the page/post type has Restaurant selected. Here is a screenshot: https://i.rankmath.com/4SBwJm

    Looking forward to helping you. Thank you.

    ​​​​​​

    hi, thanks for fast response.
    I know that. But i must to have 2 diferent restaurant schema ?; one for Local Seo and one for restaurant page? , my website is directly a Restaurant website, no a general site with a 1 or 2 restaurant pages inside.
    And in the restaurant schema inside a page, you can’t put a multiple opening days and hours; you can’t put a telephon and you can’t put a reserve page (the last in Local seo yo can’t too).

    what is best approach to take this situation ?

    Hello,

    Thank you for the follow up.

    We do not have an option to add the menu URL in the Local SEO settings. You can have your general settings such as multiple opening days in the local SEO settings, then, assuming you are using a static main page, you can modify other details such as address and telephone number on the page Schema and this data will reflect perfectly if you test your site on SDTT.

    In terms of having a reserve page schema, you can customize and filter:
    https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data

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

    Hi..
    Sorry, but my skills as Jason or JS developper now are very poors..
    if you can give an example i’m very happy..

    Hello,

    In Local SEO Settings, there is an option to add the Phone number. As far as serveCuisne is concerned it’s a recommended field not required. You can ignore that warning or you can use following filter to add the serveCuisine value:

    
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	if( isset( $data['Organization'] ) && 'Restaurant' === $data['Organization']['@type'] ) {
    		$data['Organization']['servesCuisine'] = 'serveCuisine';
    	}
    
    	return $data;
    }, 99, 2 );
    

    Please add this filter in your theme’s functions.php file before closing PHP tag i.e ?>

    I hope that helps.

    Ok, perfect.
    thank you very much

    Todd
    Rank Math free

    Hello,

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

    If you don’t mind me 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 do 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 8 replies - 1 through 8 (of 8 total)

The ticket ‘missing elements in the markup schema restaurant’ is closed to new replies.