Beginner’s Guide: How to Use Rich Snippets in WordPress

Do you want to add rich snippets on your WordPress site?

Rich snippets allow you to have custom search listings for special content such as reviews, recipes, events, and more. These search listings will stand out and help get more traffic to your site.

In this article, we’ll show you how to add rich snippets to your WordPress site, step by step.

Beginner's guide: how to use rich snippets in WordPress

Why Use Rich Snippets on Your WordPress Site?

Rich snippets use what’s called schema markup to provide extra information about your content to the search engines.

The search engine bots use this data to show additional information about your posts and pages in the search results.

Rich snippets example

This helps to make your posts and pages stand out more in the search results, which can improve your organic click through rate and help you increase your blog traffic.

It also helps you build authority in your niche, as your site becomes more visible in the search.

Rich snippets are not just for review sites or recipes. You can use rich snippets for events, products, people, video, music, apps, articles, blog posts, and more.

Note: It’s important to know that adding schema markup to your website doesn’t guarantee that Google will display it. Google may choose not to for some searches. However, adding the schema markup helps Google to understand your content and makes it much more likely to display rich snippets.

That being said, let’s show you how to add rich snippets to WordPress. Simply use the quick links below to jump straight to the method you want to use.

Method 1. Adding Rich Snippets in WordPress Using a WordPress Plugin

The easiest way to add rich snippets to WordPress is by using the AIOSEO plugin. It’s the best WordPress SEO plugin in the market, used by over 3+ million websites. 

AIOSEO

It helps you easily optimize your site for search engines without the need to hire an SEO expert. Plus, you can set up rich snippets on your site in a couple of clicks.

Note: You’ll need the pro version of AIOSEO since it includes schema markup functionality and other features like XML sitemaps, a redirection manager, and more. There is a free version of the plugin you can use to get started. 

The first thing you need to do is install and activate the AIOSEO plugin. For more details, see our beginner’s guide on how to install a WordPress plugin.

Upon activation, you’ll immediately be taken to the AIOSEO setup wizard. You need to click the ‘Let’s Get Started’ button. 

Click let's get started AIOSEO setup wizard

If the setup wizard doesn’t immediately show up, then simply go to All in One SEO » Dashboard.

From here, you can click the ‘Launch the Setup Wizard’ button. This will walk you through the steps of setting up the plugin for your website. 

AIOSEO dashboard launch setup wizard

As you go through the setup wizard, you’ll need to activate the ‘Advanced Rich Snippets + Schema Markups’ addon.

Simply check the box so that it turns blue, then click the ‘Save and Continue’ button.

Active rich snippets and schema markup addon

On the final screen, you need to enter your license key and then click the ‘Connect’ button.

You can find this information under your account page on the AIOSEO website. 

Enter AIOSEO license key

For more details, see our ultimate guide on how to set up AIOSEO for WordPress correctly.

After that, you can go to AIOSEO » Search Appearance in your WordPress admin panel, and then click on the ‘Content Types’ tab.

Go to AIOSEO search appearance and click content types

Then, you can set the schema markup type for your posts and pages.

Simply click the ‘Schema Markup’ menu option, then you can choose the schema type from the drop-down.

You will be able to see different content types that you can create with the plugin. The list includes:

  • Course
  • Product
  • Recipe
  • Software/App
  • FAQ
  • Web page
  • Profile
  • Article

Clicking on any content type will show you the fields that will be available.

Default schema markup for posts

These settings will be the default settings when you add a new blog post. However, you can change these on an individual post basis too.

Below the post schema markup, you can also control the default schema for your pages.

Simply select the ‘Schema Type’ from the drop-down. Then, you’ll have additional options for the schema type you select.

Default schema markup for pages

Once you’re finished making changes, click the ‘Save Changes’ button before you leave the page. 

Adding Rich Snippet Information to Your Posts and Pages

Now, you can add schema information to your individual posts and pages, so they’ll display with unique rich snippets in the search results.

To do this, simply open up a blog post and scroll down below the post editor. Here you’ll see a meta box called ‘AIOSEO Settings’.

You need to click the ‘Schema’ tab and then click on the ‘Generate Schema’ button.

Click the Generate Schema button in AIOSEO

This will open up the Schema Catalog. Simply click the ‘Add Schema’ button next to the type of schema you want to add.

Choose a schema type from the Schema Catalog

Now, there will be different fields available to fill out, based on the option you select. For example, the ‘Software’ schema type includes fields for the name, operating system, price, description, review, and more.

Post schema markup for software application

Once you’re finished, click the ‘Add Schema’ button. Don’t forget to click ‘Update’ or ‘Publish’ on the post to save your changes as well.

Click Add Schema button

Adding schema markup to individual WordPress pages is similar. You need to open up the page you want to edit and then scroll down to the ‘AIOSEO Settings’ meta box below the page editor.

Then, click the ‘Schema’ menu option, click the ‘Generate Schema’ button, and select your page schema type from the Schema Catalog.

Page schema example for web page

Different options will appear depending on the type of schema you select. 

Just like above, when you’re finished, you need to click the ‘Add Schema’ button and hit ‘Update’ or ‘Publish’ on the page to make your changes live. 

Adding rich snippet information won’t make a difference on the front end of your WordPress blog. However, you’ll be giving the search engine bots extra data to display with your posts and pages in the search results. 

Method 2. Adding Rich Snippets by Adding Code to WordPress

Another way to add rich snippets to WordPress is by adding code to WordPress. If you haven’t done this before, then see our guide on how to copy and paste code in WordPress.

Rich snippets or structured data markup can be written into three different vocabularies. These vocabularies are microdata, RDFa, and JSON-LD. You can use any of them on your site. However, most beginners find RDFa to be more beginner friendly.

Here is an example of a user’s about page in WordPress. Normally the text of the page will look something like this:

John Smith
<img src="johnsmith.jpg" alt="Photo of John Smith"/>
Support Technician
342 Acme Inc.
101 Washington Avenue
Eagleton IN 98052
(425) 123-4567
<a href="mailto:johnsmith@example.com">johnsmith@example.com</a>
Website:
<a href="http://www.example.com">example.com</a>

This can be easily transformed with rich snippets.

If you are familiar with HTML, then you can easily understand the following example:

<div vocab="http://schema.org/" typeof="Person">
  <span property="name">John Smith</span>
  <img src="johnsmith.jpg" property="image" alt="Photo of John Smith"/>
  <span property="jobTitle">Support Technician</span>
  <div property="address"  typeof="PostalAddress">
    <span property="streetAddress">
      342 Acme Inc.
      101 Washington Avenue
    </span>
    <span property="addressLocality">Eagleton</span>,
    <span property="addressRegion">IN</span>
    <span property="postalCode">46818</span>
  </div>
  <span property="telephone">(425) 123-4567</span>
  <a href="mailto:johnsmith@example.com" property="email">johnsmith@example.com</a>
Website
  <a href="http://example.com" property="url">example.com</a>
</div>

For each content type, there are some special properties that need to be defined.

Schema.org is the organization that helps maintain the standard for different content types. You will find extensive documentation with examples for each schema content type on their website.

Here is another example of a recipe with rich snippets.

<div vocab="http://schema.org/" typeof="Recipe">
  <span property="name">Mom's World Famous Banana Bread</span>
  By <span property="author">John Smith</span>,
    <img property="image" src="bananabread.jpg"
    alt="Banana bread on a plate" />
  <span property="description">This classic banana bread recipe comes
  from my mom -- the walnuts add a nice texture and flavor to the banana
  bread.</span>
  Prep Time: <meta property="prepTime" content="PT15M">15 minutes
  Cook time: <meta property="cookTime" content="PT1H">1 hour
  Yield: <span property="recipeYield">1 loaf</span>
  Ingredients:
  - <span property="recipeIngredient">3 or 4 ripe bananas, smashed</span>
  - <span property="recipeIngredient">1 egg</span>
  - <span property="recipeIngredient">3/4 cup of sugar</span>
  ...
  Instructions:
  <span property="recipeInstructions">
  Preheat the oven to 350 degrees. Mix in the ingredients in a bowl. Add
  the flour last. Pour the mixture into a loaf pan and bake for one hour.
  </span>
</div>

If you are manually adding rich snippets into your WordPress posts, then you will need to manually add HTML to WordPress. For more details, see our beginner’s guide on how to edit HTML in WordPress code editor.

You may also need to refer to Google’s Developer resource on structured data to understand which properties are required for each content type.

Testing Your Rich Snippets and Schema Markup

If you’re adding rich snippets manually, then you’ll want to make sure you’ve added the structured data to your WordPress website properly.

To check your rich snippets, simply head over to the Google Structured Data Testing Tool. Then, there are two different tests you can run to test your structured data.

First, click the ‘Go to the Rich Results Test’ button. This will see what rich results can be generated for your page.

Go to rich results test

Then, enter your page or post URL into the box.

Next, click the ‘Test URL’ button.

Run rich results test

This will automatically generate a report to see which rich results features can appear when that page or post is listed in the search results.

It will give you any errors or warnings, so you can improve your structured data. You can click the drop-down arrow next to any warning, and you’ll get detailed instructions on how to fix it.

Rich results test results

Next, you can test your schema markup by going back to the Google Structured Data Testing Tools page.

Then, click the ‘Go to the Schema Markup Validator’ button.

Go to schema markup validator test

Next, enter your URL or code snippet into the ‘Test your structured data’ popup.

Then, click the ‘Run Test’ button.

Enter URL or code and test structured data

The tool will automatically analyze your code to see if there are any errors.

You’ll want to see 0 errors on the right-hand side of the page.

Schema markup test results

We hope this article helped you learn how to use rich snippets on your WordPress site. You may also want to see our guide on how to choose the best domain name registrar and our expert picks of the best AI chatbots software for your website. 

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post Beginner’s Guide: How to Use Rich Snippets in WordPress first appeared on WPBeginner.

How to Add Schema Markup in WordPress and WooCommerce

Do you want to easily add schema markup in WordPress?

Schema markup helps you provide important information to search engines that they can use to enhance your listing in the search results.

In this article, we’ll show you how to easily add schema markup in WordPress and bring in more free SEO traffic from search engines to your website.

Adding schema markup to a WordPress website

Here is a quick overview of the topics we’ll cover in this article:

What is Schema Markup?

Schema markup is a special type of HTML code that you can add to your WordPress website to tell search engines more about your content.

For instance, you can tell the search engines that a particular page is a blog post, a recipe, FAQ, news article, or product page in your online store. Search engines can then use this data to display rich results.

Rich results in Google Search

Search engines like Google also use schema markup to display information in other searches. For instance, in Google Maps your listing would appear with directions, open hours, business phone number, and more.

Local search results preview

These enhanced search listings are called rich results or rich snippets. They make your site stand out in SERPs which improves your organic click through rate and brings you more free traffic.

That being said, let’s take a look at how to easily add schema markup in WordPress without writing any code.

How to Add Schema Markup in WordPress

The easiest way to add schema markup in WordPress is by using All in One SEO for WordPress. It is the best WordPress SEO plugin on the market and allows you to easily add schema markup to your WordPress site.

All in One SEO for WordPress

The first thing you need to do is install and activate All in One SEO for WordPress. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, the plugin will launch a setup wizard that will walk you through the setup. If you need help, then follow our article on how to set up All in One SEO for WordPress.

Now if you completed the setup, then the plugin will automatically set up the correct schema markup and apply it across your website.

However, we’ll walk you through all the schema markup settings manually so that you can change the settings if needed.

Setting Site Wide Schema Markup in WordPress

First, we’ll start by telling search engines some basic information about your WordPress website. Go to All in One SEO » Search Appearance page and scroll down to the Knowledge Graph section.

Provide your website information for Knowledge Graph

From here, you need to choose whether your website is about a person or an organization. For an organization, you can provide a name, business phone number, contact type, and a business logo.

If your website is about a person (such as a personal blog, resume website, or a portfolio website), then you can select the person’s user account from the drop-down list or enter their information manually.

Person meta data

If you choose an existing WordPress user, then you can edit the selected user’s profile by visiting Users » Profile page.

Here you can provide the user’s Twitter and Facebook profile URLs.

Edit user profile

Also, make sure that you have entered the user’s first and last name correctly and have chosen the correct name to be displayed publicly.

Lastly, you’ll need to set up the user’s profile photo as a Gravatar.

Don’t forget to click on the ‘Update Profile’ button to save your changes.

Setting up Default Schema Markup in WordPress

The next step is to choose default settings to use for generating schema markup for all your WordPress posts and pages.

This will ensure there is schema markup correctly set up for all your WordPress posts, pages, products, or any other content types.

Simply go to the All in One SEO » Search Appearance page and switch to the Content Types tab. From here you will see all your post types listed.

Search Appearance content types

For each post type, you’ll notice a Schema Markup tab. Switching to it will allow you to choose the default schema type for that particular post type.

Choosing default Schema markup for content types in WordPress

From here you can review the settings and change them if needed. For instance, if you run a news website that uses WordPress posts as news articles, then you may want to change the Article Type to News Article schema.

Changing Schema Markup for Individual Posts and Pages in WordPress

Since you’ve already set up default schema settings, you won’t need to manually change your schema markup for most of your content.

However, there are a few cases where you may want to adjust the schema settings for an individual post or page.

For example, if you’re using custom WordPress landing pages as product pages, then you would want search engines to know that. Similarly, some blogs may be using WordPress posts to publish recipes, news articles, or reviews.

In these scenarios, you may need to change the schema markup for that particular post or page.

Simply edit the post or page that you want to modify. On the post edit screen, scroll down to the AIOSEO Settings box below the editor and switch to the Schema tab.

Change a single post or page's schema markup

From here you can change that post’s schema markup settings. There are different types of schema to choose from, and each one comes with its own microdata.

For instance, if you change a post to Recipe, then you can provide a recipe description, cuisine type, preparation time, instructions, and more.

Recipe schema meta data

Similarly, if you change a page to a Product schema type, then you can provide price, brand, currency, availability, and more.

Product schema markup

This is such a handy tool for websites that are selling products using a simple online payment form instead of an eCommerce platform.

Setting up Schema Markup for WooCommerce

All in One SEO is the most comprehensive WooCommerce SEO plugin on the market. Apart from the usual SEO settings, it also correctly selects product schema markup for all your products.

It will fetch all the necessary metadata from your WooCommerce product listing like pricing, currency, availability, reviews, star ratings, and more. Additionally, you can provide brand, identifier type, and identifier number under the Schema tab for each product.

Product schema metadata

This comes in handy if your store is selling products from other brands with a standardized identifier.

Adding Schema Markup for Local SEO

Nearly 36% of all searches on Google have local intent. That means those users are looking for local businesses and services nearby.

Most local searches lead to a purchasing decision, which makes them highly lucrative for small businesses.

Local SEO helps you put your business on the map for users to easily find. This allows your store or business to appear in local Google search results.

Local search results

It also makes your business appear in other Google products like Google Maps, which brings more walk-in customers to your physical location.

Local search results preview

All in One SEO comes with a Local SEO addon that allows you to easily optimize your website for local search results.

Simply go to the All in One SEO » Local SEO page and click the Activate Local SEO button.

Enable Local SEO

Upon activation, if your business has multiple locations, then you’ll want to turn that option on. You’ll then be able to add individual locations and set them up.

Multiple or single location business

Below that, you can provide your information including business name, logo, phone number, business type, payment options, and more.

Business information

After that, you can switch to the Opening Hours tab to enter your business hours.

Opening hours

Simply enter working hours for each day and mark the days when your business is closed.

Working hours

Don’t forget to click on the Save Changes button to store your settings.

For more details, take a look at our guide on how to add business hours in WordPress.

Once you have set up local SEO on your WordPress website, you can also sign up for a Google My Business account to claim your business.

Testing Your Schema Markup for Rich Snippets

You can test the schema markup on your WordPress website using Google’s Structured Data Testing tool. Simply enter the URL of your website and it will fetch the structured data markup found on that URL.

Structured data testing tool

If there is an error or warning, then you can troubleshoot it by revisiting the schema markup settings on your website.

Google also provides a newer Rich Snippets testing tool. It not only checks Schema markup on your website for rich snippets, but will also show you if some data is missing.

Rich snippets testing tool

We hope this article helped you learn how to easily add schema markup to your WordPress website. You may also want to see our expert pick of the must-have WordPress plugins and our comparison of the best email marketing services for small business.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Schema Markup in WordPress and WooCommerce appeared first on WPBeginner.

How to Get a Google Featured Snippet with Your WordPress Site

Do you want to get a Google featured snippet with your WordPress site?

Featured snippets are the highlighted results for a Google search. Users are more likely to click on a featured snippet than a plain search result.

In this article, we will show you how to get a Google featured snippet with your WordPress site without any technical knowledge.

how to get Google featured snippets for your WordPress website

Here is a quick overview of things we’ll cover in this article:

What are Google Featured Snippets?

Google featured snippets are highlighted results that’s shown at the top of the page above position one that’s why they’re also known as position 0.

In the featured snippet, Google may display a search result in the Answer box or highlight it using microdata from your website.

For example, if Google thinks that your website will answers user’s question adequately, then it will appear on top with relevant text displayed as the description.

Answer box

Similarly, Google also uses Schema.org metadata to fetch important information from websites and display them in search results at the top. For example, if you search for a local business, then their relevant business information will be at the top.

Local search results preview

Featured snippets can enhance product pages for your online store, better showcase your recipes, highlight your real estate listings, and more.

Product results with ratings and reviews

The enhanced search display of featured snippets improves your organic click-through rate and brings more free traffic to your website.

This is why all smart business owners optimize their website, so they can have maximum chances of appearing as featured snippets in Google search.

That being said, let’s take a look at how to get Google featured snippets for your WordPress posts and pages.

Getting Google Featured Snippet using All in One SEO

Google uses Schema.org metadata and their knowledge graph API to display different types of featured snippets.

Schema markup is a special vocabulary that you can use in your content’s HTML code to give search engines more context about your website and individual pages.

In the early days, this used to be hard for small businesses because it involved a lot of coding.

But that’s not the case anymore, thanks to plugins like All in One SEO for WordPress.

It is the best WordPress SEO plugin on the market that’s used by over 2 million websites. They help you easily optimize your website for higher search engine rankings.

AIOSEO automatically adds Schema.org support which helps you provide information for Google Knowledge Graph. It has full WooCommerce SEO support, local SEO, images, news, video optimization, and more.

First, you need to install and activate the All in One SEO for WordPress plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you’ll be asked to run the setup wizard. It is the easiest way to quickly select the best SEO settings for your website.

All in One SEO set up wizard

Need help with the setup? See our complete guide on how to install and set up All in One SEO for WordPress.

Now, if you have followed the setup wizard, the basic settings for your website to appear in featured snippets are already set.

But we’ll show you what they do and how to change them if you need to.

Setting up Knowledge Graph Information in WordPress

First, you need to visit All in One SEO » Search Appearance page and scroll down to the Knowledge Graph section.

Knowledge graph information

From here, you can tell the search engines who your website represents (i.e. An organization or an individual). After that, you can provide your business phone number, logo, and contact type information.

Don’t forget to click on the Save Changes button to store your settings.

Knowledge Graph information is used by search engines to display knowledge panels. These panels appear when someone searches for an organization or individual person.

Knowledge panels in Google Search

Adding Local Business Information to Featured Snippets

More than 40% of all searches on the internet have a local intent. Majority of these searches lead to sales as users are looking for directions and things to buy near them.

Many businesses and organizations have retail locations and offices that customers can visit.

You can add this information using All in One SEO and let search engines automatically display it in featured snippets.

Local search results preview

First, go to the All in One SEO » Local SEO page and activate the Local SEO feature.

Choose single or multiple locations

Upon activation, you can choose if your organization or business has multiple locations. If you do, then you can go ahead and start adding those locations otherwise you can scroll down to add your business information.

Business information

After that, switch to the Opening Hours tab to add your business hours.

Opening hours for your business

For more details, check out our article on how to add business hours in WordPress.

Finally, you need to connect and verify your business using Google My Business website. This gives you more control over your business’s appearance in Google search results and improves your chances appearing more often in featured snippets.

Add SEO Schema Markup in WordPress Posts / Pages

All in One SEO automatically adds the correct Schema markup for your content. However, you can review these settings and change them if needed.

Simply go to All in One SEO » Search Appeaerance page and switch to the content types tab. From here, you’ll see all your post types listed (posts, pages, products).

You need to click on the ‘Schema’ for a post type to change its default settings.

Default schema settings

What if you didn’t want to change schema type for all posts? Well, AIOSEO let’s you change Schema markup for individual posts, pages, and other post types as well.

Simply edit the post or page you want to change and scroll down to the AIOSEO settings box below the post editor.

Default schema settings

This feature is particularly useful for businesses that use Pages to sell products with or without using an Ecommerce plugins. You can then simply edit your product landing page and change its schema type to Product.

Changing any page schema to a product in WordPress

Another way to turn your search listing into a more enhanced featured snippet is by using Breadcrumb navigation.

Breadcrumb navigation tells users where they are on a website relative to the homepage. It is then displayed as a trail of links and would also appear in search results.

Breadcrumb navigation in search results

You can also display the breadcrumb navigation trail on your website. This allows users to go up and down, browse categories, and discover more products and content.

Breadcrumbs on a WooCommerce store product page

For search engines, All in One SEO automatically adds the required markup to your website’s HTML code. However, if you want to display breadcrumbs on your site too, then you can go to All in One SEO » General Settings page and switch to the Breadcrumbs tab.

Enable breadcrumbs display in All in One SEO

From here, you need to Enable Breadcrumbs and then use one of the available methods to display the links. For more details, check out our article on how to add breadcrumb navigation links in WordPress.

Get Site Links for WordPress in Google Search

Site Links are the additional links that Google may show below a particular search term. They usually appear for brand and website names, but they may appear for other types of searches as well.

Site Links

To get site links, you need to add your website to Google Search Console and submit your XML sitemap.

Add sitemap to Google Search Console

You can increase your chances of getting site links by creating a proper website structure. This includes adding all the important pages for your website and use categories to properly organize your website structure.

Appear in The Answer Box for Google Search

What’s better than ranking #1 for a keyword?

Ranking #0 in the answer box.

Answer boxes are the search results that appear on the top and Google considers them to be answering user’s search intent.

Answer box

Answer boxes have an average click-through rate of 32% which makes them highly lucrative. Particularly for keywords with a purchase intent Answer boxes can lead to sales and boost conversions.

The only way to appear in the answer boxes is to improve the quality of your content. Make sure it is comprehensive and answers users’ questions from different angles.

See our detailed tutorial on how to appear in the Google Answer boxes with your WordPress posts and pages.

We hope this tutorial helped you get featured snippets with your WordPress site. You may also want to see our guide on how to get more traffic to your website with proven tips, and our comparison of the best email marketing services.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Get a Google Featured Snippet with Your WordPress Site appeared first on WPBeginner.