Professional Documents
Culture Documents
Search forms help visitors find the content on your website. It makes content discoverability
easy, which in fact boosts user experience on your website.
WIN A MACBOOK AIR THIS
In this tutorial, we’ll show how BLACK FRIDAY!
you can easily create a custom WordPress search form in just
a few steps. CLICK TO ENTER NOW!
13 21 45 34
DAYS HOURS MINUTES SECONDS
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 1/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
Search is one of the primary ways visitors navigate the Internet. Visitors who find what they
need quickly are more likely to stay on your site. Visitors who stick around can then join
your email list, purchase a product, or take some other step in your sales funnel.
Unfortunately, the regular search function on WordPress only searches post titles and
content. Custom fields, product details, and other important information are completely
ignored. The default search function also can’t search by category and subcategory.
All of this other post information could help your visitors find their way through your site
better and reduce your bounce rate. So how do we get this data into WordPress search?
The solution is to create a custom search form. We’ll show you how in the next section.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 2/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
SearchWP plugin replaces the default WordPress search widget and easily integrates with
☰
popular themes and page builders without any extra effort needed.
It’s the most advanced search plugin available, and more than 30,000 business owners use
SearchWP on their websites.
Here are some of the vital features that make SearchWP stand out from the competition:
Live Search Results: Live search results make it easier to see all the matching results
in the same place without navigating to a different search results page.
Custom Fields Support: You can search for the matching results within custom fields
missing in the default WordPress search widget.
Search Algorithm: Create a customizable search engine that displays results based
on your inclusion and exclusion rules.
Search Analytics and insights: Get complete access to the analytics reports and
check what visitors search for.
Let’s get started with the actual steps to add a custom WordPress search form.
For that, you need to visit the plugin pricing page and signup for an account. SearchWP is
available in three different pricing plans.
WIN A MACBOOK AIR THIS
BLACK FRIDAY!
CLICK TO ENTER NOW!
13 21 45 34
DAYS HOURS MINUTES SECONDS
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 3/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
We’ll be opting for the SearchWP Pro plan because it unlocks many powerful extension
plugins.
Once you select the plan, go ahead and complete the purchase process.
Next, log in to your SearchWP account and click on Download SearchWP. Now you can
install the plugin on your website and activate it.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 4/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 5/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
SearchWP plugin provides shortcodes for adding search forms on your website.
☰
Shortcodes simplify adding a search form, and anyone without technical knowledge can
easily follow this method.
You can download the extension from your account by going to the Extensions menu.
Now, you can install and activate the extension plugin like installing any other plugin.
That’s it.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 6/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
SearchWP allows you to create a customizable search engine. You’re in complete control to
☰
display the search results and even rank them in a specific order.
Navigate to the SearchWP menu » Settings » Engines and click on the Add New button.
This will create a new search engine called supplemental. You can easily change the name
by going to Sources & Settings.
Here, you can select the sources like posts, pages, custom post types, taxonomies,
comments, and so on. SearchWP will try finding the matching results in these places
whenever a visitor searches for something.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 7/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
There’s also something called Keywords Stems, which is selected by default. Keyword
Stems look for word matching results even if the exact words are not found on your
website.
You can change the search engine name by entering your preferred name in the Engine
label field. We’ll keep it untouched for the sake of this tutorial.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 8/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
Next, we need to specify the attributes of your search engine. Attributes refer to the title of
a post, excerpt, slug, and the content part.
Go ahead and click on the Add/Remove Attributes button. It will open a popup wherein
you can check the post attributes.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 9/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
If you want to add some specific search rules, you can use the Edit Rules feature. This
feature helps you determine the inclusion and exclusion rules for search terms.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 10/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
While setting the conditions for search results, you might have noticed the sliders available
in the settings. These sliders set the search relevancy and display results as per the
relevancy range.
The last step is to add the search form shortcode to your website.
WIN A MACBOOK AIR THIS
BLACK FRIDAY!
You can add the search code within posts, pages, navigation menu, and sidebar.
CLICK TO ENTER NOW!
13 21 45 34
DAYS HOURS MINUTES SECONDS
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 11/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
Open the post where you want to add the search form. Click on the + Add icon to add an
HTML block.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 12/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
Open the post, and you should see the newly added search form.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 13/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
That’s it.
☰
Since SearchWP offers plenty of extension plugins, you can check more details about the
integrations and easily extend the core functionality of the search form.
We hope you liked this easy to follow tutorial. If you did, don’t forget to check the below
articles to improve the search features on your business website.
What are you waiting for? Get started with SearchWP today!
If you liked this tutorial, follow us on Facebook and Twitter for more free WordPress
tutorials.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 14/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
DOWNLOAD NOW
Add a Comment
We're glad you have chosen to leave a comment. Please keep in mind that all comments
are moderated according to our privacy policy, and all links are nofollow. Do NOT use
keywords in the name field. Let's have a personal and meaningful conversation.
Your Comment
*
Your Best Email Address *
WIN A MACBOOK AIR THIS
Save my name, email, and website
BLACKin thisFRIDAY!
browser for the next time I comment.
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 15/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
Yes, I'm committed to learning how to grow my lists, leads and sales!
SUBSCRIBE
WIN A MACBOOK AIR NOW
THIS
BLACK FRIDAY!
CLICK TO ENTER NOW!
13 21 45 34
Connect With Us DAYS HOURS MINUTES SECONDS
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 16/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
☰
Blog Topics
A/B Testing
Announcements
Case Studies
Content Marketing
eCommerce
Email Marketing
Lead Generation
Tutorials
WordPress
Popular Posts
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 17/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
Search …
Company
University
Press
Testimonials
About
Contact
Blog
Affiliates
Careers
WIN A MACBOOK AIR THIS
BLACK FRIDAY!
CLICK TO ENTER NOW!
Top Features 13 21 45 34
DAYS HOURS MINUTES SECONDS
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 18/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
Lightbox Popup
Exit-Intent® Technology ☰
Floating Bar
Inline Forms
A/B Testing
Conversion Analytics
Yes / No Forms
OnSite Retargeting®
MonsterLinks™
MonsterEffects™
Page-Level Targeting
Geo-Location Targeting
InactivitySensor™
Helpful Links
Login
Support
Documentation
Product Tour
Integrations
Popup Examples
OptinMonster Alternatives
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 19/20
11/11/22, 12:14 PM How to Create a Custom WordPress Search Form
OptinMonster®, Exit Intent®, OnSite Retargeting® and OnSite Follow Up Campaign® are registered trademarks of Retyp, LLC. ☰
Our Sites
TrustPulse
WPForms
MonsterInsights
WPBeginner
All In One SEO
IsItWP
SeedProd
WP Mail SMTP
RafflePress
https://optinmonster.com/how-to-create-custom-wordpress-search-form/ 20/20