How to Add Ajax Taxonomies Filter in WordPress Search

Do you want to add a taxonomies filter to your WordPress search?

Allowing users to search based on categories, tags, custom fields, and post types offers a great user experience. However, the default WordPress search is not very good or advanced enough to offer this feature.

In this article, we will show you how to add an Ajax powered taxonomies filter in WordPress search.

How to add ajax taxonomies filter in WordPress search

Ajax-powered search is faster and provides a better user experience than the default WordPress search function.

For example, a car dealership website may have custom taxonomies for different vehicle types, price ranges, models, and more. Ajax filters can help users find exactly what they need.

You can add similar search filters in WordPress and improve the user experience of your site. It also helps website administrators to organize their content, so that it could be easily found by users.

However, the default WordPress search is not that powerful and doesn’t offer filter content based on categories, tags, post types, product details, and more. If you use custom taxonomies on your site, the default search performs even worse.

This is where you’ll need a WordPress plugin to help you out. Let’s see how to add an Ajax taxonomies filter to WordPress search.

We’ll cover 2 methods in this article. The first method will help you show filters on the front end of your WordPress website. The second method will help you improve the default WordPress search and include taxonomies when searching posts and pages on your site.

Simply click the links below to jump ahead to your preferred section:

Method 1: Add Ajax Taxonomies to WordPress Search using SearchWP

You can add Ajax taxonomies to WordPress search by using SearchWP. It is the best search plugin for WordPress and makes it easy for users to find what they’re looking for on your website.

It goes beyond using just the content on your blog posts and pages to look up things. SearchWP uses custom fields, taxonomies, WooCommerce product attributes, text files, custom tables, and more.

Do note that SearchWP won’t show the taxonomies filters on the frontend of your website. However, it will include them in the search process and improve the default WordPress search.

First, you’ll need to visit the SearchWP website and sign up for an account. After that, you can download and install the plugin on your site. If you need help, then please see our guide on how to install a WordPress plugin.

Upon activation, you will need to go to SearchWP » Settings from the WordPress admin panel. From here, simply enter the license key, which you can easily find in your account area.

Enter your SearchWP license key

After that, you can go to SearchWP » Algorithm page from the WordPress dashboard.

Here, you can edit the search relevance for your website. For instance, you can increase weights for title, content, slug, and excerpt to help users find what they’re looking for.

To add taxonomies to the search relevance, you can click the ‘Add/Remove Attributes’ button.

Add category and tags to search relevance

Next, a new popup window will open.

You can click the Taxonomies dropdown menu and select whether you’d like to include categories, tags, formats, or all of them in the WordPress search.

Select which taxonomies to add to search

After selecting the taxonomies, don’t forget to click the ‘Done’ button.

You should now see the taxonomies for your WordPress blog post search algorithm. You can use the slider to increase their relevance in WordPress searches.

View taxonomies in search algorithm

You can also click the ‘Edit Rule’ button to determine what content can and cannot show up in the search results.

For instance, SearchWP will include all the categories on your website. You can remove categories from which you don’t want the content to show up or add multiple conditions to customize the search results.

Edit search rules

Don’t forget to click the ‘Done’ button when finished.

You can now edit the search algorithm for your pages, media files, WooCommerce products, and more to show up in SearchWP.

Now, whenever a visitor searches for pages and posts on your website, SearchWP will include taxonomies during the search process.

Method 2: Add Ajax Taxonomies Filter Using Search & Filter Plugin

You can use a free WordPress plugin like Search & Filter to add an Ajax taxonomies filter to your website. It is very easy to use and allows your users to search based on category, tag, custom taxonomy, post type, and more.

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

Upon activation, you can add a shortcode to show the Ajax taxonomies filter anywhere on your website.

For instance, you can enter the following shortcode to show the category and post-type dropdown filter:

[searchandfilter fields="search,category,post_tag"]

On the other hand, if you want to show headings for categories and tags, then you can add the following shortcode:

[searchandfilter fields="search,category,post_tag" headings=",Categories,Tags"]

Here’s what the Ajax taxonomies search filter looks like on our demo site.

View category and tag heading in sidebar

In the screenshot, you can see the filter in the sidebar where users can use the dropdown menu and select a category or tag.

The plugin also lets you show filters as radio buttons and checkboxes.

You can add the following shortcode anywhere on your site to show taxonomy filters as checkboxes:

[searchandfilter fields="search,category,post_tag" types=",checkbox,checkbox" headings=",Categories,Tags"]
View search filters as checkbox in sidebar

In the screenshot above, you can see the taxonomies filter as checkboxes. Users can simply select categories from which they want to view posts and pages.

We hope this article helped you add Ajax powered taxonomy filter in WordPress search on your site. You may also want to see our guide on how to improve WordPress search and the best live chat software 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 to Add Ajax Taxonomies Filter in WordPress Search first appeared on WPBeginner.

How to Create a Mobile-Ready Responsive WordPress Menu

Do you want to create a mobile-ready responsive WordPress menu?

More than half of all website traffic comes from mobile devices. If your navigation menu doesn’t work well on smartphone and tablets, then a big chunk of your audience may struggle to find their way around your site.

In this guide, we will show you how to create a mobile-ready responsive WordPress menu.

How to create a mobile-ready responsive WordPress menu

Why Create a Mobile-Ready Responsive WordPress Menu?

A well-designed navigation menu will help visitors find their way around your website. However, just because you menu looks great on desktop computers, doesn’t automatically mean it will look good on smartphones and tablets too.

Mobile users make up around 58% of all internet traffic. That said, if your menu doesn’t look good or work correctly on mobile devices, then you risk losing half your audience. This will make it difficult to achieve key goals such as growing your email list, getting sales, and growing your business.

With that being said, let’s see how you can create a mobile-ready responsive menu that will look great on smartphones and tablets. Simply use the quick links below to jump straight to the method you want to use.

Method 1: Create a Mobile-Ready Responsive Slide Panel Menu

A responsive slide panel is a navigation menu that slides onscreen when a visitor taps or clicks on a toggle.

A sliding side panel menu in WordPress

In this way, the menu is always within easy reach but doesn’t take up any onscreen space by default. This is particularly important since smartphones and tablets have much smaller screens compared to desktop computers.

If the menu is constantly expanded, then a mobile user may trigger its links by accident using their device’s touchscreen. This makes slide panels a good choice for a mobile-responsive menu.

The easiest way to add a mobile-ready slide panel is by using Responsive Menu.

Note: There is a premium version of Responsive Menu with extra themes and additional features such as conditional logic. However, in this guide, we’ll use the free plugin since it has everything you need to create a mobile-ready menu.

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

Upon activation, you can use the plugin to customize any WordPress menu you’ve previously created. If you need to create a new menu, then please see our guide on how to add a navigation menu in WordPress.

If your WordPress theme already has a built-in mobile menu, then you’ll need to know that menu’s CSS class so you can hide it. If you skip this step, then mobile users will see two overlapping menus on your website. For step-by-step instructions, please see our guide on how to hide a mobile menu in WordPress.

With that done, go to the Responsive Menu » Menus page and click on the ‘Create New Menu’ button.

Creating a mobile-ready responsive menu

You will now see a few different themes that you can use for your menu.

We’re using the ‘Default Theme’ in our images but you can use any theme you want. After making your decision, click on ‘Next.’

Choosing a template for your navigation menu

You can now type in a name for the menu. This is just for your reference so you can use anything you want.

With that done, click on ‘Link WordPress Menu’ and choose the menu that you want to use.

Adding a responsive menu to a WordPress blog or website

As already mentioned, if your theme already has a built-in mobile menu, then you’ll need to add its CSS class to the ‘Hide Theme Menu’ field.

If you upgrade to the premium plugin, then you’ll get a few additional settings. For example, Pro users can hide the menu on particular pages or devices.

When you’re happy with how the menu is set up, click on ‘Create Menu.’

How to create a mobile-ready menu for your website or blog

You’ll now see a preview of your WordPress website on the right of the screen, and some settings on the left.

To see how your site looks on mobile, click on either the mobile or tablet icon towards the bottom left of the screen.

Previewing a responsive menu on a smartphone or tablet

To customize how the menu looks and acts on mobile devices, select ‘Mobile Menu.’

Then, click on ‘Container.’

Designing a mobile-responsive WordPress navigation menu

Here, you’ll find lots of different settings.

As you make changes, the live preview will often update automatically. With that in mind, it’s a good idea to expand the menu so you can monitor how your mobile menu will look. To do this, simply click on the menu toggle button.

How to preview a mobile menu on desktop

By default, the plugin adds a title and some ‘Add more content…’ text.

You can replace this with your own messaging, or even remove the text completely. To edit the title, click to expand the ‘Title’ section.

Adding a custom title to a navigation menu

You can now type your own messaging into the ‘Title Text’ field.

You can also add a link to the title, or add icon fonts and images.

Customizing the title in a WordPress navigation menu

To customize how the title looks, click on the ‘Styles’ tab.

Here, you can change the background color, the text color, the font size, and more.

Customizing how a menu looks using a free WordPress plugin

If you don’t want to show any title text, then click to deactivate the toggle next to ‘Title.’

If the title isn’t essential, then removing it will create more space for the links and other content in your mobile navigation menu.

Removing the title from a WordPress navigation menu

To replace the ‘Add more content here….’ text with your own messaging, click to expand the ‘Additional Content’ area.

You can now type in your own text, change the text color, change the text alignment, and more by using the settings in the left-hand menu.

Adding your own messaging to a mobile-ready navigation menu

To remove the text completely, simply click to deactivate the toggle.

Once again, this can create more room for the rest of the menu’s content. This is particularly useful on smartphones and tablets, which typically have smaller screens.

Creating a unique menu for a smartphone or tablet

By default, Responsive Menu will show all your menu items as a single list. However, you may prefer to show these links in multiple columns. This can work well if your menu labels are shorter, as it allows you to show more items in a smaller amount of space without the menu looking cluttered.

To try different column layouts, click to expand the ‘Menu’ section.

Expanding the WordPress navigation menu settings

You can now open the ‘Menu container columns’ dropdown and choose the number of columns you want to use.

At this point, you may see some ‘Update Required’ text. If you see this message, then give it a click to update the live preview with your new column settings.

Creating a multi-column menu layout

By default, Responsive Menu adds a search bar to your WordPress menu. This can help visitors find interesting content, but it can also take up precious onscreen space.

If you prefer, then you can remove the search bar for mobile users by deactivating the toggle next to ‘Search.’

Removing a search bar from the WordPress mobile menu

There are lots more settings that you can configure, so you may want to spend some time looking through the other options. However, this is enough to create a well-designed mobile-ready menu.

When you’re happy with how the navigation menu is set up, click on ‘Update.’

Making the mobile-responsive menu live on your website

Now, simply visit your WordPress blog using a mobile device, to see the new menu in action. You can also view the mobile version of your WordPress site from desktop.

Method 2. Create a Mobile-Ready Fullscreen Responsive Menu

Another option is to add a fullscreen responsive menu. This is a menu that automatically adjusts to different screen sizes, so the navigation menu will always look good no matter what device the visitor is using.

Since the menu takes up all the available space, it is easier to navigate on smartphones and tablets, no matter how small the screen.

The easiest way to create a fullscreen menu is by using FullScreen Menu – Mobile Friendly and Responsive. This plugin allows you to create a fullscreen menu for mobile devices only, or you can show the same menu across smartphones, tablets, and desktop computers, so all visitors have the same experience.

The first thing you need to do is install and activate the FullScreen Menu plugin. You can check our step-by-step guide on how to install a WordPress plugin for more details.

Upon activation, select Fullscreen Menu Options from the WordPress menu and check the following box: ‘Activate Animated Fullscreen Menu.’

Creating a fullscreen menu for smartphones and tablets

We also recommend checking the ‘Show the menu only for Admin users’ box. This allows you to see the changes as you’re configuring the menu, but visitors won’t see the mobile menu until you make it live.

By default, the plugin will show the fullscreen menu on all devices. If you want to show the fullscreen menu on smartphones and tablets only, then check the box next to ‘Mobile only.’

Showing a fullscreen menu on a mobile device

With that done, you’re ready to fine-tune how the menu looks by clicking on the ‘Design / Appearance’ tab.

Here, you can choose the colors, font, and animation settings for the fullscreen menu.

Adding custom colors to a mobile-responsive menu

When making these changes, just be aware that ‘Initial Background Menu’ is the menu’s toggle icon. Meanwhile, ‘Opened Background Menu’ is the color of the expanded, fullscreen mobile menu.

After choosing the menu colors, scroll to the ‘Menu Appearance’ section. Here you can change the menu’s font color, font family, and font size.

Changing the appearance of a mobile navigation menu

Just be aware that loading additional fonts could affect your WordPress site performance and speed. This isn’t always a good choice for mobile devices, which typically have less processing power compared to desktop computers. Some visitors may also have a poor mobile internet connection, which will make your site load even more slowly.

With that done, scroll to ‘Animation Settings.’.

To start, you can choose how the menu will expand when a visitor clicks the toggle icon. Simply open the ‘Animation Type’ dropdown menu and choose an option from the list, such as From Top to Bottom or From Left to Right.

Adding animation effects to a mobile website

When you’re happy with how the menu is set up, it’s time to add some content by clicking on the ‘Menu Content’ tab.

Here, go ahead and open the ‘Select Menu’ dropdown and choose the menu that you want to show fullscreen.

Creating a mobile-responsive WordPress menu

If you haven’t created a navigation menu yet, then check out our guide on how to add navigation menus in WordPress.

If you want to show additional content in the menu, then you can add it in the ‘Free HTML / Shortcodes’ box. This acts as a mini page editor so you can type in text, change the formatting, add bullet points and numbered lists, and more.

Adding shortcodes and HTMTL to your website's navigation

There’s also a checkbox that will add a link to your privacy policy page

Next, you might like to add social media icons to your WordPress menu. These icons will appear in a row at the bottom of the fullscreen menu.

An example of a fullscreen mobile menu

To add these icons, simply click to expand the ‘Social Icon 1’ box.

You can now type in a title for the icon, such as ‘Facebook.’

Adding social icons to your blog or website

After that, click on the arrow next to ‘Social Icon’ and choose the icon that you want to show to mobile visitors.

Finally, type the address you want to use into the ‘Social URL’ field.

Adding Facebook, Twitter, and other social platforms to your website or blog

To add more icons, simply click the ‘Add Another Icon’ button.

Finally, you may want to add a WordPress search bar to help visitors find what they’re looking for. To do this, simply check the box next to ‘Add Search Bar.’

How to add a search bar to your mobile website

By default, the plugin will show a ‘Search something…’ message. However, you can replace this with your own custom messaging by typing into the ‘Search input placeholder’ field.

For example, if you run a WooCommerce store then you may want to use text such as ‘Start shopping’ or ‘Search for products.’

When you’re happy with how the menu is set up, click on the ‘Save Changes’ button.

Making a mobile responsive menu live on your website

Now, simply visit your website using a mobile device to see the fullscreen menu in action.

You can also preview the mobile version of your website using the WordPress theme customizer.

Bonus: How to Add a Mobile-Responsive Menu to Landing Pages

If you’re creating a landing page or sales page, then you’ll want the design to look just as good on mobile devices as it does on desktop.

With that in mind, we recommend creating the page using SeedProd. SeedProd is the best page builder plugin and comes with more than 180 professionally-designed templates.

Choosing a SeedProd template

After creating a design using SeedProd, you can add a mobile-responsive menu to the page using SeedProd’s ready-made Nav Menu block. This block allows you to create separate menus for both menu devices and desktop.

In this way, you can use a different layout and even show different links depending on the user’s device.

To learn more, please see our guide on how to add custom navigation menus in WordPress.

After adding the Nav block to your design, simply click on the ‘Advanced’ tab.

Creating mobile responsive navigation using SeedProd

Here, click to expand the ‘Device Visibility’ section.

After that, click on the ‘Hide on Desktop’ toggle to activate it. Now, this menu will only appear on mobile devices.

Creating a mobile responsive menu using SeedProd

You can now add links and change the menu’s layout using the settings in the left-hand menu.

We hope this article helped you learn how to create a mobile-ready responsive WordPress menu. You may also want to see our guide on how to increase your blog traffic, or see our expert pick of the best analytics solutions for WordPress users.

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 Create a Mobile-Ready Responsive WordPress Menu 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?

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 Customize the Search Results Page in WordPress

Do you want to customize the search results page on your WordPress website?

The search results page can help users find the content they are looking for. Customizing it will improve the user experience on your site, which can lead to more page views and conversions.

In this article, we will show you how to easily customize the search results page in WordPress without writing any code.

Customizing WordPress search results page

Why Customize the WordPress Search Results Page?

By default, your WordPress website comes with a basic search feature. It allows users to look for content matching their search terms, but the search results are not very good.

No results found for a search term in WordPress

Often, search terms return no results, even when there are possibly several matches that would answer the user’s query.

The search itself is also slow and requires a page load. If multiple users end up using the search feature at once, then this could slow down your website.

By customizing your search results page in WordPress, you can create a faster search system with a better user experience and more helpful search results.

Search results found

Sounds good? Let’s get started.

Step 1: Setting Up SearchWP as Your WordPress Search Engine

SearchWP is the best WordPress search plugin on the market. It allows you to improve WordPress search by replacing it with a faster and more accurate search engine.

SearchWP Homepage

It automatically indexes your content in the background, which allows searches to run faster. You don’t need to replace the default WordPress search forms and templates.

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

Upon activation, you need to visit the SearchWP » Settings page and switch to the ‘License’ tab. Enter your plugin license key, which you can find in your account on the SearchWP website.

Enter SearchWP license key

Next, you need to visit the SearchWP » Algorithm page to configure the search engine settings.

You will notice that SearchWP has set up a default search engine for you. It uses your WordPress posts, pages, and media as sources.

SearchWP search engines

Under each source, you can adjust the sliders to give more relevance to one attribute than another.

Want to include more places on your website in search results? Just click on the ‘Sources & Settings’ button to add them.

Add sources to search engine

For the sake of this tutorial, let’s add Comments as a search source.

After you click ‘Done’, a new tab will appear under the sources list. However, it will be empty, and to make it useful, you need to click on the ‘Add/Remove Attributes’ button.

Add attributes

This will bring up a popup where you can select which attributes you want to include in your search.

For instance, we picked Comment text as an attribute.

Select attributes to add into search source

After adding an attribute, you can assign a weight to it in your search results.

More weight means that SearchWP will consider that attribute more relevant than other attributes when showing search results.

Attribute weight in search results

Just repeat the process if you need to add more attributes to a source.

Once you have finished reviewing search sources, you can go ahead and click on the ‘Save’ button.

Save search engine settings

SearchWP will now start building a search index based on your settings.

Once finished, you will see 100% as the Index Status.

Search index status in SearchWP

The SearchWP engine will now automatically replace the default WordPress search. If you already have a search form on your website, then you can try it.

If you don’t have a search form on your website, then you can add one by visiting the Appearance » Widgets page.

Simply add the Search widget or block to your sidebar and click on the ‘Update’ button to save your changes.

Add a search widget block

Note: If your WordPress theme does not have any widget-ready areas, then you will not see the Widgets page under the Appearance menu.

Instead, you can add a Search block to your site by visiting the Appearance » Editor page.

Search block in site editor

This will launch the full site editor. You can add the Search block to any place where you want the search form to be displayed.

You can now visit your WordPress blog and try out your new and improved search feature.

Step 2: Creating Advanced Search Forms for Your WordPress Site

A plain search form looks okay and gets the job done. However, it is not very engaging, and users often don’t even notice it on a site.

SearchWP fixes this by allowing you to create highly useful and advanced search forms for your WordPress site.

Simply go to the SearchWP » Search Forms page and click the ‘Add New’ button.

Search forms in SearchWP

On the next screen, click on the pencil icon next to the form name to give it a proper name.

This will help you recognize the form when you need to add it to your site later.

Give your form a name

After that, you must choose a theme for your search form.

SearchWP comes with several options, including Basic, Category Search, Quick Search, Advanced, and Combined search forms.

Search form themes

Clicking on a theme will select it and show you a preview of what that search form would look like.

Simply pick a theme you would like to use for your search form and then scroll down to customize it.

Customize your search form

From here, you can tweak the form settings, style your form, and choose colors.

Once you are finished, don’t forget to click the ‘Save’ button to store your settings.

Save search form

Note that this custom form will not automatically replace your default WordPress search form.

Instead, you will need to manually embed it on your site. Simply go to the Appearance » Widgets page (or Appearance » Editor if your WordPress theme doesn’t have sidebars).

From here, you need to add the Search Form block to your widget area or template in the site editor.

Search form block

After that, choose the form you just created from the dropdown menu inside the block.

You will then see a preview of your custom search form on the screen.

Advanced form displayed

Don’t forget to click on the ‘Save’ or ‘Update’ button to store your changes.

Step 3: Adjusting the Search Results to Promote Important Content

Now that you have replaced the default WordPress search with SearchWP, it is time to look at how you can generate even better search results.

We will start by promoting important content in search results. These could be blog posts that bring you more revenue, sales pages, lead-generation landing pages, and more.

First, you need to visit the SearchWP » Extensions page and install the Custom Results Order extension.

Custom Results Order extension for SearchWP

Next, you need to visit the SearchWP » Statistics page.

Here, you can see which search terms or keywords are popular among your users.

SearchWP statistics

Note: If you have just installed the plugin, then you may not have enough data here. You can wait for users to enter a few search terms to collect more data.

Now, look for the keywords where you want to promote a particular post and page in the search results.

After that, go to the SearchWP » Algorithm page and select the ‘Custom Results Order’ tab.

Add custom results order

Enter the keyword for the post or page that you want to promote inside the search query box, then click the ‘Add Search Query’ button.

SearchWP will show you the results for that particular query. You need to select the content you want to promote and then click the ‘Promote to Top’ button.

Promote to top

Your selected post or page will now start appearing at the top for that particular search keyword.

You can always return to the same page and unpin that post or page from the top by clicking on the ‘Remove Promotion’ button or perhaps adding a different one.

Promoted search result

Step 4: Exclude Content From WordPress Search Results

Sometimes, you may have content you don’t want to appear in search results. For instance, you might have a page promoting an expired sales event or an outdated blog post.

SearchWP allows you to easily exclude any post or page you don’t want to include in search results.

First, you need to visit the SearchWP » Extensions page and install the Exclude UI extension.

Exclude UI extension

After activation, you can simply edit the post or page you want to exclude from search results.

In the ‘Post’ panel on the edit screen, you will now see an option to exclude that post from search results.

Exclude post from search results

Simply check the box next to ‘Exclude from search’ and click on the ‘Update’ button to save your changes.

SearchWP will now stop showing that post or page in search results.

Step 5: Make Search Results Appear Instantly in WordPress

Normally, your SearchWP search results will appear using the theme template file provided by your WordPress theme.

But what if you could show the users the results as soon as they start typing? This feature is called live search, and you may have already seen it on search engines like Google and Bing.

Let’s add live search to your WordPress site to make search a better experience for your users.

First, you need to visit the SearchWP » Extensions page and install the Live Search extension.

Install live ajax search

Upon activation, the extension will start working automatically.

You can now go to your website and start typing keywords into a search form to see it in action.

Live search preview

For more detailed instructions, you can see our tutorial on how to add live search in WordPress.

Step 6: Search in More Places on Your WordPress Site

SearchWP can be configured to search in more places on your WordPress website. For instance, it can search in custom fields, PDF documents, shortcode outputs, and more.

Depending on where you want to enable search, you can turn these features on and off as needed.

Enable Search for WordPress Custom Fields

WordPress custom fields allow you to store additional metadata for your WordPress posts and pages. They are also used by WordPress plugins to store data related to a post or page.

To include custom fields in your search sources, just go to the SearchWP » Algorithm page and click the ‘Add/Remove Attributes’ button below a source.

Edit search source attributes

This will bring up a popup where you can select a specific custom field or select any meta key.

Simply click on ‘Done’ when you are finished, and don’t forget to click the ‘Save Engines’ button.

Include custom fields in search results

SearchWP will now start using custom fields as a source and will include matching posts in the search results.

For more details, see our guide on how to make custom fields searchable in WordPress.

Enable Search in PDF and Documents

SearchWP can also search inside PDF files and office documents uploaded in your WordPress media library.

Simply go to the SearchWP » Algorithm page and click on your search engine’s ‘Sources & Settings’ button.

Search sources and settings

This will bring up a popup where you need to make sure that ‘Media’ is selected as one of the sources.

Then, click the ‘Done’ button.

Select media source

After that, scroll down to the sources list on the Engine settings page to find the Media tab.

From here, you need to click on the ‘Add/Remove Attributes’ button.

Add media attributes

This will bring up a popup where you can select which attributes you want to include in your search results.

Make sure that the Document Content, PDF metadata, and Title attributes are selected.

Select PDF document attributes

Simply click on the ‘Done’ button after making your selection.

Next, you can move the slider up and down to adjust the weight you want to give to a particular attribute in search results.

Once you are finished, don’t forget to click the ‘Save Engines’ button to save your settings.

Adjust PDF weight

Enable Search in Shortcode Outputs

Many WordPress plugins use shortcodes to output data in your WordPress posts and pages.

If this shortcode data is important for your WordPress website and will help improve search results, then you can enable Shortcode Output parsing in SearchWP.

Simply go to the SearchWP » Settings page and scroll towards the bottom. From here, you need to turn on the ‘Parse Shortcodes’ option.

Parse shortcodes

After that, you just need to click the ‘Wake Up Indexer’ button to run a new indexing process in the background that will include shortcode output in search results.

Step 7: Include eCommerce in WordPress Search Results

SearchWP makes it super easy to improve eCommerce search results in your online store.

It has powerful integrations for popular eCommerce plugins, including WooCommerce and Easy Digital Downloads.

We will show you how to turn it on for your WooCommerce store. Other integrations work similarly as well.

First, you need to go to the SearchWP » Extensions page and install the WooCommerce Integration extension.

WooCommerce integration in search results

Upon activation, go to the SearchWP » Algorithm page.

Then, click on the ‘Sources & Settings’ button for your search engine.

Search sources and settings

This will bring up a popup where you need to ensure that the ‘Products’ option is selected as one of the sources.

After that, click on ‘Done’ to exit the popup.

Add WooCommerce products to search

Now, scroll down on the Sources screen, and you will see the Products tab.

You can adjust the attribute weight by moving the sliders or clicking on the ‘Add/Remove Attributes’ button to select custom fields or product categories.

Product weight adjusted

Once finished, don’t forget to click the ‘Save Engines’ button to save your settings.

For more detailed instructions, you can read our guide on how to improve WooCommerce product search in WordPress.

We hope this article helped you learn how to easily customize the search results page in WordPress. You may also want to see our guide on how to track user journeys on WordPress lead forms and our expert picks of the best WordPress SEO plugins.

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 Customize the Search Results Page 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 a Search Form in a WordPress Post With a Shortcode

Do you want to add a search form to a WordPress post?

Adding a search form to your post or page content is a good way to encourage your visitors to find more content and stay on your website longer.

In this article, we’ll show you how to add a search form in your posts and pages using a WordPress search shortcode.

How to Add Search Form in Your Post with a WordPress Search Shortcode

Why Add a Search Form to Your Posts and Pages?

If a visitor has enjoyed reading a post on your WordPress blog, then they will likely want to read more. Offering a search form in the post will help them find more of your content that they are interested in.

When you make it easy for users to spend more time on your website, you can increase your pageviews and reduce your bounce rate.

Your visitors are also more likely to join your email list, leave a comment, make a purchase, and follow you on social media.

In this tutorial, we’ll show you how to add the standard WordPress search form to your posts. If you want to add a custom search form, then see our step by step guide on how to create a custom WordPress search form.

We’ll show you two methods to add a search form to your posts, and the first is the simplest. Use the links below to jump to the method you’d like to use.

Method 1: Adding a Search Form with a Plugin

The easiest way to add a search form to your posts is by using the SearchWP plugin. It’s the best search plugin for WordPress used by over 30,000 sites.

Setting Up SearchWP

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, you need to visit the Settings » SearchWP page and then click on the ‘License’ menu option.

Enter SearchWP license key

You then need to enter your license key in the License box. You can find this information in your account on the SearchWP website. After that, you should click the Activate button.

Next, you need to click on the Engines menu option. This brings you to a screen where you can choose your search engine settings.

SearchWP engines settings

Here you need to create a site-wide search engine. You can adjust your search engine settings by clicking on the Posts, Pages and Media drop downs.

The Attribute Relevance sliders in each section adjust how the search engines value and rank content. For example, if you want to value the post title higher than the content, then you can adjust the sliders accordingly.

Adjust SearchWP slider settings

After you’ve finished adjusting the settings, make sure to click the ‘Save Engines’ button to save the default search engine.

Adding a Search Form to a Post

Now you need to download the SearchWP shortcodes extension to easily add your new custom post search form to WordPress.

You’ll need to visit the SearchWP Shortcodes Extension website and then click the ‘Download available with active license’ button.

Download SearchWP Shortcodes extension

After that, you need to install and activate the extension the same way you installed the plugin above. Now you can add a search form in your posts.

Simply edit the post and place your cursor where you want to add the search form. After that, click the plus ‘Add Block’ icon to bring up the blocks menu.

Insert a Custom HTML Block

Next, type ‘html’ into the search box. Then, select the ‘Custom HTML’ block.

Once you’ve added the new block, you can add the following shortcodes and HTML to your page. If you need more help, then see our guide on how to add a shortcode in WordPress.

[searchwp_search_form]
   
<div class="search-results-wrapper">
 [searchwp_search_results]
  <h2>[searchwp_search_result_link]</h2>
  [searchwp_search_result_excerpt]
 [/searchwp_search_results]
</div>
   
<div class="no-search-results-found">
 [searchwp_search_results_none]
 No results found, please search again.
 [/searchwp_search_results_none]
</div>
   
<div class="search-results-pagination">
 [searchwp_search_results_pagination direction="prev" link_text="Previous"]
 [searchwp_search_results_pagination direction="next" link_text="Next"]
</div>

This code will add a search form to the post, create a section to display the search results, show a no results message if necessary, and add pagination if the results go into multiple pages.

Make sure you click Publish or Update to save your post and make it live.

Click Publish or Update to Save Your Post

To see the search form in action, simply view the post on your WordPress website. This is how it looks on our demo site running the Twenty Twenty-One theme.

SearchWP Form Preview

For more tips on customizing your search, see our guide on how to improve WordPress search with SearchWP.

Method 2: Adding a Search Form Using Code

You can also add a search form to your WordPress posts by use of a code snippet. This method is not recommended for beginners, so if you’re not familiar with code, then you should use Method 1 instead.

In this method you will have to edit your theme’s functions.php file.

If you have not edited the functions.php file before, then take a look at our beginner’s guide on pasting snippets from the web into WordPress.

All you have to do is open your theme’s functions.php file or a site-specific plugin and paste the following code:

add_shortcode('wpbsearch', 'get_search_form');

Here is how it looks on our demo website when using the WordPress Theme Editor to add the snippet to the Twenty Twenty-One theme’s functions.php file.

Editing functions.php in the Theme Editor

After that, you simply add the shortcode [wpbsearch] to the post or page where you would like the search form to appear.

Search Form Shortcode

This will display the default search form. To see the search form, simply view the post on your WordPress website.

Search Form Preview

If you would like to display a custom search form, then you should use this code instead.

function wpbsearchform( $form ) {
  
    $form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
    <div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label>
    <input type="text" value="' . get_search_query() . '" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
    </div>
    </form>';
  
    return $form;
}
  
add_shortcode('wpbsearch', 'wpbsearchform');

Feel free to modify the code to customize the search form as you would like.

We hope this tutorial helped you learn how to add a search for in your post with a WordPress search shortcode.

You may also want to learn how to create a free business email address, or check out our list of reasons why you should use WordPress for your website.

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

The post How to Add a Search Form in a WordPress Post With a Shortcode first appeared on WPBeginner.

How to Improve WordPress Search with SearchWP (Quick & Easy)

Do you want to improve your WordPress search with SearchWP?

By improving WordPress search, you can show your users the most relevant results to improve content discoverability and make more sales.

In this article, we’ll show you how to improve your WordPress search with SearchWP easily.

How to improve WordPress search with SearchWP (quick & easy)

What is SearchWP?

SearchWP is the best custom search plugin for WordPress, used by over 30,000 websites. It lets you improve your WordPress site search to deliver more relevant results to your visitors.

SearchWP

This plugin puts you in complete control of your WordPress search algorithm. You can create your own relevance scale and adjust the algorithm without writing any code.

SearchWP also lets you make any part of your site searchable, including PDF documents, custom tables, ACF files, text files, custom fields, WooCommerce products, and more.

SearchWP engines example

You also get access to detailed search metrics to see what your visitors are searching for and the types of content they’re finding.

This gives you actionable insights to improve your existing content and plan new content.

SearchWP metrics example

Plus, SearchWP automatically integrates with all major WordPress plugins like WooCommerce, bbPress, Meta box, Easy Digital Downloads, and more.

Beyond improving your default WordPress search, it has more features like redirection after a search is performed, excluding specific content from search, keyword stemming, support for multiple search engines, and more.

With that said, let’s show you how to set up SearchWP properly to improve your WordPress search.

How to Install and Set Up SearchWP

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

Upon activation, you need to visit the Settings » SearchWP page and then click on the ‘License’ menu option.

Enter SearchWP license key

Then, enter your license key in the ‘License’ box and click the ‘Activate’ button.

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

Once you’ve done that, you need to click on the ‘Engines’ menu option.

SearchWP engines settings

This brings you to a screen where you can set your search engine settings. Think of it like creating your own Google search algorithm for your website.

With SearchWP, you need to create a site-wide search engine before you can customize your search further.

You can adjust your search engine settings by clicking on the ‘Posts’, ‘Pages’, ‘Media’, or other available drop downs.

Every section has ‘Attribute Relevance’ sliders that change how the search engines value and rank content. For example, if you want to value the post title higher than the content, then you can adjust the slider accordingly.

Adjust SearchWP slider settings

After you’re done customizing your default search engine settings, make sure to click the ‘Save Engines’ button to create your first search engine.

Once the initial index is created, SearchWP will replace the default WordPress search with your new improved search. If your theme already has a search box, then you don’t need to make any changes.

If you don’t already have a search box on your website, then it’s easy to add one. Simply navigate to Appearance » Widgets and click the ‘+’ icon to bring up the widget block menu.

Add new widget block for search

After that, type ’Search’ into the widget search box.

Then, select the ‘Search’ block.

Add new search block

This will insert a search form into your sidebar.

You can customize the title of your search form and add optional placeholder text if you prefer.

Update and save search form widget

Make sure you click the ‘Update’ button to save your changes.

Now when your visitors use your search form, they’ll be using the improved SearchWP search.

SearchWP search widget

There are all kinds of ways you can customize the search experience on your site with SearchWP, so let’s take a look at a few of them below.

How to Make PDF Files Searchable in WordPress

If you upload a lot of PDF content to your website, then you can allow your users to search the text in the PDF files to find what they’re looking for.

SearchWP quickly indexes the PDF content you’ve added to your media library and displays the files in search results.

To make sure your PDFs are searchable, go to SearchWP » Settings to bring you to the engines page.

Then, in the ‘Media’ section, you’ll find a slider called ‘Document Content’. You need to make sure this is enabled.

Media engine slider SearchWP

For some users, this option won’t be enabled yet.

To turn this on, click on the ‘Add/Remove Attributes’ button.

Add new attribute to media search

This brings up a popup where you can manage the attributes for how your media is searched.

Simply check the ‘Document Content’ box and then click ‘Done’.

Select document content search box

Now, you can adjust the slider settings to give weight to your PDF content.

Then, make sure you click the ’Save Engines’ button.

Now, your visitors will be able to search through your PDF content and find relevant results.

PDF search results example

When your visitors click the PDF result it will take them to a page where they can view the entire PDF document.

Add a Search By Category Feature to WordPress

If you have multiple categories of content on your WordPress website, then you might want to let users search for a single category at a time.

You can do this by adding a category select drop down to your search forms.

Category select drop down example

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

Add a Live Ajax Search Function to WordPress

Another feature you’ve probably seen is live Ajax search, also called instant search. This adds a drop down autocomplete feature that’s common in search engines like Google.

Instant search helps your visitors to more quickly find what they’re looking for, which can keep them on your website longer.

SearchWP makes it easy to add this feature to your website.

Live Ajax search widget example

For more details, see our guide on how to add live Ajax search to your WordPress site.

Add a Smart Product Search to Your Online Store

If you run an online store, then you want to make sure your visitors can find the products they’re looking for.

SearchWP WooCommerce search results

SearchWP makes it easy to improve your WooCommerce product search and make more sales.

You can fully customize your WooCommerce search engine and give weight to the product attributes that matter most.

Add WooCommerce search product attributes

For more details, see our guide on how to make a smart WooCommerce product search.

Create a Custom Post Type Search Form in WordPress

With SearchWP, you can create all kinds of advanced search forms, like a custom post type search form.

To do this, you’ll create a separate search engine that only searches through a single post type. For example, here is a search form that will only search through coupon posts.

Custom post type search form example

For more details, see our guide on how to create advanced search forms for custom post types in WordPress.

SearchWP is a very flexible and valuable WordPress search plugin. You can create completely custom WordPress search engines that deliver more relevant results for your visitors.

We hope this article helped you learn how to improve WordPress search with SearchWP. You may also want to see our picks of the best live chat software for small businesses and our guide on how to get a free business email address.

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 Improve WordPress Search with SearchWP (Quick & Easy) appeared first on WPBeginner.

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.