Nick_Luvera Posted December 27, 2018 Report Share Posted December 27, 2018 I have a site that publishes blog posts with multiple recipes on some posts. The Rich Snippets section only allows me to markup one recipe per post. Is there a work around within the plugin? Thank you, Nick Link to comment Share on other sites More sharing options...
Support Pratik.d Posted December 27, 2018 Support Report Share Posted December 27, 2018 Hello, Thank you for contacting MyThemeShop today. You can use a plugin filter to add/change the output of the snippet data. Below is a syntax of this filter: add_filter( 'rank_math/snippet/rich_snippet_recipe_entity', function( $recipe ) { // You can modify/add recipe details here by extending the $recipe variable return $recipe; }); Hope that helps. Thank you. 🏁Rank #1 on Google With our WordPress SEO Plugin. ⚡Score a 💯on PageSpeed and Dominate Search Rankings. ✏ Editing theme files? Please create a child theme to make your changes update-proof. Link to comment Share on other sites More sharing options...
Nick_Luvera Posted December 27, 2018 Author Report Share Posted December 27, 2018 Thank you for the reply. I am not a developer. I understand the principles. Can you please give instructions on where to insert the code? Link to comment Share on other sites More sharing options...
Support Pratik.d Posted December 28, 2018 Support Report Share Posted December 28, 2018 Hello, To change the Recipe snippet data, please add the filter code in your active theme's functions.php. The filter code will only change the output generated by the Rank Math plugin, so you'll have to manually add the array of recipes to $recipes variable used in the filter. Hope that helps. Thank you. 🏁Rank #1 on Google With our WordPress SEO Plugin. ⚡Score a 💯on PageSpeed and Dominate Search Rankings. ✏ Editing theme files? Please create a child theme to make your changes update-proof. Link to comment Share on other sites More sharing options...
Recommended Posts