How to create rich snippets in WordPress?

Rich Snippets may or may or may not improve the CTR and there’s no proof that backs the theory that adding them helps in improving search engine rankings of WordPress sites. When the user finds the post/page with ratings in search results, he/she may click on the result and open this page. If another search result on the same page has a good meta description but doesn’t show any rating, the user may ignore the result which shows the rating and may click on this result.

The only way to know whether schema code will help your site or not is to implement it on a website. A user can add rich snippets in WordPress with or without a plugin. Several WordPress extensions that claim to add rich snippets to posts or pages are available in the WordPress repository.

Let’s first have a look at the simplest way to add schema code to a website i.e. use a plugin. The following extensions have the rich snippet function built-in:

SEOPress

SEOPress Pro version ships with a schema module that enables you to add various types of schemas to pages or posts of a WordPress site. This module is disabled by default and you can activate it with a click of a button. When the Schema feature of SEOPress is active, you will find a panel with the option to choose the schema type while editing or creating a post. When you choose a schema type, SEOPress will display the fields you should fill. Once you have filled out the form and saved the post, the plugin will automatically insert the schema JSON code in the post/page. SEOPress can insert schema on posts belonging to categories or tags of your choice automatically.

RankMath

Rank Math is another great plugin WP users can use to add rich snippets to their WordPress sites. Although RankMath is a new extension compared to Yoast SEO and All In One SEO, it has quickly reached a milestone of 1 million active users. The free version of Rank Math comes with many features including the option to create schemas. The schema feature is optional and is enabled by default. You can create a schema while editing the post. When you click the third tab of the Rank Math SEO panel, the plugin will show a button with the label “Schema Generator”. Click this button and follow the instructions displayed in the popup.

Can you import settings from other SEO extensions if you choose one of the above search engine optimization tools? Yes, SEOPress and RankMath WordPress lets you import the settings and custom title/meta description data from other popular search engine optimization plugins.

Schema and Structured Data by Magazine 3

This plugin ships with a nice wizard utility to create schemas. It supports 20+ schemas and you can configure it to show the chosen schema on posts, pages, etc. When you create the schema, open the post or page of your choice and click the custom schema option. The plugin will now display a form with many fields. Fill in all the fields and click the update/publish button of the post editor. The Pro version of Schema and Structured Data supports event/course/job posting/recipe/QA/real estate schemas.

KK Star Ratings

This free plugin lets you add a star rating system to blog posts or pages. When the visitor visits the page and finds this module, he/she may rate the post or product by clicking on the star icons. This WP extension can automatically calculate the average rating and display the same. It can also add a JSON schema code to the HTML code of the page so that search engines can display the ratings in the search results (if the page appears in the search results). KK Star Rating lets you change the size of stars and the text that it shows next to the stars.

Yasr Star Ratings

Yasr is similar to KK Star Ratings. It comes with 3 styles of stars and provides an option to change the star’s color scheme. The plugin supports these two-color schemes – dark and light. It also allows you to disable/enable the chart bar. Yasr will display a graph icon next to the ratings when the bar feature is on. When users move the mouse cursor on this graph, it will show a mini graph that shows the number of users who have given 1, 2, 3, 4, or 5-star ratings to the product or the post/page.

Manual method

Google has explained each schema in detail. The search engine giant has also shared sample codes of various types of schemas and has launched a tool to test them. For example, this is the page where Google has shared the code and details of the Product schema. You can modify the sample code and test if the new code is valid or not. If your code is valid, you must write a function that will insert your custom schema code in the header or footer of the site.

pramod
Pramod

Pramod is the founder of wptls. He has been using WordPress for more than nine years. He builds web applications, and writes about his experiences with various WP products on this site.

Leave a Reply

Your email address will not be published. Required fields are marked *