How to Add Fuzzy Search in WordPress to Improve Results

Do you want to add fuzzy search to your WordPress website?

WordPress fuzzy search helps users easily find the information they are looking for, even if they misspell or incorrectly enter their query. This improves the overall search experience and user engagement on your website.

In this article, we will show you how to easily add fuzzy search to your WordPress website.

How to add fuzzy search to your WordPress website

What Is Fuzzy Search for WordPress?

Fuzzy search looks for partial matches for a search term, and if no exact matches are available, then it shows users the closest results.

This way, users can find the right content on your website even if they make typos in their search queries.

By default, all WordPress websites come with a basic search feature that only shows results for exact matches.

For instance, if a user misspells a term, no results will be shown, not even partial matches. This creates a bad search experience for users and often causes them to leave your site. You can see this in the image below.

No search results found

This is where SearchWP comes in. It is the best WordPress search plugin on the market that automatically replaces the default search with a much better search feature.

Unlike the default WordPress search, SearchWP can use fuzzy search and look for matches in titles, excerpts, post or page content, products, custom fields, categories, tags, PDFs, and more.

For instance, if a user searches for ‘vintage furniture’ on your WordPress blog but misspells a word, then they will still be able to find your posts on this topic.

The image below shows the same misspelled search using the SearchWP plugin.

SearchWP Fuzzy Search

Note: We only recommend adding fuzzy search if you really consider it necessary. This is because partial matches can reduce the effectiveness of the search form on your website and display unwanted results, leading to user frustration.

That being said, let’s see how you can easily add fuzzy search to your WordPress website.

How to Add Fuzzy Search for WordPress

First, you need to install and activate the SearchWP plugin. For more details, please see our guide on how to install a WordPress plugin.

Upon activation, you need to visit the SearchWP » Settings page from the admin sidebar and then enter your license key into the required field. After that, click the ‘Activate’ button.

You can find the license key information in your account on the SearchWP website.

SearchWP license key

Now, the fuzzy search feature is not enabled in SearchWP by default.

However, you can easily turn it on by visiting the SearchWP » Settings page from the WordPress dashboard and scrolling down to the ‘General’ tab.

From here, simply toggle the switch next to the ‘Partial Matches’ option.

Doing so will enable the WordPress fuzzy search feature for your site, and your settings will be saved automatically.

Toggle the Partial matches switch

Once that is done, you should review the other SearchWP settings. The plugin comes with a bunch of powerful options that allow you to customize search on your WordPress blog.

You can see them by going to SearchWP » Algorithm from the WordPress admin sidebar.

Configure SearchWP engine settings

From here, you can assign weight to different search results. This tells SearchWP to consider some attributes as more important when displaying its search results.

You can also click on the ‘Sources & Settings’ button to select additional search areas. For instance, you can enable search for comments, products, and more instead of simply posts and pages.

Enable search for posts, comments, and pages

To learn more about these settings, you can see our complete guide on how to improve WordPress search with SearchWP.

Adding a Search Form to Your Website

SearchWP automatically replaces the default WordPress search. This means that if you have already added the WordPress Search block or widget to your website, then it will start using the SearchWP custom algorithm for results.

However, if you have not added a search form to your website yet, then you can do so by simply inserting the Search block or widget into any post, page, or sidebar area.

Head over to the Appearance » Widgets page from the WordPress dashboard.

Here, click the add block ‘+’ button to find the Search block and add it to your sidebar. Then, don’t forget to click on the ‘Update’ button to store your settings.

Search widget

However, if you are using a block theme, then it may not have a widget-ready area. In that case, you won’t see the Widgets screen under the Appearance menu.

Instead, you can use the full site editor to add the search block to your website. Simply go to the Appearance » Editor page to launch the editor.

Here, click the ‘+’ button and add the Search block to where you want to display the search form on your website.

Adding search block in site editor

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

You can now visit your website and try out the new, more powerful search feature.

For example, you can see in the image below how the fuzzy search feature returns multiple relevant results from a misspelled query.

Search results with fuzzy search

Bonus: Search by Category in WordPress to Improve User Experience

By adding fuzzy search, you make it easier for users to find relevant content, which makes your website more user-friendly and helpful for visitors.

Another way to make your website easier to navigate is by allowing users to search by category in WordPress.

Categories allow you to organize the content on your website in a more structured way. If you have a lot of blog posts on your site, then allowing users to search by category makes it easier for them to search within specific topic areas, such as travel.

Preview for searching by category

If you have an online store, then adding a category search for products also makes it easier for customers to find the items they are interested in buying. In turn, this can help increase sales.

You can easily improve user experience by enabling the category search feature using the SearchWP plugin. This creates an interactive form where users can filter results using the different categories on your site.

Category select drop down example

For more details, please see our tutorial on how to search by category in WordPress.

We hope this article helped you learn how to easily add fuzzy search to your WordPress website. You may also want to see our tutorial on how to add multilingual search in WordPress and our list of the most common WordPress errors and how to fix them.

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 Fuzzy Search in WordPress to Improve Results first appeared on WPBeginner.

How to Enable Search by Product SKU in WooCommerce

Would you like your customers to be able to search for your WooCommerce products using a SKU code?

Because SKU codes uniquely identify your products, searching for them will help users quickly find exactly what they are looking for. The challenge is that SKU search is not enabled in WooCommerce by default.

In this article, we’ll show you how to enable search by product SKU in WooCommerce.

How to Enable Search by Product SKU in WooCommerce

Why Enable Search by Product SKU in WooCommerce?

To run a successful WooCommerce store, it’s important for your customers to easily find the products they wish to purchase. To make this simple, most eCommerce platforms use SKUs, or Stock Keeping Units, to uniquely identify each product.

If a customer knows the SKU for the product they wish to purchase, why not let them search for the SKU to instantly find the correct product in your store?

The problem is that WooCommerce SKUs are stored in custom fields, and these are not indexed or included in search results by default. As a result, searching for the SKU won’t help.

Let’s take a look at how to solve this problem by enabling users to search by SKU in WooCommerce using a product search plugin.

How to Enable Search by Product SKU in WooCommerce

The first thing you need to do is install and activate the SearchWP plugin. You’ll need at least the Pro plan to access WooCommerce integration. For more details, see our step-by-step guide on how to install a WordPress plugin.

SearchWP is the best custom search plugin for WordPress and is used by over 30,000 websites. It lets you customize the search algorithm, add live Ajax search for real-time results, and more.

Upon activation, you need to visit the SearchWP » Settings page and switch to the ‘Support’ tab to enter your license key. You can find it in your downloads area for your account on the SearchWP site.

Paste Your SearchWP License Key

Next, you need to install and activate the WooCommerce Integration extension for SearchWP.

You’ll find this in the downloads area for your account on the SearchWP website, too. You should install it as you would install any other WordPress plugin.

Install the WooCommerce Integration Extension

Now you are ready to customize the SearchWP search engine to index your product SKUs.

Simply go to the SearchWP » Settings page and make sure you’re on the ‘Engines’ tab. Once there, you need to click the ‘Sources & Settings’ button.

Click on the 'Sources & Settings' Button

This will bring up a popup where you should make sure the checkbox next to ‘Products’ is checked. This will allow SearchWP to index your WooCommerce products.

Also, if you’d also like to include WooCommerce product reviews in your search results, then make sure you check the ‘Comments’ box, too. That’s because product reviews are actually stored as comments in WooCommerce.

Check the Products and Comments Boxes

Once you’ve done that, click on the ‘Done’ button to close the popup and get ready to add the SKU search.

Now you need to scroll down to the ‘Products’ section. Notice that by default, the plugin will only look at the product title, content (description), slug, and excerpt (short description).

Click the 'Add/Remove Attributes' Button in the Products Section

You can extend SearchWP’s reach to include SKUs by clicking on the ‘Add/Remove Attributes’ button. This will bring up a popup where you can include specific custom fields and taxonomies in searches.

You’ll need to type ’SKU’ into the Custom Fields field and choose the _sku option from the dropdown menu. This will add SKUs to WooCommerce search results pages.

Select _sku From the Custom Field Drop Down Menu

You can now click the ‘Done’ button.

Notice that there is now a new section labeled ‘Custom Fields’ with the _sku field underneath.

Slide the SKU Relevance Slider to the Right

To begin with, the relevance slider will be set all the way to the left, which means that SKU search results will be given the lowest priority in search results.

Since SKUs are an important way to find your products, you should move the _sku slider all the way to the right, as you can see above.

When you’re done, go ahead and click on the ‘Save Engines’ button at the top of the screen to save your settings.

Click the 'Save Engine' Button

SearchWP will then start rebuilding your search index in the background. It may take a few minutes to complete, but after that, you will be able to search your WooCommerce store by product SKU.

SearchWP will automatically use any search forms on your online store, so there is no need to take any additional steps if you have them on your site already.

However, if you need to add a search form, then see our step-by-step guide on how to create a custom WordPress search form. This will also teach you how to style the results page using custom CSS.

Now you can go to your WooCommerce store to try out the search feature.

In our demo store, the long sleeve tee has the SKU ‘woo-long-sleeve-tee.’ When we search for that SKU, the correct product is displayed.

Preview of Product SKU Search in WooCommerce

To learn more about improving search on your online store, see our guide on how to make a smart WooCommerce product search.

We hope this tutorial helped you learn how to enable product search by SKU in WooCommerce. You may also want to learn how to create a WooCommerce popup to increase sales, or check out our list of the best WooCommerce plugins to grow your online store.

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 Enable Search by Product SKU in WooCommerce first appeared on WPBeginner.

How to Make Blog Post Comments Searchable in WordPress

Do you want to make blog post comments show up in WordPress search results?

By default, WordPress search doesn’t include comments. This can make it difficult for your visitors to find interesting conversations and engage with other users.

In this article, we will show you how you can make blog comments searchable on your WordPress website.

How to make blog post comments searchable in WordPress

Why Make Blog Post Comments Searchable in WordPress?

A lively and interesting comment section can keep people on your WordPress website longer and create a sense of community around your site.

Because of that, comments are valuable content, and you’ll want to do everything you can to get more comments on your WordPress blog posts.

However, since WordPress doesn’t include comments in its search results by default, visitors may struggle to find interesting discussions and connect with other users or revisit a specific comment thread on your WordPress blog.

You might even be using the comment section for your visitors to submit reviews or testimonials. Having searchable reviews can help to boost sales on your online store, since people will be more likely to find the exact product they’re searching for.

That being said, let’s see how you can fix these problems by making blog post comments searchable in WordPress.

How to Make Blog Post Comments Searchable in WordPress

The easiest way to make blog post comments searchable in WordPress is by using the SearchWP plugin.

SearchWP is the best custom search plugin for WordPress, used by over 30,000 websites. It’s easy to use and lets you improve the built-in WordPress search.

You can also easily configure the plugin to include custom post types in WordPress search results, as well as registered users.

To make your blog post comments searchable, you’ll need to install and activate SearchWP. If you need more details, please see our guide on how to install a WordPress plugin.

Upon activation, you will see a popup telling you that SearchWP has already created an engine for you to use. The first step is customizing this engine.

We’ll show you how to change the default engine in this guide, so you can go ahead and click on the ‘Close’ button to exit the popup.

SearchWP's welcome popup

You will now be taken to the SearchWP » Settings page automatically.

On this screen, click on the ‘License’ tab. You can now paste your key into the ‘License’ box.

The SearchWP advanced search WordPress plugin

You’ll find this information in the email you got when you purchased SearchWP and in your account on the SearchWP site.

Once you’ve pasted the license key, click on the ‘Activate’ button next to it.

Next, just click on the ‘Engines’ tab so that you can customize everything that the plugin will display in search results.

The SearchWP Engines tab

You will see here that by default, posts are searchable and are broken into title, content, slug, and excerpt.

To allow comments to be searchable on your site, you want to click on the ‘Sources & Settings’ button near the top-right part of the screen.

Configuring the SearchWP search plugin

A popup will appear in the middle of your screen. Under the ‘Sources’ heading, you’ll see all the different types of content that SearchWP is capable of searching.

By default, the plugin searches your site’s posts, pages, and media.

How to make your WordPress blog comments searchable

Go ahead and check the ‘Comments’ box. You can then click on ‘Done.’

This includes all comments in the search results on your site.

You can further customize how your blog comments are searched by scrolling to the bottom of the ‘Engines’ tab. You’ll see a new section where you can configure how your comments will be searched.

To get started, click on the ‘Add/Remove Attributes’ button.

Configuring your searchable WordPress comments

On this screen, you’ll see sections for the different parts of the comments that SearchWP includes in its search results, such as author name, email, and comment text itself.

SearchWP can search the comment’s author name and email address, plus the content of the comment itself.

In the following image, we’re telling SearchWP to look at the comment’s content by checking the ‘Comment’ box, as well as the name and email address of the person who posted it.

After making your selection, click on the ‘Done’ button.

Searching your WordPress comments

Whatever options you checked will now appear under the ‘Comments’ section of the ‘Engines’ tab.

For each one, SearchWP has an ‘Applicable Attribute Relevance’ scale. This is the weight that SearchWP will give to each attribute when searching the comments on your blog.

Configuring your searchable WordPress comments

Content that matches an attribute with high relevancy will appear higher in the search results. By contrast, content that matches an attribute that has less relevancy will appear lower in the user’s search results.

By default, all the attribute sliders are set to ‘low,’ but you can change that by simply dragging the slider to the right.

Every site is unique, so you may want to try different relevancy settings to see what gives you the most accurate and helpful search results.

Changing the SearchWP relevancy settings

If you decide later that want to remove an attribute from your search, you can simply repeat the steps above, but uncheck the box next to it.

Once you’re happy with how the search feature is set up, you can go ahead and click on the ‘Save Engines’ button.

Saving your WordPress custom search settings

After a few moments, SearchWP will show a message ‘The index needs to be rebuilt.’

If you do get this message, then go ahead and click on the ‘Rebuild Index’ button. This will add all of your site’s comments to the search index, so they appear in relevant results.

Rebuilding the SearchWP search index

Once you’ve done that, SearchWP will look at your WordPress site’s comments when creating its search results.

How to Change SearchWP Settings

Now that your blog post comments are searchable, you may want to enable some advanced settings that will make it easier for visitors to find what they’re looking for.

To take a look at these advanced search settings, click on the ‘Advanced’ tab.

SearchWP's advanced search settings

On this screen, you can change a lot of the plugin’s behavior such as making adjustments for misspellings.

For example, if someone makes a spelling mistake when typing in their search term, then SearchWP can show a ‘Did you mean?’ correction box with results that are similar to what the search query should have been.

The following image shows an example of how this might look on your website.

The SearchWP 'did you mean' feature

To use this feature in your searches, go ahead and check the ‘Automatic “Did you mean?” corrections’ box.

You’ll also need to check the ‘Partial matches (fuzzy when necessary)’ box, since the ‘Did You Mean?’ feature uses partial matches.

Enabling fuzzy search in SearchWP

For more tips on SearchWP’s advanced settings, please see our step-by-step guide on how to improve WordPress search with SearchWP.

We hope this article helped you learn how to make blog comments searchable in WordPress. You may also want to see our picks of the best live chat software for small businesses and the ultimate guide to creating a WordPress membership site.

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 Make Blog Post Comments Searchable in WordPress first appeared on WPBeginner.

How to Include Custom Post Types in WordPress Search Results

Do you want to include custom post types in WordPress search?

By default, WordPress will never show custom post types in its search results. That means your visitors may miss out on some great content, and you’ll miss out on extra page views.

In this article, we will show you how to include custom post types in WordPress search.

How to include custom post types in WordPress search

How to Include Custom Post Types in WordPress Search

Although WordPress has a built-in search feature, its quite limited. If you create custom post types in WordPress, then WordPress won’t include these items in search results.

The easiest way to include custom post types in WordPress search is by using the SearchWP plugin.

SearchWP is the best custom search plugin for WordPress, used by over 30,000 websites. It’s easy to use and lets you search content that isn’t included in the default WordPress search.

To include custom post types in WordPress search, you’ll need to install and activate SearchWP. If you need help, then please see our guide on how to install a WordPress plugin.

Upon activation, click on the new ‘SearchWP’ button in your website’s toolbar. You can then go ahead and click on ‘Activate License.’

Activating the SearchWP WordPress plugin

After you’ve done that, click on the ‘License’ tab.

You can now paste your license key into the ‘License’ box. You’ll find this key in the email you got when you purchased SearchWP and in your account on the SearchWP site.

The SearchWP advanced search WordPress plugin

Once you’ve pasted this information into the ‘License’ field, go ahead and click on the ‘Activate’ button next to it.

You can now set up SearchWP to include custom post types in WordPress search results.

To start, simply click on the ‘Engines’ tab.

SearchWP's Engine tab

On this screen, you’ll see sections for the different types of content on your WordPress site that SearchWP includes in its search results.

By default, this plugin searches your website’s media, posts, and pages.

To include custom post types in your searches, click on the ‘Sources & Settings’ button.

Configuring the SearchWP search plugin

Under ‘Sources,’ you’ll see all your post types listed along with comments, media, and more. Simply find all of the custom post types that you want to include in your search results, and check their boxes.

After that, click on the ‘Done’ button.

Including custom post types in WordPress search

You’ll now see a new section for each of your custom post types on your WordPress blog.

In each section, SearchWP shows all the attributes that it will look at when searching your custom post types.

For each attribute, SearchWP has an ‘Applicable Attribute Relevance’ scale. This is the weight that SearchWP gives to this attribute when searching your custom post types.

By default, the sliders for Title, Slug, and Excerpt are all the way to the right, so they have the most weight. The slider for Content is in the center, so it has less weight.

SearchWP's attribute weight settings

Want to change an attribute’s weight? Simply drag its slider.

You may want to try different relevancy settings to see what gives you the most accurate and helpful search results.

You can also remove attributes. For example, your custom post type may have attributes that you want SearchWP to ignore, like attributes that you added for your internal reference only.

To add or remove attributes, click on the ‘Add/Remove Attributes’ button.

Adding custom post type attributes to WordPress search

To add an attribute, simply click to check its box.

If you want SearchWP to ignore an attribute, then go ahead and uncheck its box.

Removing custom post type attributes from WordPress search

If you’ve created any custom taxonomies or custom fields, then you might want SearchWP to look at this content when searching your custom post types.

To do this, simply click on either the ‘Custom Fields’ or ‘Taxonomies’ fields. You can then type in the name of the attribute that you want to add, and click on it when it appears.

Adding custom post types in WordPress search

When you’re happy with your settings, click on the ‘Done’ button.

If you’ve added any attributes, custom fields or taxonomies, then you can change how much weight this content has. Just like we mentioned earlier, moving the slider to the right will give this attribute more weight which means it will have a bigger impact on the search results.

Changing the attribute relevancy for custom post types in WordPress search

Once you’ve finished customizing SearchWP’s settings, scroll to the top of the screen.

You can then click on the ‘Save Engines’ button to save your changes.

Saving your WordPress custom search settings

At this point, SearchWP may show you the message ‘The index needs to be rebuilt.’

If you see this message, then go ahead and click on the ‘Rebuild Index’ button. This will add your custom post types to your site’s search index, so they will show up in the search results.

Rebuilding the WordPress search index

That’s it. WordPress will now include your custom post types in its search results.

Once you’ve done that, you may want to enable some advanced settings that will make it easier for visitors to find what they are looking for.

To take a look at these settings, click on the ‘Advanced’ tab.

SearchWP's advanced search settings

This screen lists some of the more advanced settings that you may want to use.

For example, if you want to show results that don’t quite match the term that the visitor searched for, then you can check the ‘Partial matches (fuzzy when necessary)’ box.

The 'fuzzy' partial search settings in SearchWP

For more tips on SearchWP’s advanced settings, please see our step by step guide on how to improve WordPress search with SearchWP.

After adding custom post types to WordPress search, you may want to create a search form that only show the search results from your custom post type category, which can make it easier for visitors to find what they’re looking for. For more details, see our step-by-step guide on how to create advanced search form in WordPress for custom post types.

We hope this article helped you learn how to include custom post types in WordPress search. You can also go through our guide on how to make money online blogging with WordPress, and see our expert pick of must have WordPress plugins for business sites.

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 Include Custom Post Types in WordPress Search Results first appeared on WPBeginner.

How to Add FAQ Schema in WordPress (2 Methods)

Do you want to add FAQ schema in WordPress?

Adding FAQ schema can help boost your SEO rankings and organic click-through rate by making your frequently asked questions appear directly in Google’s search results.

In this article, we will show you how to add FAQ schema in WordPress and improve your rankings, step by step.

How to Add FAQ Schema in WordPress (2 Methods)

What Is FAQ Schema?

FAQ schema is a smart markup code, also known as structured data, that you can add to your website pages to help Google identify an FAQ section.

If you add FAQ schema, then Google may choose to reward you with an enhanced search result listing that also shows FAQs directly below the name of your WordPress website.

Here’s an example of an FAQ result. Google shows the questions, and you can click the down arrows to see the answers.

Example of FAQ rich result

This increased visibility on Google means more traffic to your website. It also makes your blog look like an authority on the subject.

Plus, FAQ schema makes your content more helpful to users who prefer the question-and-answer approach.

With FAQ schema, you have control over the questions and answers. You can customize the content however you like. You can even add emojis to boost your organic click-through rate (CTR).

Your FAQs can also appear in Google’s ‘People also ask’ boxes, which is another potential visibility boost.

These boxes appear for many search queries and offer a list of additional questions, each linked to a website for more information.

FAQ schema can appear in the People Also Ask box

It’s important to note, though, that adding FAQ schema in WordPress will not guarantee that your FAQs appear on Google. However, it will improve your chances of being seen.

FAQ Schema Guidelines

Before adding FAQ schema to your pages and posts, it’s important to understand Google’s content guidelines.

FAQ schema content guidelines

You should only use FAQ schema if your page has a list of questions with answers. If your page only asks one question, then you should use the QA schema instead.

You should not use FAQ schema for advertising purposes or for questions and answers that contain violent, obscene, hateful, dangerous, or illegal language.

If the same question and answer appear multiple times on your page, then it’s important to only add FAQ schema in one instance.

The questions and answers in your FAQs must also appear in the content on your page.

Finally, make sure each question includes the entire text of the question and each answer includes the entire text of the answer.

How to Add FAQ Schema in WordPress

The easiest way to add FAQ schema in WordPress is to install a plugin that handles it for you, but you can also do it without a plugin.

We will cover both options and you can use the quick links below to jump to the method you want to use:

Method 1: Adding FAQ Schema in WordPress With All in One SEO

The best way to add FAQ schema in WordPress is with the All in One SEO Pro plugin. It’s the best SEO plugin for WordPress, used by over 3 million sites.

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

Note: There is a free version of All in One SEO available, but you need the premium version to add FAQ schema in WordPress.

Upon activation, the plugin will run a setup wizard. You can follow the on-screen instructions to set it up. If you need more help, then please take a look at our guide on how to properly set up All in One SEO for WordPress.

All in One SEO setup

Once you are done with the setup, you will return to the WordPress dashboard.

You can see a new ‘All in One SEO’ menu item in the admin sidebar.

All in One SEO menu item

If you had the free version of All in One SEO installed, then all of your settings will automatically transfer to the Pro version. The free version will be automatically deactivated.

Now that All in One SEO is installed and activated, you need to navigate to the page or post where you would like to add FAQ schema.

Simply scroll down to the bottom of the content editor, where you will see the AIOSEO Settings.

When you click on the ‘Schema’ tab, you can see that the schema settings are automatically enabled by default. Then, you can click on the ‘Generate Schema’ button to customize it.

All in One SEO Schema Settings

This will bring up the Schema Catalog, where you can select the type of schema you want to implement.

Next, you need to find the FAQ option and click the ‘Add Schema’ button next to it.

Choose FAQ from the Schema Catalog in AIOSEO

Now, you can start entering your FAQ information.

Start by adding a name and description for your page or post. You can even use AIOSEO’s easy emoji picker to add emojis to these fields.

Add name and description for FAQ

After that, you should scroll down to start adding the Question and Answer fields for your first FAQ question.

You can also click the ‘Add Another Question’ link to add more questions.

Add FAQs to All in One SEO

Once you are done, don’t forget to click the ‘Add Schema’ button.

If you want to test whether your FAQ schema markup is correctly added, then scroll down to our section on how to test your WordPress FAQ schema.

Method 2: Adding FAQ Schema in WordPress Without a Plugin

If you want to add FAQ schema in WordPress without a plugin, then you can do it by using our manual code method.

First, you will need to generate the FAQ schema code. You can do this by using the FAQPage JSON-LD Schema Generator.

FAQ schema generator

Start by adding your questions and answers on the left side of the tool. You can click ‘Add Another FAQ’ to add as many questions as needed.

As you type, the schema markup will update on the right.

Add questions to schema generator

Your next step is to paste the code you just created into WordPress. Simply click ‘Copy FAQ Schema’ to copy the code.

After that, navigate to the page or post where you want to add the FAQ schema.

If you are using the block editor, then you need to add a Custom HTML block and paste the FAQ schema markup inside that.

Add FAQ schema in the block editor

If you are still using the old classic editor, then you need to toggle to the text editor.

After that, you can paste the schema markup at the bottom of your post.

Add FAQ schema in the classic editor

When you are finished, just click the ‘Update’ or ‘Publish’ button to save your changes.

Testing Your WordPress FAQ Schema

Since your FAQ schema code is specifically for Google, you can’t tell whether it’s working just by looking at your page.

To test whether your FAQ schema markup is correct, you can use Google’s Rich Results Test page. Simply enter the URL of the page with FAQ schema and click ‘Test URL’.

Google's Rich Results Test

Google will analyze your page for all kinds of schema markup, not just FAQ schema. You may see multiple results if your page uses other kinds of schema.

Once the text is complete, expand the results under the “FAQ” heading.

Rich results FAQ schema section

You should see the actual question-and-answer pairs that you added to your FAQ section. If these are correct, then you are all set.

If they aren’t correct, then you will need to go back and double-check that you set up your FAQ schema properly.

FAQ schema test results

If the correct items still aren’t showing, then we recommend clearing your WordPress cache because caching plugins may show an outdated version of your content to Google.

We hope this article helped you learn how to easily add FAQ schema in WordPress. You may also want to see our ultimate WordPress SEO guide to boost your rankings and our expert picks for the best social media plugins for WordPress.

The post How to Add FAQ Schema in WordPress (2 Methods) first appeared on WPBeginner.