Add a filter | WordPress.org

[ad_1]

@louisgcom This functionality already exists.

You can display the Structured Data on any single page in your website. In the wp_options table, change the option with option_name: google_business_reviews_rating_structured_data to the Post ID of the page.

According to the Schema documentation, they recommend only including this once per website. So, find a good location and set this as the page. I’ve covered this in more detail in an old forum post.

If you just want the Structured Data, there is a Shortcode for this, which can also run within do_shortcode():

[reviews_rating structured_data]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer