Do you want blog post comments to appear in WordPress search results?
By default, WordPress search does not include comments. This can make it difficult for your visitors to find interesting conversations and interact with other users.
In this article, we’ll show you how to make blog comments searchable on your WordPress site.
Why Make Blog Post Comments Searchable in WordPress?
A lively and interesting comments section can keep people on your WordPress website longer and create a sense of community around your site.
For this reason, 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 does not include comments in its search results by default, visitors may find it difficult to find interesting discussions and connect with other users or revisit a specific comment thread on your site. WordPress blog.
You can even use the comments section for your visitors to submit reviews or testimonials. Having searchable reviews can help increase sales on your online store because people will be more likely to find the exact product they’re looking for.
That being said, let’s see how you can fix these issues 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 to use the SearchWP connect.
SearchWP is the best custom search plugin for WordPress, used by over 30,000 websites. It’s easy to use and lets you enhance 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 comments searchable, you 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 to customize this engine.
We will show you how to change the default engine in this guide, so you can go ahead and click the “Close” button to exit the pop-up window.
You will now be taken to SearchWP » Settings page automatically.
On this screen, click on the ‘License’ tab. You can now paste your key into the “License” box.
You can find this information in the email you received when you purchased SearchWP and in your account on the SearchWP website.
Once you have pasted the license key, click on the “Activate” button next to it.
Then, just click on the “Engines” tab to be able to customize everything the plugin will show in search results.
Here you will see that, by default, posts are searchable and are divided into title, content, slug, and excerpt.
To enable comments to be viewable on your site, you must click on the “Sources and Settings” button near the top right of the screen.
A pop-up window will appear in the middle of your screen. Under the “Sources” heading, you’ll see all the different types of content that SearchWP is able to find.
By default, the plugin searches for posts, pages, and media on your site.
Go ahead and check the “Comments” box. You can then click “Done”.
This includes all comments in search results on your site.
You can further customize the way your blog comments are searched by scrolling down the ‘Engines’ tab. You will see a new section where you can configure how your comments will be searched.
To get started, click the “Add/Remove Attributes” button.
On this screen, you’ll see sections for the different parts of the comments that SearchWP includes in its search results, such as the author’s name, email, and the text of the comment itself.
SearchWP can search for the name and email address of the comment author, as well as the content of the comment itself.
In the following image, we tell SearchWP to look at the content of the comment by checking the “Comment” box, along with the name and email address of the person who posted it.
After making your selection, click the ‘Done’ button.
Whatever options you checked will now appear in the “Comments” section of the “Engines” tab.
For each, SearchWP has an “applicable attribute relevance” scale. This is the weight that SearchWP will give to each attribute when looking for comments on your blog.
Content that matches an attribute with high relevance will appear higher in search results. In contrast, content that matches a less relevant attribute will appear lower in the user’s search results.
By default, all attribute sliders are set to “low”, but you can change this by simply dragging the slider to the right.
Every site is unique, so you can experiment with different relevance settings to see what gives you the most accurate and useful search results.
If you later decide to remove an attribute from your search, you can simply repeat the steps above, but uncheck the box next to it.
Once you are happy with the search function setup, you can go ahead and click on the “Save Engines” button.
After a few moments, SearchWP will display an “Index needs to be rebuilt” message.
If you receive this message, go ahead and click the “Rebuild Index” button. This will add all of your site’s comments to the search index, so they appear in relevant results.
Once you’ve done this, SearchWP will look at your WordPress site’s comments when creating its search results.
How to change SearchWP settings
Now that your blog comments are searchable, you can enable some advanced settings that will make it easier for visitors to find what they’re looking for.
To view these advanced search parameters, click on the “Advanced” tab.
On this screen, you can modify many behaviors of the plug-in, such as adjustments for spelling mistakes.
For example, if someone misspells their search term, then SearchWP may display a “Did you mean?” correction box with results similar to what the search query should have been.
The following image shows an example of what this might look like on your website.
To use this feature in your searches, go ahead and check the “Do you mean?” correction box.
You’ll also need to check the “Partial matches (fuzzy if necessary)” box, because the “Do you mean?” feature uses partial matches.
For more tips on advanced SearchWP 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 might also want to see our pick of the best live chat software for small businesses and the ultimate guide to creating a WordPress membership site.