When you add filters to WordPress search, visitors stop scrolling through every match and start narrowing the list down to what they came for.
SearchWP handles filters on the search form itself, so visitors can pick a post type, author, or tag before they search, while WPFilters adds checkboxes, dropdowns, and sliders right beside the results.
Building those filters with WPFilters takes a few clicks and no code, and pairing it with SearchWP means every filter works inside SearchWP’s relevance-ranked results.
In this article, we’ll show you how to add filters to WordPress search with SearchWP, with WPFilters, and with both plugins working together. You can click the links below to jump ahead to any method.
What Are WordPress Search Filters?
Search filters are controls, like dropdowns or checkboxes, that let visitors narrow a set of search results without typing a new search.
On a WordPress site, they show up in two places, and each one does a different job.
Filters on the search form narrow the search before it runs, so a visitor can choose “Pages” or a specific author and then type their keyword.
Filters on the results page narrow the list after it loads, so a visitor can tick a category and watch the results update without reloading the page.
Here’s a quick way to pick the right method for your site:
| Method | Where the filters appear | Visitors can filter by | Best for |
|---|---|---|---|
| SearchWP Advanced Search form | On the search form, behind an Advanced Search toggle | Post type, author, and tag | Blogs and content sites that want a focused search box |
| WPFilters | Beside your search results or any archive page | Categories, tags, custom fields, post type, and author | Sites with lots of categorized content |
| SearchWP + WPFilters | Beside SearchWP’s results page | All of the above, with relevance ranking kept | Large content sites and online stores |
Why Add Filters to WordPress Search?
WordPress’s built-in search matches keywords against post titles, excerpts, and content, but it doesn’t include any filters visitors can use to narrow the results.
That’s fine for a small blog, but we’ve noticed it gets harder for visitors as a site grows.
- Visitors find the right post faster. If you have a blog with articles from different contributors, visitors can filter by author to find every post a specific person wrote. They can also filter by tag to find posts on one particular topic.
- Mixed content stops burying the answer. A search for “pricing” can return blog posts, pages, and media files all at once. A post type filter lets visitors jump straight to the page they need, which is why we put together a full guide on filtering search results by post type.
- Broad searches become useful. A one-word search on a large site can return dozens of matches. Filters turn that long list into a short one without visitors guessing at a better keyword.
- Visitors stay and explore. When filters help visitors discover related content, they keep browsing instead of heading back to Google. That means more engagement and higher conversion rates.
You can add search filters to all kinds of websites, including online stores, blogs, eLearning platforms, and membership sites.
Let’s start with the quickest option, SearchWP’s Advanced Search form.
Method 1: Add Search Filters With SearchWP’s Advanced Search Form
WordPress’s default search form doesn’t give visitors any filter controls, and this is where SearchWP comes in.

SearchWP is the best WordPress search plugin, trusted by 50,000+ website owners.
It lets you create a filterable search form without any coding, so visitors can filter their searches by post type, author, or tag.
Here are a few features that make SearchWP a great fit for search filters:
- Advanced Search form. You can build a search form with post type, author, and tag dropdowns right from the SearchWP » Search Forms screen. Then you can embed it on any page with a block.
- Control over what’s searchable. You choose which content sources your search covers. The Post Types filter then offers visitors the post types in that engine, unless you pick specific ones in the form’s Sources field.
- Keyword stemming. SearchWP can match variations of a search term. For example, a search for “run” can also bring up posts about “running” and “runs.”
- Custom results templates. You can style a dedicated results page from SearchWP » Templates, which is also where you turn on the WPFilters integration we’ll cover later.
With that, let’s see how you can use SearchWP to add filters to WordPress search.
Step 1: Install and Activate SearchWP
To get started, select the SearchWP package that best suits your needs, since each package offers different benefits.
Once you’ve made your purchase, log in to your SearchWP account and go to the Downloads tab.
From there, click Download SearchWP to save the plugin’s ZIP file to your computer.

Next, copy the license key from the same section, since you’ll need it to activate the plugin.
After that, install and activate the plugin like any other WordPress plugin. If you need a hand, WPBeginner has a guide on how to install a WordPress plugin.
Once it’s activated, you’ll see a welcome screen, where you can click Start Onboarding Wizard for help with the initial setup.

If you’d rather set things up manually, head over to SearchWP » Settings and stay on the General tab.
From there, paste your key into the License Key field and click Verify Key to activate the plugin.

Once your key is confirmed, you’ll see your license details, and SearchWP is ready to go.
Step 2: Customize Your WordPress Search Algorithm
SearchWP builds a search index of your content after activation, but you can customize the search algorithm to better fit your needs.
To do this, go to SearchWP » Algorithm from your WordPress dashboard.

The default engine includes your site’s post types, such as Posts, Pages, and Media, and you can adjust these by clicking the Sources & Settings button.
From there, select the content sources you want to include in your search, then click Done to save your changes.

Note: Visitors can filter their search by these sources using the Post Types filter, which you’ll set up in the next step.
When you’re happy with the setup, click Save to apply the changes.

The index updates automatically to reflect your changes.
If you see a notice saying “The index needs to be rebuilt,” click the Rebuild Index button to trigger a full reindex.

Step 3: Create a Filterable Search Form
Now that your search engine is set up, you can create a search form that includes filters.
To do that, go to SearchWP » Search Forms and click the Add New button.

Next, click the form’s title at the top of the screen and give it a name that will help you recognize it later.

Under Layout Theme, select Advanced Search to add filters to your WordPress search.

After that, scroll down and make sure the Advanced Search toggle is turned on, since this is the setting that adds the filters.

You’ll also want to check that the right search engine is selected in the Engine dropdown.

Then, use the Results Page dropdown to choose where results appear.
Site Default uses your theme’s search page, while SearchWP uses a results page you can style with SearchWP.

Now, open the Advanced Search Filter/s field and choose which filters to include: Authors, Post Types, and Tags.

Note: A filter with nothing to show won’t appear on your form. For example, the Tags filter stays hidden on a site that has no tags yet.
Finally, use the Form Style and Search Button settings to match the form’s colors and sizes to your theme.

Once you’re happy with it, click Save to create your filterable search form.
For more layout ideas, see our guide on creating advanced search forms in WordPress.

Step 4: Embed the Filterable Search Form
There are several ways to add your filterable search form to your site.
To see them, click the Embed button next to Save.

In the popup, click Select Existing Page to add the form to a page you already have.

Next, choose your page from the Select a Page dropdown and click Let’s Go!

SearchWP opens that page in the block editor, where you can click the + button and add the SearchWP Form block.

From there, click Select a Form and choose the search form you created.
After that, click Save or Publish to save the page.

Step 5: Test Your Search Filters
Now, visit the page and find the Advanced Search toggle on your search form.
Once you switch it on, the Any Author, Any Post Type, and Any Tag dropdowns appear next to the search box.
On our demo site, we searched for “chicken” and set the post type filter to Pages, and the results showed only matching pages.
Then we set the post type back to Any Post Type and picked a single author from the author filter, and the results narrowed to that writer’s recipes.

Your search form now has working filters, and visitors can narrow their search before it even runs.
Method 2: Add Filters to WordPress Search Results With WPFilters
If you want visitors to filter the results page itself, we recommend WPFilters.

WPFilters is the best filtering plugin for WordPress, built by the same team behind SearchWP.
It lets you add checkbox, dropdown, and slider filters to your search results and archive pages without writing any code.
You can see more ways to use it in our guide on setting up filters in WordPress.
WPFilters comes with a few features built for search results pages:
- Ready-made filter types. You can choose from Checkbox, Radio, Dropdown, Dropdown (Multiselect), Slider, Search, and Reset elements. Each one is ready to use as soon as you save it.
- Filters built from your own data. WPFilters can pull filter options from taxonomies like categories and tags, custom fields, post types, and authors. That means your filters always match the content you already have.
- Results that update instantly. Visitors see the results change as soon as they pick an option. The page doesn’t need to reload.
- Shareable filter URLs. Each filter selection is saved in the page URL. Visitors can bookmark or share a filtered view, and it opens with the same filters applied.
With that, let’s see how you can use WPFilters to add filters to your WordPress search results.
Step 1: Install and Activate WPFilters
WPFilters is a standalone plugin, so you can buy it on its own from the WPFilters pricing page or get it included with the SearchWP All Access plan.
Once you have a plan, log in to your SearchWP account and go to the Downloads tab.
From there, click Download WPFilters and copy your WPFilters license key from the same screen.

Next, install and activate the plugin the same way you did with SearchWP.
After activation, the WPFilters setup wizard opens, so click Let’s Get Started to begin and follow the on-screen instructions.

Step 2: Create a Filter Element
Now you can build your first filter.
To start, go to WPFilters » Elements and click Add New.

Next, click the element’s title at the top and give it a clear name, like “Recipe Category.”

Under Filter Fields, select Checkbox so visitors can tick more than one category at a time.

After that, open the Data Source dropdown and choose Categories (category) from the Taxonomies group.

Then, scroll down to the Container and Items section to show how many posts are in each category.
Once you’re done, click Save, and you’ll see a preview of your filter on the same screen.

Step 3: Add the Filter to Your Search Results Page
WPFilters works with your theme’s default search results page, so all you need to do is place the filter somewhere on that page, like the sidebar.
Note: If SearchWP is also active on your site, follow Method 3 instead. With both plugins running, WPFilters shows its filtered results on SearchWP’s results page rather than your theme’s search page.
To do that, go to Appearance » Widgets and open the sidebar your theme shows on search results.

From there, add a WPFilters Element block and choose the filter you created in the last step.

After that, click Update to save your widgets.

Do note that this step might differ depending on the WordPress theme you’re using.
Step 4: Test Your Search Results Filter
Now, visit your site and search for a broad term like “chicken.”
On our demo site, ticking the Dinner category narrowed the results to dinner recipes right away, without the page reloading.
When we unticked Dinner, the full list of chicken recipes came back.

Your search results page now has a working filter that visitors can use without typing a new search.
Method 3: Combine SearchWP and WPFilters for Powerful Search Filters
SearchWP and WPFilters each work on their own, and running them together changes how the filters behave.
When both plugins are active, WPFilters runs its filters inside SearchWP’s own search instead of a separate WordPress query.
Here’s what that gets you:
- Relevance ranking stays intact. Filters narrow SearchWP’s results without reshuffling them. The best match stays at the top of the filtered list.
- Filters reflect everything SearchWP finds. The filter options come from SearchWP’s full set of results. That includes posts SearchWP matched through custom fields or document content you’ve added to your engine.
- A smarter keyword filter. The WPFilters Search element runs through SearchWP. Keywords typed into it get SearchWP’s relevance ranking instead of WordPress’s default search.
- Filters carry over to more results. When visitors load more results on SearchWP’s results page, the extra results keep the same filters. Visitors never see filtered and unfiltered results mixed together.
Since you’ve already installed both plugins and created a filter in Methods 1 and 2, you’re only a few steps away from the combined setup.
Step 1: Turn On the WPFilters Integration
To start, go to SearchWP » Templates and open the results template your search form uses.

Next, scroll down to the ‘Custom Styling’ section, find WPFilters Integration, and turn on Enable WPFilters.

Note: If the Enable WPFilters toggle is greyed out, update WPFilters to the latest version first.
After that, click Save to keep your template changes. For more details, you can see that the Search Templates documentation covers every other styling option.

Now, go to SearchWP » Search Forms and open the search form you created in Method 1.
Set Results Page to SearchWP, then make sure the Target Page field that appears is set to SearchWP Default and the Template dropdown is set to the template where you turned on Enable WPFilters.

Once that’s done, click Save on the form.
Step 2: Add Filters to the SearchWP Results Sidebar
With the integration turned on, go to Appearance » Widgets.
You’ll find two new widget areas there: SearchWP Results Left Sidebar and SearchWP Results Right Sidebar.

Open the side you’d like the filters on, add a WPFilters Element block, and choose your filter.

Then, click Update to save your widgets.

For a deeper walkthrough with more filter ideas, see our guide on adding a filter sidebar to WordPress search results.
Step 3: Test the Combined Setup
Now, run a search from your Advanced Search form, then tick a category in the results sidebar.
On our demo site, a search for “chicken” kept the best-matching recipe at the top after we filtered to Dinner, in the same spot it held before filtering.
Next, we searched for an ingredient that only appears in a recipe’s custom field, which we’d added to the engine with Add/Remove Attributes, and that recipe still showed up in the filtered results.

That’s it! Visitors can now narrow their search on the form, filter the results page, and still get the most relevant match at the top.
Frequently Asked Questions
1. Can I add filters to WordPress search without a plugin?
You can add filters with custom code, but it takes some PHP work.
Developers can use the pre_get_posts hook to change the search query and then build their own filter form to go with it.
A plugin like SearchWP or WPFilters gives you the same result without writing or maintaining any code.
2. What’s the difference between SearchWP’s Advanced Search filters and WPFilters?
SearchWP’s Advanced Search filters sit on the search form and narrow the search before it runs, by post type, author, or tag.
WPFilters adds filters beside the results, so visitors narrow the list after it loads, using categories, tags, custom fields, and more.
3. Do I need SearchWP to use WPFilters?
WPFilters works on its own, so you can add filters to your search results without SearchWP.
When SearchWP is active too, WPFilters runs its filters inside SearchWP’s search, which keeps relevance ranking and makes the keyword filter smarter.
You can buy WPFilters by itself or get it with the SearchWP All Access plan.
4. Will filters change the order of my search results?
Filters won’t reshuffle your results when SearchWP and WPFilters run together.
SearchWP’s relevance ranking still decides the order, so the best match stays at the top of the filtered list.
5. How do I filter WordPress search results by category?
The easiest way is a WPFilters Checkbox element with Categories (category) as its data source, placed next to your search results.
SearchWP also has a Category Search layout theme that adds a category dropdown to the search form itself, which we cover in our guide on adding search by category in WordPress.
What’s Next…
You’ve now seen three ways to add filters to WordPress search, from a quick Advanced Search form to a full filter sidebar powered by SearchWP and WPFilters together.
You may also want to see our guides on how to customize the WordPress search results page and how to filter by multiple taxonomies in WordPress.
Ready to help visitors find exactly what they’re looking for? You can get started with SearchWP here, backed by our 14-day money-back guarantee.


