Default WordPress search matches words. It looks for every word a visitor types in your post titles, excerpts and content, then shows a list of posts.
Visitors do not type keywords. They type questions such as "how do I renew my membership" or "is the clinic open on Saturday". A list of ten posts makes them do the reading. AI search for WordPress makes the search box answer the question instead, from your own pages, posts and PDFs, with a link to the page the answer came from.
iShort answer
Train a SiteGPT chatbot on your sitemap and PDFs. Copy the code from the Search bar card on the Installation page and paste it into a WordPress Custom HTML block. Or add one attribute to your theme's search form, so a question opens the chat with the answer and an empty search still runs WordPress search. For WooCommerce product search, use a product search plugin instead.
Step 1 decides answer quality. Steps 2 to 4 take a few minutes and need no developer.
Train on your content
Give SiteGPT your sitemap, then upload the PDFs your pages link to.
Add the search bar
Paste the Search bar code into a Custom HTML block, or add one attribute to your theme's search form.
Keep or hide the bubble
The bar works alone, or next to the floating chat icon.
Test with real questions
Ask what visitors ask, check the source links, then try an empty search.
Why does default WordPress search miss questions?
WordPress search matches words. It was built to find posts, and it does that job without any setup.
The core query checks three fields: the post title, the excerpt and the content, per the WP_Query source. Each word must appear in one of them. Posts with the words in the title rank first. The result is a list of links.
That design misses four things visitors expect:
- Questions. "Can I bring my dog to the campsite?" needs the words to match. A page titled "Pet policy" may not contain "bring" or "campsite".
- PDFs. Forms, price lists and handbooks uploaded to the media library are not searched by their contents.
- Different wording. A visitor types "refund" and your page says "returns". The search finds nothing.
- An answer. Even a perfect match hands the visitor a list. They still open each post and read.
A visitor who gets zero results, or ten wrong ones, usually leaves or emails your team. Each of those is a question your site already answers somewhere.
What does AI search for WordPress do?
It makes your search box answer the question. SiteGPT has a search bar: a visitor types a question in your site's search box, and the answer opens in the chat with its sources.
The answer comes from the content you give it: your pages and posts, your uploaded PDFs and other files, and connected apps such as Google Drive or Notion. When a fact comes from a web page, the answer links that page. SiteGPT is designed to answer only from your content, and to say so when it does not know.
A visitor types: what documents do I need to register?
Default WordPress search
- Matches the words in titles, excerpts and content
- Returns a list of posts, title matches first
- Does not read PDF contents
- Visitor opens each post to find the answer
SiteGPT search bar
- Reads the question as a question
- Answers in the chat in plain language
- Draws on your pages, posts and PDFs
- Links the pages it used, so the visitor can check
The answer follows every chat rule you set. That includes hand-off to your staff, a lead form, consent and languages. Answers usually come back in the visitor's language. The full category, and how it differs from a results engine, is covered in AI site search.
How do you add AI search to WordPress?
Four steps. Training takes the most time. The WordPress part takes a few minutes and needs no theme edits.
Step 1: Create a chatbot and train it on your content
Create a chatbot in SiteGPT and give it your sitemap. WordPress publishes one at /wp-sitemap.xml by default, and SEO plugins such as Yoast publish their own. The crawl reads every published page and post.
Then upload the PDFs. Forms, fee schedules, handbooks and policies often hold the answers visitors search for, and the crawl alone may not cover them. Uploaded files answer questions, but they never appear as source links. Answers link the web pages they used.
Test ten real questions in the dashboard before you touch WordPress. Take them from your search logs or your inbox. If an answer is weak, fix the content first. How retrieval picks the right passage is explained in what is RAG.
Step 2: Copy the code and add the search bar to WordPress
Open the chatbot's Installation page, go to Embed Options, and find the Search bar card. Select Copy. The code contains your real chatbot ID, so always copy it from the dashboard. You need the Manager role or higher to copy it.
The code centres on one attribute, data-sitegpt-search. Its value is your chatbot ID.
Where you put the attribute decides how the bar behaves. Pick one of two options. Both are in the SiteGPT search bar docs.
Option A: a new search bar in a Custom HTML block. Open the page or template part where the bar should appear, such as your header. Add a Custom HTML block and paste the code. The key line is an empty element:
<div data-sitegpt-search="YOUR_CHATBOT_ID"></div>
SiteGPT draws a search field and a send button inside it, in your chatbot's brand colours. The element must stay empty. The field shows your chatbot's placeholder text in the visitor's language.
If the SiteGPT plugin is installed, paste only that div line. The plugin already loads the chat. Without the plugin, paste the full Search bar code. If WordPress strips the script when you save, keep the div in the block and add the script to your footer with a header and footer code plugin.
Option B: make your theme's existing search form answer. Add the same attribute to the form:
<form role="search" method="get" action="/" data-sitegpt-search="YOUR_CHATBOT_ID">
<input type="search" name="s" placeholder="Search" />
<button type="submit">Search</button>
</form>
Now a question typed in your normal search box opens the chat with the question sent. WordPress search does not run, and the page stays put. If a visitor submits an empty box, WordPress search runs as before.
Most themes print their search form from WordPress itself. A short snippet adds the attribute without editing theme files. Add it through a code snippets plugin such as WPCode:
function sitegpt_search_attribute( $html ) {
return str_replace( '<form ', '<form data-sitegpt-search="YOUR_CHATBOT_ID" ', $html );
}
add_filter( 'get_search_form', 'sitegpt_search_attribute' );
add_filter( 'render_block_core/search', 'sitegpt_search_attribute' );
The first filter covers classic themes. The second covers the Search block in block themes. The chat script still needs to load on the page, through the plugin or the embed code. How to install either is on SiteGPT for WordPress and in how to add a chatbot to WordPress.
| Option | Where | Best when |
|---|---|---|
| A: Custom HTML block | Any page, header or sidebar | You want a separate "Ask a question" bar next to your normal search |
| B: Existing search form | Your theme's search box | You want one box that answers questions and still runs WordPress search when empty |
Step 3: Keep or hide the chat bubble
The Search bar code loads the chat with ?hideBubble=true in the script address. The floating chat icon stays hidden, and the search bar is the only way in. The chat window still opens when a visitor asks a question.
To show the bubble as well, remove that parameter from the script address. Keep it when visitors start conversations on their own, such as on a help center. Hide it when you want one clear entry point in the header.
Step 4: Test it like a visitor
Open the site in a private window. A logged-in admin session and a cached page both hide problems a visitor would hit. Then run four checks:
- Type a real question in the search box. The chat should open with the question sent.
- Read the answer and click a source link. It should land on the page that holds the fact.
- Ask something your content does not cover. The chatbot should give your fallback message instead of guessing.
- Submit an empty search. WordPress search should run as before.
The first question in a session waits for the usual "verify you are human" check in the chat. If the chat cannot open on a page, for example because that page is excluded, your own search box keeps working.
Should you use a search plugin or an AI answer tool?
They solve different jobs. A search plugin improves the list of results. An AI answer tool answers the question in a chat.
Keyword search plugins rebuild WordPress search with better relevance. Relevanssi sorts by relevance, matches partial words, and searches custom fields, tags and comments in its free version. Its Premium version indexes PDF and Office attachments. SearchWP is a premium plugin that can index custom fields, PDF documents, custom post types and WooCommerce products. Neither writes an answer.
Product search plugins handle catalogs. FiboSearch is built for WooCommerce stores, with live search as the shopper types. Product search needs filters, ranking and merchandising, and that is a job for a keyword or product search plugin.
AI answer tools read the question and reply in plain language. SiteGPT answers in the chat from your pages, posts and PDFs, with the source pages linked. Guzli publishes a WordPress plugin with an AI Search Bar mode that swaps the chat bubble for a docked search bar.
Here is what WordPress.org lists for each plugin:
| Tool | Type | WordPress.org active installs | Rating | Last updated |
|---|---|---|---|---|
| Relevanssi | Keyword search | 100,000 | 96% (407 ratings) | 24 Nov 2026 |
| FiboSearch | WooCommerce product search | 100,000 | 98% (1,815 ratings) | 8 Oct 2026 |
| SearchWP Live Ajax Search | Free companion to premium SearchWP | 40,000 | 94% (36 ratings) | 8 Aug 2026 |
| SiteGPT | AI answers in chat, search bar | 70 | No ratings yet | 13 Aug 2026 |
| Guzli | AI chatbot with search bar mode | Fewer than 10 | No ratings yet | 3 Oct 2026 |
SearchWP itself is sold from its own site, so WordPress.org does not list it.
The install counts reflect what each tool is. Relevanssi and FiboSearch run inside WordPress, so every site that uses them installs the plugin.
SiteGPT's plugin only loads a chatbot hosted elsewhere, and the search bar also works by pasting code into a Custom HTML block with no plugin at all. Installs on WordPress.org measure the connector, not the product. The wider plugin picture for chatbots is ranked in best chatbot for WordPress website.
Which approach fits your site?
Pick by what visitors type into your search box today. Your search logs show it. Long phrases with "how", "can I" and "when" are questions. One or two words are keyword lookups.
| Scenario | Best pick | Why |
|---|---|---|
| Visitors type full questions about services, rules or opening hours | SiteGPT search bar | They want one answer with a source, not a list of posts to read. |
| Answers live in PDFs: forms, fee schedules, handbooks | SiteGPT search bar | It answers from uploaded files and links the web pages it used. |
| WooCommerce store with a product catalog | FiboSearch or another product search plugin | Shoppers need live suggestions, filters and ranking across products. |
| Large blog where readers look up topics by keyword | Relevanssi or SearchWP | Better relevance and fuzzy matching improve the list readers want. |
| Mixed traffic of questions and keywords | Both, with Option B | Questions open the chat, and empty searches still reach your results page. |
SiteGPT fits content-heavy WordPress sites: councils, associations, universities and departments, libraries, clinics, documentation and help centers. For more patterns, including an "Ask AI" button and a zero-results fallback, see how to add AI answers to website search. If you are weighing dedicated AI site search platforms, best AI site search tools compares them and SiteGPT vs Cludo covers the public sector case.
On price, SiteGPT Starter is $59 a month billed monthly, or $39 a month billed yearly ($468 a year), with 1,000 pages. Growth is $129 a month billed monthly, or $79 a month billed yearly, with 10,000 pages. The search bar is on every plan, and every plan starts with a 7-day trial (card required).
Have a question about your own setup? Email bhanu@sitegpt.ai. For the bigger picture on making a site answer its visitors, start at AI site search.
Frequently asked questions
Can WordPress search answer questions?
WordPress search does not answer questions by default. It looks for every word you type in post titles, excerpts and content, then lists matching posts with title matches first. It does not read PDFs and it does not write an answer.
To get answers, connect an AI answer tool such as SiteGPT to your search box. The answer opens in a chat, with links to the pages it came from.
How do I add an AI search bar to WordPress?
Train a SiteGPT chatbot on your sitemap and PDFs. Copy the code from the Search bar card on the chatbot's Installation page, then paste it into a Custom HTML block where the bar should go.
If the SiteGPT plugin is installed, paste only the empty div line, because the plugin already loads the chat.
Can I keep my existing WordPress search box?
Yes. Add the data-sitegpt-search attribute to your theme's search form. A question typed there opens the SiteGPT chat with the answer and its sources.
If a visitor submits an empty box, WordPress search runs as before.
Is AI search good for WooCommerce product search?
No. Product search needs filters, ranking and live suggestions across a catalog, so use a product search plugin such as FiboSearch.
An AI answer tool fits sites where visitors ask about content, such as policies, services, documentation and PDFs.
Which WordPress search plugin should I use?
Pick by what visitors type. Relevanssi is free on WordPress.org and improves keyword relevance. SearchWP is a premium option that can index PDFs. FiboSearch handles WooCommerce products.
When visitors type full questions and want one answer, use an AI answer tool such as SiteGPT.
How much does SiteGPT cost for a WordPress site?
Starter is $59 a month billed monthly, or $39 a month billed yearly ($468 a year), with 1 chatbot and 1,000 pages. Growth is $129 a month billed monthly, or $79 a month billed yearly.
The search bar is on every plan. Every plan starts with a 7-day trial, and a card is required to start it.
Sources
- Use SiteGPT as your site search, SiteGPT docs. The attribute, the three placements, empty-search behaviour, hideBubble and the WordPress steps.
- WP_Query source, WordPress core. Default search columns (title, excerpt, content) and title-first ordering.
- Relevanssi, FiboSearch, SearchWP Live Ajax Search, SiteGPT and Guzli, WordPress.org. Installs, ratings and last-updated dates from the plugin information API.
- SearchWP, the vendor's own site. Indexing of custom fields, PDF documents and WooCommerce products.