Wordpress search not working. How to fix in 5 min.

WordPress search not working- How to fix in 5 minutes!

Are you showing the right products, to the right shoppers, at the right time? Contact us to know more.

Rate this article

Share this article


In this article, we will discuss how to fix the WordPress search not working issue without writing any code. We will go over them in the most likely problem order. Keep skipping to the next block if you don’t have a particular type of problem.

wordpress search not working. How to fix in 5 min.

Solve your WordPress search not working issue with the WP Fastest site search plugin

This is one of the easiest ways to fix this issue. By replacing the default WordPress search (which isn’t that great anyway) with a fast AJAX search will take care of most of the issues in itself.

WP Fastest Site Search

Common WordPress search, not working issues.

Let’s face it- the default WordPress search is not great. If your WordPress search is not working, it could manifest in one of the following ways-

  1. The WordPress search box is not displaying on your site.
  2. The WordPress search box is not returning results.
  3. WordPress search results page is not loading after the user entered a search query.
  4. WordPress search is not returning certain posts in search results.

    Add great search to your WordPress site @ 9 USD per month


     WordPress search results are empty after installing a theme.

    1. Do you see a 404 result or “no results found” page when you search for anything?
    2. Are you missing certain types of pages? Say you are only able to see blogs on your searches but not your pages?
    3. Did you install a new theme recently?

    To validate this, switch to the default theme to see if the search starts working fine.  If so, please proceed with the steps below to fix your theme.

    Though themes are supposed to not interfere with the functionality of WordPress search, some theme developers go overboard with their coding skills.  I have seen this happen in many themes. Let’s undo this interference.  Look for pre_get_posts

    in  add_filter calls.  More like, add_filter('pre_get_posts', some_function)

    you can comment this line off so that the search functionality is not interfered with by the theme.  You will be finding the theme files under wp-content -> themes -> theme_name -> (typically named functions) .  You might have to use an FTP or file manager to do this change.

    WordPress plugin conflict

    Some WordPress plugins allow you to change the way search works or the way the results are displayed.  For instance., “The post Grid” is a plugin that can change the display styling of results.  If you have plugins like this, make sure you have configured it right.  A bad configuration can result in a defunct Search.

    WordPress search is not bringing some expected content.

    This is a ranking + full content issue.  Jump to a solution for this issue.

    WordPress search not typo tolerant.

    WordPress is using MySQL for its search.  Which by nature is limited.  Jump to fix this limitation.

    Search not fast

    Google does not use PHP to build its search.  PHP though a great language, has its limitations.  For a faster search, you got to go to native hosted solutions.  It will cost you a little money, but your users would thank you for that.  Fix your speed now.

    Search on every keystroke/Ajax/live search.

    Get it here.

    Using a search plugin to fix your WordPress search not working issue

    1. Install WP fastest site search plugin from WordPress plugin store.wordpress search not working
    2. Go to https://cse.expertrec.com/newuser?platform=wordpress.
    3. Enter your WordPress website URL and click on next->wordpress search not working
    4. The crawl will start in the background.wordpress search not working
    5. Login to your WordPress admin panel.
    6. In your left panel, you must be able to see Expertrec’s WordPress plugin Click on that. wordpress search not working
    7. Get your site ID (or) API key from your Expertrec control panel ( here ).wordpress search not working
    8. Copy-paste your site ID in your WordPress control panel and click on save changes.wordpress search not working
    9. Make sure you have upgraded to a paid plan before 15 days of free trial. (Price begins at 9 USD per month)
    10. That’s it! Your brand new WordPress search is up and running! Here are snapshots of the search form and the search results pages.
    11. Snapshot of your WordPress search autocomplete.wordpress search not working
    12. Snapshot of your WordPress search results page.wordpress search not working
    13. Snapshot of your WordPress search spelling error tolerance feature.wordpress search not working
    14. If the plugin method didn’t work, you can add the code from https://cse.expertrec.com/csedashboard/home/code and add it to your WordPress PHP code. Please note that you have to add the code <ci-search></ci-search> separately to a place where you want the search box to appear ( Tip!- Contact our support team to get this done). There might be a one-time fee for integration.
      (function() {
      var id = 'your_api_key';
      var ci_search = document.createElement('script');
      ci_search.type = 'text/javascript';
      ci_search.async = true;
      ci_search.src = 'https://cse.expertrec.com/api/js/ci_common.js?id=' + id;
      var s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(ci_search, s);

      wordpress search not working

    Adding search to the sidebar

    If you want the search box on your wordpress sidebar, Go to Appearance-> Widgets->click on “custom html” -> Add widget and add the code <ci-search></ci-search>wordpress search not working


    How to Remove WordPress Search?

    Most themes of WordPress come with an in-built search feature. It is generally present in the header portion of the theme template. To remove the search bar in WordPress, 

    1. If the search is bundled with a WordPress widget, then it can be removed easily by removing the search widget. 
    2. Other ways it can be done is by hiding the search field with CSS or using a disabled search plugin. 
    3. If the search bar isn’t a widget then, it generally uses the “get_search_form” WordPress hook. Wherever it appears in the code of any template files, theme search functionality that is controlled by the searchform.php file, will be loaded by WordPress. 

    However, deleting the file won’t remove the search bar. Disabling the search login will help to remove the search panel from the front end but work for the admin.

    How do I Enable Search on WordPress?

    Mostly, WordPress has an in-built search bar. In case a theme doesn’t offer it, or you want to customize the Search Bar, it can be done easily. WordPress allows you to add a search bar by various methods. Those are as follows.

    • From the Widget Panel : 

    The easiest way to enable search is by heading to WordPress Widgets. 

    1. First, go to the Admin Dashboard.
    2. Then, go to Appearance, and select Widgets from there. 
    3. Here you will see a widget named Search under the menu of Available Widgets.
    4. Click on it, and then select the Add Widget button.
    5. You can add a title if required.
    6. The search Widget is added successfully to your site.

    How To Improve WordPress Search?

    To improve WordPress search, which will eventually help to improve the visitor experience, you can follow a few strategies that can help you.

    • Add faceted search features
    • Switching to more powerful algorithm may help to get relevant search results to your visitors.
    • Use an upgraded search tool that is designed for your site in case you have a multisite 
    • Make sure to provide better user experience to your users.

    Add great search to your wordpress site at 9 USD per month


    Leave a Reply

    Avatar placeholder

    Your email address will not be published.