{"id":2633,"date":"2021-04-08T14:34:55","date_gmt":"2021-04-08T14:34:55","guid":{"rendered":"https:\/\/rengga.dev\/blog\/?p=2633"},"modified":"2023-02-28T04:58:11","modified_gmt":"2023-02-28T04:58:11","slug":"how-to-make-blog-post-comments-searchable-in-wordpress","status":"publish","type":"post","link":"https:\/\/rengga.dev\/blog\/how-to-make-blog-post-comments-searchable-in-wordpress\/","title":{"rendered":"How to Make Blog Post Comments Searchable in WordPress"},"content":{"rendered":"<p>Do you want to make blog post comments show up in WordPress search results?<\/p>\n<p>By default, WordPress search doesn\u2019t include comments. This can make it difficult for your visitors to find interesting conversations and engage with other users.<\/p>\n<p>In this article, we will show you how you can make blog comments searchable on your WordPress website.<\/p>\n<h4><strong>Why Make Blog Post Comments Searchable in WordPress?<\/strong><\/h4>\n<p>A lively and interesting comment section can keep people on your\u00a0WordPress website\u00a0longer and create a sense of community around your site.<\/p>\n<p>Because of that, comments are valuable content, and you\u2019ll want to do everything you can to\u00a0get more comments on your WordPress blog posts.<\/p>\n<p>However, since WordPress doesn\u2019t 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\u00a0WordPress blog.<\/p>\n<p>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\u00a0online store, since people will be more likely to find the exact product they\u2019re searching for.<\/p>\n<p>That being said, let\u2019s see how you can fix these problems by making blog post comments searchable in WordPress.<\/p>\n<h4><strong>How to Make Blog Post Comments Searchable in WordPress<\/strong><\/h4>\n<p>The easiest way to make blog post comments searchable in WordPress is by using the\u00a0SearchWP\u00a0plugin.<\/p>\n<p>SearchWP is the\u00a0best custom search plugin\u00a0for WordPress, used by over 30,000 websites. It\u2019s easy to use and lets you\u00a0improve the built-in WordPress search.<\/p>\n<p>You can also easily configure the plugin\u00a0to include custom post types in WordPress search results, as well as\u00a0registered users.<\/p>\n<p>To make your blog post comments searchable, you\u2019ll need to install and activate SearchWP. If you need more details, please see our guide on\u00a0how to install a WordPress plugin.<\/p>\n<p>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.<\/p>\n<p>We\u2019ll show you how to change the default engine in this guide, so you can go ahead and click on the \u2018Close\u2019 button to exit the popup.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-135328 lazyloaded\" title=\"SearchWP's welcome popup\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-welcome-popup.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-welcome-popup.png 680w, https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-welcome-popup-300x162.png 300w\" alt=\"SearchWP's welcome popup\" width=\"680\" height=\"367\" data-ll-status=\"loaded\" \/><\/figure>\n<p>You will now be taken to the\u00a0<strong>SearchWP \u00bb Settings<\/strong>\u00a0page automatically.<\/p>\n<p>On this screen, click on the \u2018License\u2019 tab. You can now paste your key into the \u2018License\u2019 box.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-124416 lazyloaded\" title=\"The SearchWP advanced search WordPress plugin\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2022\/05\/searchwp-license-key.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2022\/05\/searchwp-license-key.png 680w, https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/05\/searchwp-license-key-300x112.png 300w\" alt=\"The SearchWP advanced search WordPress plugin\" width=\"680\" height=\"253\" data-ll-status=\"loaded\" \/><\/figure>\n<p>You\u2019ll find this information in the email you got when you purchased SearchWP and in your account on the\u00a0SearchWP site.<\/p>\n<p>Once you\u2019ve pasted the license key, click on the \u2018Activate\u2019 button next to it.<\/p>\n<p>Next, just click on the \u2018Engines\u2019 tab so that you can customize everything that the plugin will display in search results.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-135330 lazyloaded\" title=\"The SearchWP Engines tab\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-engines-tab.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-engines-tab.png 680w, https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-engines-tab-300x128.png 300w\" alt=\"The SearchWP Engines tab\" width=\"680\" height=\"290\" data-ll-status=\"loaded\" \/><\/figure>\n<p>You will see here that by default, posts are searchable and are broken into title, content,\u00a0slug, and\u00a0excerpt.<\/p>\n<p>To allow comments to be searchable on your site, you want to click on the \u2018Sources &amp; Settings\u2019 button near the top-right part of the screen.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-125107 lazyloaded\" title=\"Configuring the SearchWP search plugin\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/05\/source-settings-searchwp.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/05\/source-settings-searchwp.png 680w, https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2022\/05\/source-settings-searchwp-300x161.png 300w\" alt=\"Configuring the SearchWP search plugin\" width=\"680\" height=\"366\" data-ll-status=\"loaded\" \/><\/figure>\n<p>A popup will appear in the middle of your screen. Under the \u2018Sources\u2019 heading, you\u2019ll see all the different types of content that SearchWP is capable of searching.<\/p>\n<p>By default, the plugin searches your site\u2019s posts, pages, and media.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134866 lazyloaded\" title=\"How to make your WordPress blog comments searchable\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-searchable-comments.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-searchable-comments.png 680w, https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-searchable-comments-300x168.png 300w\" alt=\"How to make your WordPress blog comments searchable\" width=\"680\" height=\"380\" data-ll-status=\"loaded\" \/><\/figure>\n<p>Go ahead and check the \u2018Comments\u2019 box. You can then click on \u2018Done.\u2019<\/p>\n<p>This includes all comments in the search results on your site.<\/p>\n<p>You can further customize how your blog comments are searched by scrolling to the bottom of the \u2018Engines\u2019 tab. You\u2019ll see a new section where you can configure how your comments will be searched.<\/p>\n<p>To get started, click on the \u2018Add\/Remove Attributes\u2019 button.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134867 lazyloaded\" title=\"Configuring your searchable WordPress comments\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-add-attributes.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-add-attributes.png 680w, https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchwp-add-attributes-300x120.png 300w\" alt=\"Configuring your searchable WordPress comments\" width=\"680\" height=\"271\" data-ll-status=\"loaded\" \/><\/figure>\n<p>On this screen, you\u2019ll 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.<\/p>\n<p>SearchWP can search the comment\u2019s author name and\u00a0email address, plus the content of the comment itself.<\/p>\n<p>In the following image, we\u2019re telling SearchWP to look at the comment\u2019s content by checking the \u2018Comment\u2019 box, as well as the name and email address of the person who posted it.<\/p>\n<p>After making your selection, click on the \u2018Done\u2019 button.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134868 lazyloaded\" title=\"Searching your WordPress comments\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchable-comments-content.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchable-comments-content.png 680w, https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchable-comments-content-300x159.png 300w\" alt=\"Searching your WordPress comments\" width=\"680\" height=\"361\" data-ll-status=\"loaded\" \/><\/figure>\n<p>Whatever options you checked will now appear under the \u2018Comments\u2019 section of the \u2018Engines\u2019 tab.<\/p>\n<p>For each one, SearchWP has an \u2018Applicable Attribute Relevance\u2019 scale. This is the weight that SearchWP will give to each attribute when searching the comments on your blog.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134869 lazyloaded\" title=\"Configuring your searchable WordPress comments\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchable-comments-relevancy-.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchable-comments-relevancy-.png 680w, https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2022\/07\/searchable-comments-relevancy--300x134.png 300w\" alt=\"Configuring your searchable WordPress comments\" width=\"680\" height=\"304\" data-ll-status=\"loaded\" \/><\/figure>\n<p>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\u2019s search results.<\/p>\n<p>By default, all the attribute sliders are set to \u2018low,\u2019 but you can change that by simply dragging the slider to the right.<\/p>\n<p>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.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134870 lazyloaded\" title=\"Changing the SearchWP relevancy settings\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/maximum-relevance-settings.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/maximum-relevance-settings.png 680w, https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/maximum-relevance-settings-300x134.png 300w\" alt=\"Changing the SearchWP relevancy settings\" width=\"680\" height=\"304\" data-ll-status=\"loaded\" \/><\/figure>\n<p>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.<\/p>\n<p>Once you\u2019re happy with how the search feature is set up, you can go ahead and click on the \u2018Save Engines\u2019 button.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-124424 lazyloaded\" title=\"Saving your WordPress custom search settings\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/05\/searchwp-save-engines-.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/05\/searchwp-save-engines-.png 680w, https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2022\/05\/searchwp-save-engines--300x108.png 300w\" alt=\"Saving your WordPress custom search settings\" width=\"680\" height=\"244\" data-ll-status=\"loaded\" \/><\/figure>\n<p>After a few moments, SearchWP will show a message \u2018The index needs to be rebuilt.\u2019<\/p>\n<p>If you do get this message, then go ahead and click on the \u2018Rebuild Index\u2019 button. This will add all of your site\u2019s comments to the search index, so they appear in relevant results.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-129349 lazyloaded\" title=\"Rebuilding the SearchWP search index\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2022\/06\/searchwp-rebuild-index.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2022\/06\/searchwp-rebuild-index.png 680w, https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/06\/searchwp-rebuild-index-300x144.png 300w\" alt=\"Rebuilding the SearchWP search index\" width=\"680\" height=\"327\" data-ll-status=\"loaded\" \/><\/figure>\n<p>Once you\u2019ve done that, SearchWP will look at your WordPress site\u2019s comments when creating its search results.<\/p>\n<p><strong>How to Change SearchWP Settings<\/strong><\/p>\n<p>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\u2019re looking for.<\/p>\n<p>To take a look at these advanced search settings, click on the \u2018Advanced\u2019 tab.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-125119 lazyloaded\" title=\"SearchWP's advanced search settings\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/05\/searchwp-advanced-settings.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/05\/searchwp-advanced-settings.png 680w, https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2022\/05\/searchwp-advanced-settings-300x143.png 300w\" alt=\"SearchWP's advanced search settings\" width=\"680\" height=\"324\" data-ll-status=\"loaded\" \/><\/figure>\n<p>On this screen, you can change a lot of the plugin\u2019s behavior such as making adjustments for misspellings.<\/p>\n<p>For example, if someone makes a spelling mistake when typing in their search term, then SearchWP can show a \u2018Did you mean?\u2019 correction box with results that are similar to what the search query should have been.<\/p>\n<p>The following image shows an example of how this might look on your website.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134880 lazyloaded\" title=\"The SearchWP 'did you mean' feature\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2022\/07\/did-you-mean.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2022\/07\/did-you-mean.png 680w, https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2022\/07\/did-you-mean-300x159.png 300w\" alt=\"The SearchWP 'did you mean' feature\" width=\"680\" height=\"361\" data-ll-status=\"loaded\" \/><\/figure>\n<p>To use this feature in your searches, go ahead and check the \u2018Automatic \u201cDid you mean?\u201d corrections\u2019 box.<\/p>\n<p>You\u2019ll also need to check the \u2018Partial matches (fuzzy when necessary)\u2019 box, since the \u2018Did You Mean?\u2019 feature uses partial matches.<\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-134881 lazyloaded\" title=\"Enabling fuzzy search in SearchWP\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/partial-fuzzy-automatic.png\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" srcset=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2022\/07\/partial-fuzzy-automatic.png 680w, https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2022\/07\/partial-fuzzy-automatic-300x167.png 300w\" alt=\"Enabling fuzzy search in SearchWP\" width=\"680\" height=\"378\" data-ll-status=\"loaded\" \/><\/figure>\n<p>For more tips on SearchWP\u2019s advanced settings, please see our step-by-step guide on\u00a0how to improve WordPress search with SearchWP.<\/p>\n<p>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\u00a0best live chat software for small businesses\u00a0and the\u00a0ultimate guide to creating a WordPress membership site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you want to make blog post comments show up in WordPress <a class=\"read-more\" href=\"https:\/\/rengga.dev\/blog\/how-to-make-blog-post-comments-searchable-in-wordpress\/\" title=\"How to Make Blog Post Comments Searchable in WordPress\" itemprop=\"url\"><\/a><\/p>\n","protected":false},"author":1,"featured_media":3823,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[119,127,114,120],"newstopic":[],"class_list":{"0":"post-2633","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-wordpress","8":"tag-design-tips","9":"tag-post-comments-searchable","10":"tag-web-design-trends","11":"tag-web-designers"},"_links":{"self":[{"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/posts\/2633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/comments?post=2633"}],"version-history":[{"count":1,"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/posts\/2633\/revisions"}],"predecessor-version":[{"id":2635,"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/posts\/2633\/revisions\/2635"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/media\/3823"}],"wp:attachment":[{"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/media?parent=2633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/categories?post=2633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/tags?post=2633"},{"taxonomy":"newstopic","embeddable":true,"href":"https:\/\/rengga.dev\/blog\/wp-json\/wp\/v2\/newstopic?post=2633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}