This guide walks you through fixing search function problems on your WordPress website.
Check Your Search Widget or Form
First, make sure your search box is properly set up:
- Log into your WordPress admin dashboard
- Go to Appearance → Widgets
- Look for a "Search" widget in your sidebar or footer area
- If there's no search widget, drag one from the Available Widgets section to your desired location
- Save the changes and test your search function
If you're using a custom search form, check that it's pointing to the correct search page URL (usually yoursite.com/?s=).
Clear Any Caching Issues
Caching can sometimes prevent search results from updating properly:
- If you have a caching plugin installed, clear the cache completely
- Check if your search results appear after clearing the cache
- Test searching for content you know exists on your site
If you're not sure about caching, try viewing your site in an incognito/private browser window.
Check Your Search Results Page
Your theme might have issues with displaying search results:
- Go to your website and try searching for something simple like "the" or "and"
- Look at the search results page that appears
- If you see a blank page or error, the issue is with your search results template
- Try switching to a default WordPress theme temporarily (Twenty Twenty-Three or similar) to test if search works
If search works with the default theme, your current theme has a problem with its search template.
Verify Your Content Is Searchable
Make sure your pages and posts are set to be searchable:
- Go to Posts → All Posts in your WordPress admin
- Edit a post that should appear in search results
- In the post editor, look for "Visibility" settings (usually in the sidebar)
- Make sure the post is set to "Public" not "Private"
- Check that "Allow search engines to index this post" is enabled
Repeat this check for your pages under Pages → All Pages.
Test for Plugin Conflicts
Sometimes plugins can interfere with WordPress search:
- Go to Plugins → Installed Plugins
- Deactivate all plugins temporarily
- Test your search function
- If search works, reactivate plugins one by one to find the problem plugin
- Once you find the problematic plugin, either remove it or contact the plugin developer
For guidance on plugin issues, see our plugin conflicts troubleshooting guide.
Check Database Connection
If none of the above steps work, you might have a database issue:
- Try accessing other parts of your website admin
- Check if you can create new posts or edit existing content
- If you're getting database errors, this needs immediate attention
Database problems require technical intervention - see our database connection errors guide for more details.
If you're still stuck after trying these steps, contact Web60 support for assistance. Include details about when the search stopped working and any recent changes you made to your website.
FAQ
Q: Why does my search return no results even though I have content?
A: This usually happens when your search widget isn't properly configured or your content isn't set to "Public" visibility. Check that your posts and pages are published and publicly visible.
Q: My search works for posts but not pages - why?
A: Some themes or search configurations only search through posts by default. You may need a plugin or theme customization to include pages in search results.
Q: Can I exclude certain pages from appearing in search results?
A: Yes, you can set individual pages to "Private" or use plugins that let you exclude specific content from search results.
Q: Why does my search box disappear after I update my theme?
A: Theme updates can reset widget configurations. Check your Appearance → Widgets section and re-add your search widget if needed.
Q: Is it normal for search to be slow on my website?
A: Basic WordPress search can be slow on sites with lots of content. If speed is an issue, consider search plugins that improve performance.
Q: My search results look messy or broken - how do I fix the layout?
A: This is usually a theme template issue. Try switching to a default WordPress theme temporarily to see if the problem persists.
Q: Can I customise what appears in my search results?
A: Yes, but this requires theme customization or plugins. The default search shows post titles, excerpts, and dates.
Last updated: 1 March 2026