Recipe

#17969
  • Resolved Jérémy R
    Rank Math free

    Hello,

    Thank you for the plugin.
    I have two questions.

    How can i choose an image for recipe rich snippet ?

    I have on a recipe 750 reviews. How can i add that number to the rich snippet.
    It seem that i can just setup a rating score.

    Thank you 🙂
    Jeremy

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    The recipe image will be loaded from the post’s featured image, please ensure you have one.
    It is not currently possible to assign more than a single rich snippet type to a post in Rank Math but you can extend the recipe schema data and include your own schema data by using this filter:

    /**
     * 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 [];
    }, 10, 2);

    Looking forward to helping you. Thank 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 1 replies (of 1 total)

The ticket ‘Recipe’ is closed to new replies.