EDITS.WS

Tag: wordpress search

  • 12 WordPress Search Plugins to Improve Your Site Search (2023)

    Are you looking for the best WordPress search plugin to improve your site search?

    The default WordPress search feature is quite limited and ignores a lot of the content on your website. Thankfully, there are several WordPress plugins that can help you improve the default search experience.

    In this article, we will highlight the best WordPress search plugins to improve your site search.

    WordPress Search Plugins to Improve Your Site Search

    Why Use a WordPress Search Plugin?

    WordPress comes with a built-in search feature that can help visitors easily find what they are looking for.

    An example of a search bar on the WPBeginner website

    However, it is quite basic and doesn’t search all your site’s content, including comments, files, and products.

    The good news is that there are several search plugins that can help you improve the built-in WordPress search feature. Some of these plugins are built for specific purposes, like searching WooCommerce products, while others improve the search experience across your entire WordPress blog or website.

    That being said, let’s take a look at some of the best WordPress search plugins. Simply use the quick links below to jump straight to the plugin you want to learn more about:

    1. SearchWP

    The SearchWP WordPress search plugin

    SearchWP is one of the best search plugins for WordPress. It is very easy to use and provides much more accurate search results compared to the built-in WordPress search.

    SearchWP can search content that WordPress ignores by default, including custom post types, WooCommerce products, comments, PDFs, and more.

    The SearchWP search plugin

    You can create a completely custom search algorithm, similar to the algorithms used by search engines such as Google. This allows you to assign a weight (importance) to each attribute.

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

    For example, if you have uploaded your menu as a PDF on your restaurant website, then this is important content, and you will typically want to show it high in the search results.

    With that in mind, you can simply assign this content a higher attribute relevance so that matches appear high in the search results.

    Creating a custom search algorithm in WordPress using SearchWP

    SearchWP also integrates with WooCommerce, so you can make a smart WooCommerce product search and even customize the product search results page.

    You can even include product attributes, tags, reviews, and custom fields and taxonomies in the WooCommerce search results.

    In the following image, we have added ‘color’ and ‘size’ as searchable custom fields and added product tags and categories in the taxonomies field.

    Searching additional content types on your WordPress website

    After creating a custom search algorithm, you can then create an unlimited number of custom search forms.

    For example, if you sell digital downloads like eBooks, then you might make a search form that searches content with the ‘ebook’ tag. In this way, you can help shoppers find new books that they may want to buy.

    For step-by-step instructions on how to set up this plugin, please see our guide on how to improve WordPress search with SearchWP.

    Pros:

    • Automatically integrates with the built-in WordPress search.
    • Looks great with any WordPress theme.
    • Built-in search statistics.
    • Integrates with many popular WordPress plugins, including WooCommerce, Easy Digital Downloads, and bbPress.

    Cons:

    • Doesn’t include live Ajax search. However, you can add this missing feature by installing the free SearchWP Live Ajax Search plugin.
    • No free plugin, so you’ll need to purchase a license to try SearchWP.

    Why we chose SearchWP: SearchWP is a complete search toolkit that integrates perfectly with the native WordPress search. Simply create a search algorithm, and all the search fields and forms across your website will use SearchWP automatically.

    Pricing: Licenses start from $199 per year.

    2. ElasticPress

    The ElasticPress WordPress search plugin

    ElasticPress is a hosted WordPress search service built on ElasticSearch.

    Instead of running on your WordPress site, it runs the search queries in the cloud and shows results at lightning speed. It is extremely easy to integrate on any WordPress site and works with all the best WordPress hosting providers.

    ElasticPress can search content that the default WordPress search ignores, including custom fields, tags, PDF files, Microsoft Office documents, metadata, and more.

    ElasticPress has built-in live Ajax search, so you can show instant results as the user is typing. It also works well with WooCommerce, so shoppers can quickly find products they are interested in buying.

    You can create your own search algorithm using the Weighting dashboard and can even customize the top search terms to display your most popular WooCommerce products or top-performing content first.

    Pros:

    • Built-in autosuggest.
    • An advanced connector that can handle almost any search query.
    • Shows related posts and document content in the search results.
    • A hosted service, so ElasticPress won’t slow down your WordPress website.

    Cons:

    • ElasticPress is a hosted service and is a lot more expensive than any other search solution on this list. This means it may not be the best choice for beginners, personal blogs, or anyone who is working with a smaller budget.

    Why we chose ElasticPress: By offloading search to an external server, you can improve your WordPress search without slowing down your website. This may not be the cheapest search plugin on our list, but it’s a great choice for business websites or enterprise sites that need lightning-fast search.

    Pricing: Licenses start at $79 per month.

    The Ivory Search WordPress plugin

    Ivory Search is another excellent WordPress search plugin that replaces the default WordPress search.

    To improve search results, Ivory Search looks at post types, image metadata, custom fields, shortcodes, attachments, and more.

    An example of a WordPress search plugin

    You can also use Ajax to show live search results without reloading the page.

    The plugin also integrates with the WordPress theme customizer, so you can change how the search form looks using the tools you are already familiar with.

    How to improve the WordPress search

    With Ivory Search, you can create an unlimited number of forms with unique settings.

    You can then add these forms to different areas of your site using a shortcode that the plugin creates automatically.

    You can also add an advanced search form to any widget-ready area, such as the sidebar, using the Ivory Search block. This makes it easy to show the same form across your entire WordPress website.

    Another option is to add the search bar to any navigation menu. In the Ivory Search settings, you can simply enable the toggle for the menu where you want to show the search field.

    Adding a search bar to any WordPress navigation menu

    Studying the way that people use your website’s search can also help you learn more about your users. This includes finding any content gaps where visitors are searching for content that you don’t already have on your website.

    To provide this data, Ivory Search integrates with Google Analytics. However, before you can use this feature, you will need to install Google Analytics in WordPress.

    Ivory works with the best WordPress translation plugins, so it’s a good choice if you want to add multilingual search in WordPress.

    Pros:

    • Live Ajax search.
    • Easily change search form colors and messaging using the WordPress Customizer.
    • Add an advanced search field to any WordPress menu with the click of a button.
    • Supports multilingual search.
    • Integrates with popular plugins, including WooCommerce, Weglot, Polylang, and WPML.

    Cons:

    • Ivory Search’s interface can be overwhelming and confusing to navigate, particularly for first-time users.

    Why we chose Ivory Search: Although there’s a premium version, the free version is where Ivory Search really shines. If you are looking for a free WordPress search plugin that has everything you need to improve the default search, then the free download is a great option.

    Pricing: The base plugin is free, while Ivory Search premium starts at $19.99 per year.

    The Advanced Woo Search WordPress plugin

    The free Advanced Woo Search plugin can look for matches in the product title, content, excerpt, categories, tags, ID, and SKU.

    This can help shoppers find what they are looking for, including products they may not have found using the built-in WordPress search.

    The Advanced Woo Search WordPress plugin

    Advanced Woo Search has a straightforward settings page where you can toggle the different settings on and off, often with the click of a button. This makes the plugin very easy to set up and use.

    Advanced Woo Search also shows some useful extra information inside the search results, including the product image and price. It also integrates the results into your current layout, so it will look great with any WordPress theme.

    Once you have set up the plugin, it will synchronize the product data automatically. This means you won’t need to spend time manually re-indexing every time you update the product catalog. You can also add the search form to any page, post, or widget-ready area using a shortcode or widget.

    Pros:

    • Supports stop words, synonyms, and plurals.
    • Supports multiple currencies and variable products.
    • Orders search results based on where they were found.
    • Easy-to-understand settings.

    Cons:

    • The free plugin is missing some of the more advanced search features, including the ability to search product attributes and custom taxonomies.

    Why we chose Advanced Woo Search: If you are looking to improve the default WooCommerce search but don’t have the budget for a premium plugin, then this is a great option. It also supports live Ajax search out of the box, so shoppers can see relevant results without waiting for the page to reload.

    Pricing: You can download Advanced Woo Search for free from the official WordPress repository.

    5. SearchWP Ajax Live

    The SearchWP Ajax live WordPress plugin

    SearchWP Ajax Live is an addon plugin for SearchWP, but it works with any WordPress search form that uses the built-in WordPress template tags.

    This addon enhances your existing WordPress search with live Ajax search results that show up as soon as the user starts typing. This provides a better user experience and can return accurate results without even reloading the page.

    An example of live Ajax search on a WooCommerce store

    Live Ajax search can improve the search experience for all visitors, but it’s particularly useful if you are selling online courses, membership subscriptions, and other digital products. By helping visitors find relevant content faster, you can often get more sales.

    After activating the plugin, every search bar on your site will use live Ajax search automatically. You can also add a live Ajax search bar to any page, post, or widget-ready area using a block provided by the plugin.

    Adding live search to a widget-ready area

    If you are using a block-based theme such as ThemeIsle Hestia Pro, then you can add live Ajax search to any part of your WordPress theme.

    This includes areas you can’t edit using the standard WordPress content editor, like your site’s 404 page template.

    Pros:

    • Works out of the box with minimal settings to configure.
    • Adds live Ajax search to your WordPress blog, website, or online store, similar to the live search feature used by search engines like Google.
    • Works perfectly with the default WordPress search or the SearchWP plugin.

    Cons:

    • This plugin works out of the box with very few settings. While this makes the plugin easy to set up, it may feel limiting if you want more advanced customization options.

    Why we chose SearchWP Ajax Lite: Live search can help visitors find what they are looking for, fast. This free plugin works out of the box and automatically adds live Ajax search to all your search fields without you having to configure any complicated settings.

    Pricing: Free to download from the official WordPress repository.

    Adding advanced search to a WooCommerce store

    YITH WooCommerce Ajax Search is a great WooCommerce product search plugin that helps customers quickly find products in your store.

    It allows customers to search products by SKU, search within specific categories, and filter the results without reloading the page.

    Advanced WooCommerce search on an online store

    This plugin can also search content that WordPress ignores by default, including the product excerpt, product categories and tags, and variable products.

    YITH WooCommerce Ajax search is highly customizable. You can include thumbnails, badges, prices, and promotions in the live search results. This can provide shoppers with useful information, which will help them decide which product pages they want to visit.

    Both the free and premium versions of the plugin also allow you to customize how the search bar looks to better suit your online store.

    An example of a WordPress search plugin

    The plugin works with WooCommerce stores in any language and is fully compatible with multilingual WordPress sites and stores.

    Pros:

    • Shows results in real time.
    • Filter the results using categories and tags.
    • Search by SKU, which is perfect for stores with big product catalogs.
    • Highlight sales and promotions inside the search results.

    Cons:

    • Although there is a free version of the plugin, it’s quite limited compared to other live Ajax plugins. For example, the free version doesn’t look for matches within product tags and categories.

    Why we chose YITH WooCommerce Ajax Search: If you run a WooCommerce store, then live search can help customers find interesting products faster. With that being said, a live Ajax search plugin is a must-have, and this plugin integrates perfectly with WooCommerce. It’s also fully compatible with multilingual websites, which is perfect if you sell to an international audience.

    Pricing: Starting from $79.99 per year.

    7. FiboSearch

    The FiboSearch WordPress plugin

    FiboSearch is another excellent WooCommerce search plugin. It allows you to instantly fetch search results using Ajax without reloading the page.

    FiboSearch can search for matches in the product description, short description, SKU, attributes, custom fields, product categories and tags, and more.

    The FiboSearch WooCommerce search plugin

    You can also exclude out-of-stock products from the search results. This can get you more sales since you are not distracting shoppers with products they can’t currently purchase.

    You can also show more content as part of the live Ajax search. For example, you might add the product image, description, and pricing to provide shoppers with detailed product information without them even having to reload the page.

    An example of live Ajax search on an online store

    When the visitor hovers over an item in the live Ajax search, you can show an add to cart button along with a quantity field and extended product description. In this way, visitors can start the purchasing process without even visiting the product’s page.

    The live Ajax search bar is also fully customizable, so you can add your own messaging, change the submit button, and choose different search bar layouts.

    As you make changes, the plugin will show a preview of how the search bar will look on your online marketplace or store. In this way, you can easily try different settings to see what looks the best.

    Improving your WordPress search using a plugin

    When you are happy with how the search bar is set up, you can add it to any page, post, or widget-ready area using either a shortcode or block.

    Another option is adding the search bar to any menu in your WordPress theme. Simply go to Appearance » Menus and then add the new ‘FiboSearch bar’ item to any navigation menu.

    Adding FiboSearch to a navigation menu

    Pros:

    • Integrates with the default WooCommerce search results page. This means that shoppers will see exactly the same results in both the live Ajax search and the standard search results page.
    • Support for many popular multilingual plugins, including WPML, Polylang, and qTranslate-XT.
    • Support for Google Analytics.
    • Advanced search settings, including synonyms and fuzzy search.

    Cons:

    • Even if you upgrade to pro, FiboSearch doesn’t offer live chat or telephone support.

    Why we chose FiboSearch: This plugin allows you to show detailed information in the live Ajax search results and even include an ‘Add to Cart’ button. In this way, you can show helpful, informative results to shoppers without them ever having to reload the page.

    Pricing: The base plugin is free. The premium version starts at $49 per year.

    8. Husky Products Filter for WooCommerce

    The Husky Products Filter for WooCommerce WordPress search plugin

    Husky Products Filter for WooCommerce is a very useful search plugin designed exclusively for WooCommerce stores.

    It allows your customers to filter products by category, attributes, tags, taxonomies, meta fields, and price.

    Adding an advanced product search to WooCommerce

    Husky’s filters generate SEO-friendly links that you can add to your sitemap file. In this way, Husky can help improve your WooCommerce SEO.

    The Husky search form is fully customizable, so you can display the different options as radio buttons, checkboxes, multi-dropdown menus, and more.

    You can add search and filtering options to any page, post, or widget-ready area using a shortcode that the plugin creates automatically. Even better, Husky supports live Ajax search, so you can show live results anywhere on your online store.

    Husky is easy for beginners to set up but also offers tons of customization options for developers who want to use the plugin in custom product templates. For example, you can create a custom woo-products loop template and html-items for the search form.

    Pros:

    • Advanced WooCommerce search.
    • Built-in live Ajax support.
    • See the products your customers are looking for with built-in search statistics.
    • Support for infinite scrolling.
    • The option for more advanced users to create custom layout templates. 

    Cons:

    • Although the plugin offers live Ajax search, according to the WordPress.org listing, this feature isn’t guaranteed to work with all WordPress themes.

    Why we chose Husky Products Filter for WooCommerce: This plugin allows you to replace the limited built-in WooCommerce search, no matter what your budget is. Although the live Ajax search isn’t guaranteed to work with all WooCommerce themes, this is still a generous feature to include in a free plugin.

    Pricing: Free.

    9. Relevanssi

    The Relevanssi WordPress search plugin

    Relevanssi is another popular WordPress search plugin that improves WordPress search by fetching more relevant results.

    Relevanssi adds PDF indexing and searching in WordPress, so visitors can search the contents of your site’s PDF files. Relevanssi can also search shortcode outputs, custom fields, user profiles, categories and tags, WooCommerce products, and more.

    An example of a WordPress search plugin

    Relavanssi also supports fuzzy matching and exact matches and can highlight the search terms in the results page.

    All of this can help visitors find what they are looking for, faster.

    Enabling fuzzy search in WordPress

    Pros:

    Cons:

    • Relevanssi has compatibility issues with some page builder plugins, BuddyPress, NextGen Gallery, and a few more. If you do run into problems, then you can see our step-by-step guide on how to properly ask for WordPress support and get it.
    • Relevanssi may take up lots of database space. With that in mind, it’s not recommended if your WordPress hosting has limited space for database tables.

    Why we chose Relevanssi: Many of the free search plugins on this list are designed for use with online WooCommerce stores. However, Relevanssi is a free plugin that’s a great fit for all kinds of WordPress blogs and websites. If you run a membership website, then Relevanssi also integrates with many of the top membership plugins.

    Pricing: The base plugin is free. You can upgrade to the premium version for $109 per year.

    The WP Extended Search WordPress plugin

    WP Extended Search is a lightweight and simple WordPress search plugin that allows you to easily extend the default WordPress search.

    You can just go to the plugin settings and select the options you want to include in the search results. For example, you can search in the author name, taxonomies, post types, meta data, and more.

    The WP Extended Search settings

    The plugin extends the default WordPress search, so you don’t need to add any shortcodes or widgets. As long as you are using the built-in WordPress search, you simply need to install and activate the plugin, and you are good to go.

    If you want to offer a more advanced search, then you can create multiple custom search forms with unique settings. You can then add these search forms to any part of your site using a widget, shortcode, PHP function, or HTML.

    Adding search forms to your WordPress blog or website

    Pros:

    • Automatically improves the default WordPress search.
    • Create an unlimited number of custom forms.
    • Optionally exclude old content from search results.
    • Show partial matches or exact matches only.
    • Compatible with WooCommerce.

    Cons:

    • Missing some more advanced features, particularly live Ajax search.

    Why we chose WP Extended Search: If you are looking for a quick and easy way to enhance the standard WordPress search, then this plugin works out of the box. Although there are some more advanced settings you can explore, this is a very lightweight plugin that’s easy to set up.

    Pricing: Free.

    The Better Search WordPress plugin

    Better Search is another free WordPress plugin that automatically replaces the default WordPress search.

    This plugin allows you to search across all post types, including custom post types. It will also look for matches in the title, post content, excerpt, meta fields, authors, tags, and comments.

    The Better Search WordPress plugin

    You can also change the weight of either the title or the content based on what better suits your website.

    This plugin has a unique search heatmap feature that shows the most popular searches. You can add this widget to an area, such as the sidebar or footer, to encourage visitors to explore your site’s most popular search terms and content.

    Pros:

    • Automatically integrates with the default WordPress search. If your WordPress theme doesn’t have a built-in search form, then you can add one by using widgets in WordPress.
    • The option to use your own template file or custom CSS.
    •  Works with caching plugins like WP Super Cache and W3 Total Cache
    • Create a list of stop words that Better Search will filter out of search queries.

    Cons:

    • No option to search based on category or product attribute.
    • Doesn’t support live Ajax search.

    Why we chose Better Search: Better Search provides a good range of features for a free plugin, plus some unique functionality. In particular, their heatmap is an innovative way to encourage visitors to explore more search terms and content and may make this a stand-out plugin for some website owners.

    Pricing: Free.

    12. Search Exclude

    The Search Exclude WordPress plugin

    Sometimes, you don’t want to include all your content in the search results. For example, if you are running an online store, then you may want to hide pages like your account page, custom checkout page, thank you page, and more.

    Search Exclude allows you to exclude content that you don’t want to show in the WordPress search results. You can simply check a box to exclude pages, posts, WooCommerce products, and more.

    The Search Exclude WordPress plugin

    Even better, this plugin doesn’t hide your content from search engine crawlers. This means the hidden content will still show up in search engines like Google.

    If you want to hide lots of different pages, posts, and other content, then this plugin also integrates with the bulk edit feature.

    Excluding multiple items from the WordPress search results

    You can go to the plugin’s settings at any point to see all the items that you have excluded from the search.

    Pros:

    • A simple plugin that allows you to exclude content from the search results.
    • Doesn’t affect your WordPress SEO.

    Cons:

    • This plugin simply hides items from the search results. This means you will likely still need to install extra search plugins.

    Why we chose Better Search: This plugin does one task, and does it well. If you are happy with the default WordPress search, but simply want to hide a few pages, then this plugin is the perfect solution.

    Pricing: Free.

    Which Is the Best WordPress Search Plugin?

    We believe that SearchWP is the best WordPress search plugin for most websites. It allows you to search all the content types that the built-in WordPress search ignores by default and makes it easy to create a custom search algorithm.

    After that, you can create an unlimited number of unique search forms and add them to any page, post, or widget-ready area.

    Although the core SearchWP plugin doesn’t offer live Ajax search, you can easily add this feature using the SearchWP Live Ajax Search.

    FAQs About WordPress Search Plugins

    In this guide, we have covered all of the best WordPress search plugins. If you still have questions, then here are our FAQs about improving the built-in WordPress search.

    Does WordPress have a search feature?

    Most WordPress themes have a built-in search feature. However, the default search is typically quite limited and doesn’t provide accurate search results.

    For that reason, we recommend installing an advanced search plugin like SearchWP.

    Is the default WordPress search good enough for my website?

    Although WordPress has a basic built-in search, we don’t recommend relying on it. By default, WordPress doesn’t search widgets, user comments, categories, tags, WooCommerce products, or PDF documents. It also doesn’t search image gallery titles, captions, or alt text.

    When creating the search results page, WordPress will start by displaying any posts that have the search term in the post title, arranged in reverse-chronological order, meaning that the newest entries will be displayed at the top of the results.

    After that, it will show any posts that have the matching term in the post content.

    This may not be a problem for blogs that only have small amounts of content. However, this ordering logic can often show inaccurate or confusing results when you have lots of content.

    For more on this topic, please see our look at how WordPress search works.

    How do I make my WordPress search better?

    The best way to improve the default WordPress search is by using an advanced search plugin like SearchWP. These plugins allow you to search content types that WordPress ignores by default and may even add useful features such as live Ajax search.

    How do I add live search to my WordPress website?

    The best way to add live search to your website is by using SearchWP Live Ajax Search. This free plugin instantly adds live search to all the forms and search bars across your entire WordPress website.

    For more information, please see our guide on how to add live Ajax search.

    How do I make my WordPress website a search engine like Google?

    You can create your own custom search algorithm using SearchWP. This allows you to assign weights to different attributes, such as the post’s title or its tags. In this way, you can control exactly where your content appears in the WordPress search results.

    After that, you can add live search to your site using SearchWP Live Ajax Search. This plugin suggests results as the visitor is typing, just like search engines such as Google.

    For more information, please see our guide on how to improve WordPress search.

    We hope this article helped you find the best WordPress search plugin for your website. You may also want to see our guide on how to create an advanced search form for custom post types and our expert list of the must-have WordPress plugins for small businesses.

    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 12 WordPress Search Plugins to Improve Your Site Search (2023) first appeared on WPBeginner.

  • How Does WordPress Search Work (+ Tips to Make It Better)

    Do you want to learn how WordPress search works, and how you can make it better?

    By understanding and improving the built-in WordPress search, you can help visitors find what they’re looking for. This can get you more conversions while keeping people on your site for longer.

    In this article, we’ll look at how the default WordPress search works, and share tips on how to make it better.

    How does WordPress search work + tips to make It better

    How Does WordPress Search Work?

    WordPress comes with a search system that will look for content within your website.

    How the search bar looks and where it appears will vary depending on your WordPress theme, but most themes show the search bar in the top right corner.

    The built-in WordPress search bar

    Note: If your theme doesn’t show the WordPress search bar by default, then skip ahead to our FAQs, where we’ll show you how to add it.

    Visitors can type a search query into this field, and WordPress will search:

    • Page titles
    • Page content
    • Single-image titles and captions
    • Image alt text
    • File names

    As you can see, it doesn’t search widgets, user comments, categories, tags, WooCommerce products, or PDF documents. It also doesn’t search image gallery titles, captions, or alt text, although you can search this content using a search engine plugin like SearchWP.

    WordPress performs this search using the WP_Query class. It will start by displaying any posts that have the search term in the post title, arranged in reverse-chronological order, meaning that the newest entries will be displayed at the top of the results.

    After that, it’ll show any posts that have the matching term in the post content.

    For example, imagine you’ve just published a post about cats titled ‘My Favorite Pet’, and you also have an older post titled ‘Best Cat Photos.’ In this case, searching for ‘Cat’ will display the older ‘Best Cat Photos’ post first, since it has the search term in the title.

    This may not a problem for WordPress blogs or websites that only have small amounts of content. However, this ordering logic will often show inaccurate or confusing results for bigger blogs, online stores, or business websites.

    The built-in system is also missing some of the features that people expect from modern search engines. This includes autocomplete, live Ajax search, filtering, and spellcheck.

    Why Improve the Default WordPress Search?

    An advanced, fast, and accurate on-site search can help visitors find interesting and relevant content, which will keep them on your website for longer. This can increase pageviews and reduce bounce rate in WordPress.

    Since visitors are spending more time on your site, this will send positive signals to the search engines. This can improve your WordPress SEO, which means search engines like Google will show your content to more people and drive more visitors to your website.

    For more information, please see our guide on how to increase your blog traffic.

    People who are using your site’s internal search are already highly engaged. They’re actively looking for specific content, which may mean they’re ready to take actions such as buying a product, signing up to your WordPress membership site, or booking an appointment.

    If these people can’t find what they’re looking for, they may give up and go to a different website. This means you’re losing out on visitors who were ready to convert.

    A search results page is also an example of personalized content since you’re showing the visitor results that match their unique search query. By providing personalized content that’s accurate and helpful, you can improve the visitor experience. Once again, this can encourage them to convert.

    Performance is another reason why it’s a good idea to replace the default WordPress search with a better alternative.

    The larger your WordPress website gets, the longer it’ll take WP_Query to scan your database and get the results. This means your site’s search will get slower, as your website gets bigger.

    How to Make the WordPress Native Search Better

    On-site search helps visitors find what they’re looking for, including products to buy and interesting blogs to read. Since it’s such an important part of your site, it’s a bad idea to rely on the limited built-in WordPress search.

    With that being said, let’s see how you can improve the native WordPress search.

    Show Instant Results With Live Ajax Search

    Live Ajax search adds a dropdown and autocomplete feature that’s common in search engines like Google.

    As the user types, live search guesses what they want to search for and then shows them results without even reloading the page.

    How to improve WordPress search with live ajax results

    This can help visitors find the right content, without having to manually press the ‘Search’ button or wait for the page to reload.

    The easiest way to add Ajax live search to WordPress is using the free SearchWP Live Ajax Lite Search plugin. It enables instant search automatically and there are no settings for you to configure, so it’s very easy to set up.

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

    Upon activation, the default WordPress search form will automatically use the Ajax live search feature. If you visit your site and start typing into the search bar, then you’ll see the instant search in action.

    Change the Default Search URL Slug

    By default, WordPress search URLs typically look something like this:

    http://example.com/?s=search-term
    

    The extra ?s= characters make this URL more difficult to read and understand, which can confuse visitors who are trying to find their way around your site.

    Even worse, these URLs aren’t optimized for search engines which can stop them from correctly indexing your site’s contents.

    The easiest way to change these URLs is by adding custom code to WordPress using a plugin such as WPCode.

    You can go ahead and use the following custom code to replace the ‘/?s=search-term’ characters with ‘search.’ Your slug will look something like this when finished: http://example.com/search/wordpress

    To use something other than ‘search’ in your URL, simply customize the code snippet below.

    function wpb_change_search_url() {
        if ( is_search() && ! empty( $_GET['s'] ) ) {
            wp_redirect( home_url( "/search/" ) . urlencode( get_query_var( 's' ) ) );
            exit();
        }
    }
    add_action( 'template_redirect', 'wpb_change_search_url' );
    

    For detailed instructions on how to insert this code to your WordPress website, please see our guide on how to change the default search URL slug in WordPress.

    Make PDF Files Searchable in WordPress

    By uploading PDFs to your WordPress website, you can share information about your services and products in a format that works on all devices. They’re also perfect for offering your visitors ebooks, user manuals, menus, and more.

    However, WordPress only searches the contents of its database by default, so it will only look at the title and description of your PDF files, and not their contents. As a result, your visitors may struggle to find the best PDF for their search query.

    The good news is that you can use a custom search plugin to improve the default WordPress search experience. If your PDFs are unencrypted, then the right search plugin will index the contents and metadata of your PDFs and add them to the search results.

    For step-by-step instructions, please see our guide on how to add PDF indexing and searching in WordPress.

    Add a Search By Category Feature to WordPress

    If you have multiple categories of content on your website, then you might want to let users restrict their search to a specific category. This can help visitors find the right content, faster.

    An example of search by category on a WordPress website

    For example, if you have an online store then it often makes sense to let customers search within a particular product category.

    If you run a membership site, then you might use search by category to help visitors find other members, groups, forums, online courses, and other specific kinds of content. For more information, please see our guide on how to add search by category in WordPress.

    Make a Smart WooCommerce Product Search

    WooCommerce has its own built-in search, but it doesn’t look for matches in product attributes, reviews, or product descriptions. This omission can stop shoppers from finding products they want to buy on your online store, so you get fewer sales.

    The built-in WooCommerce search feature

    Luckily, there are some excellent WooCommerce plugins that can show more helpful search results, and fetch them faster. To learn more, please see our guide on how to make a smart WooCommerce product search.

    To get even more sales, you may want to fine-tune the kind of products WooCommerce includes in its search results. For example, you might only show products that are on sale or come with free shipping.

    To learn more, please see our guide on how to customize WooCommerce product search results page.

    Create a Search Form for Custom Post Types

    Custom post types allow you to go beyond posts and pages and create different content types for your website. Custom post types can have different custom fields and their own custom category structure.

    For example, if you run a movie review website, then you would probably want to create a ‘movie reviews’ post type that has fields for the director, release date, and more.

    At WPBeginner, we use custom post types for our Glossary section to keep it separate from our blog posts.

    How to improve your WordPress search with searchable categories

    If you use custom post types, then you may want to create a form that allows visitors to search only that content.

    For example, we also have a form that only searches WPBeginner’s coupon codes.

    Searching coupons and deals on the WPBeginner website

    This can help visitors find the right content faster, even when you have lots of different content types. For step-by-step instructions, check out our guide on how to create advanced search forms in WordPress for custom post types.

    You can also make custom fields searchable in WordPress, which is ideal if you’ve added extra metadata to your pages and posts.

    Exclude Content From WordPress search

    By default, the built-in WordPress search will include all posts and pages in its search results.

    However, you may want to exclude certain pages and posts from the search results. For example, if you’re running a WordPress membership website or selling online courses, then you’ll typically want to exclude your premium content from public search results.

    If you’re running an online store, then you may want to hide content like your account page, checkout page, and thank you page. To help you out, we’ve created a guide on how to exclude pages from the WordPress search results.

    Do you want to exclude posts, authors, custom post types, categories, tags, or even custom taxonomies? Then you can take a look at our guide on how to exclude specific pages, authors, and more from WordPress search.

    WordPress Search FAQs

    In this guide, we’ve explored how the default WordPress search works and shared lots of tips on how to improve it.

    However, you may still have some questions about this important feature. That said, here are some of the most frequently asked questions about WordPress search.

    How Do I Improve WordPress Search?

    The best way to improve the built-in WordPress search is by using SearchWP.

    SearchWP is the best custom search plugin for WordPress and allows visitors to search any content on your site including documents, WooCommerce products, custom fields, tags, comments, and more.

    It also lets you customize the WordPress search algorithm, so you can control exactly where the content appears in the search results.

    For more information, please see our guide on how to improve WordPress search.

    Does WordPress Search Include Tags?

    By default, WordPress search doesn’t include tags. The easiest way to make tags searchable is by using a custom search plugin like SearchWP.

    SearchWP also has a relevancy slider, so you can control exactly how much tags influence where an item appears in the search results.

    How Do I Add Search to My WordPress Theme?

    If your theme doesn’t have a built-in search form, then we recommend adding a search bar to the WordPress navigation menu.

    Since the main navigation menu typically appears across your entire site, visitors will be able to search for pages, posts, products, and more, from any page of your website.

    An example of a search bar, in a navigation menu

    If you’re using a block-based theme such as ThemeIsle’s Hestia Pro or Twenty Twenty-Three, then you can add a search bar to your theme using the full-site editor (FSE).

    To do this, go to Appearance » Editor in the WordPress dashboard.

    Opening the WordPress full site editor (FSE)

    By default, the editor will show your theme’s home template. If you want to add the search bar to a different template, then click on the small arrow icon in the toolbar.

    Then, select ‘Browse all templates.’

    How to browse all FSE templates in WordPress

    You’ll now see all the templates that make up your WordPress theme. Simply find the template where you want to add the search bar, and then click on its title.

    For example, if you wanted to add a search form in your WordPress posts then you’d select the ‘Single’ template.

    How to add the search bar to a single template in WordPress

    You will now see this template in the full-site editor.

    To go ahead and add a search bar, click on the blue ‘+’ icon.

    Adding widgets to a single template in WordPress

    In the popup that appears, type in ‘Search’ to find the right block.

    You can then drag the block to the location where you want to show the search bar.

    Adding a search block to a block-enabled theme template

    To customize the block title or placeholder text, simply type it into the search block where it says ‘search’ or ‘optional placeholder.’

    When you’re happy with how the block looks, click on ‘Save’ to make the search bar live.

    Publishing a block-enabled template with a search bar

    How Do I Add Search to a WordPress Page or Post?

    You can add a search bar to a specific page or post using the built-in Search block.

    This is a good choice if you want to control exactly where the search bar appears on every page and post, or you only need to offer search on specific areas of your website.

    How to improve the default WordPress search

    To get started, simply open the page where you want to add a search form and then click on the + icon.

    In the popup that appears, type ‘Search’ to find the right block. Once you click on the Search block, it will add the block to your page.

    Adding the Search block to a WordPress page or post

    By default, the block uses ‘Search’ for both its label and the button text.

    This will be visible to visitors, so you may want to replace it with something more descriptive by typing into the text fields.

    Customizing the WordPress search block

    You can also add some placeholder text to the search bar. This text will disappear automatically when the visitor starts typing.

    To add a placeholder, simply click on ‘Optional placeholder…’ and then start typing.

    How to improve the WordPress search

    When you’re happy with how the Search block looks, you can go ahead and either publish or update the post.

    We hope this tutorial helped you learn how WordPress search works, and how to make it better. You may also want to learn how to make money online blogging with WordPress, or check out our list of the best email marketing services for small businesses.

    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 Does WordPress Search Work (+ Tips to Make It Better) first appeared on WPBeginner.

  • How to Add Fuzzy Search in WordPress to Improve Results

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

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

    In this article, we’ll 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 And Why Should You Add it to Your Website?

    Fuzzy search looks for partial matches for a search term, even if no exact matches are available, and shows users the most appropriate results.

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

    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 as well as look for matches in titles, excerpts, post or page content, products, custom fields, categories, tags, PDF files, and more.

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

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

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

    How to Add Fuzzy Search to Your WordPress Website

    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 switch to the ‘License’ tab.

    Next, you need to copy and paste your license key and click on the ‘Activate’ button. You can find the license key under your account on the SearchWP website.

    SearcWP license

    Fuzzy search is not enabled by default in SearchWP, but you can easily turn it on. First, you need to switch to the ‘Advanced’ tab in the plugin’s settings page.

    Next, you need to simply check the ‘Partial matches (fuzzy when necessary)’ option under the ‘Actions & Settings’ section.

    Check the Partial matches option in the Action & Settings section

    Doing so will enable the fuzzy search feature for your site.

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

    You can see them by simply switching to the ‘Engines’ tab under plugin settings.

    SearchWP settings

    From here, you can assign weight to different 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, 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 SearchWP custom algorithm for results.

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

    Simply head over to the Appearance » Widgets page. Find the ‘Search’ block and simply add it to your sidebar.

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

    Search widget

    However, if you are using a block theme, then your theme 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 site editor to add the search block to your website. Simply go to the Appearance » Editor page to launch the editor.

    After that, add the search block to your website where you want to display the search form.

    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.

    You can see in the image below how fuzzy search returns multiple relevant results with a misspelled query.

    Search results with fuzzy search

    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.