Search Widget not working?
I have a WordPress site and I made use of the search widget functionality in the sidebar. When I search for “contact” I expected the Contact page to show up in the search result, but it doesn’t. When I changed the page title of “Contact” to “Directions” and searched for “directions”, it showed up in the search result.
Does the search widget allow for searching for tags on the page?
Is “contact” a reserved word in WordPress?
How can I fix the search functionality to be more efficient?
Thank you in advance.
Hi. A few things to check:
Is the “Contact” page you were expecting to show up published and available to the public / anonymous users (instead of being a Draft or password protected)?
Are you using any plugins or themes that modify the search form functionality, or have you customized the search widget at all?
Are you using any caching plugins?
Have you modified the search results page template?
The “Contact” page is published, therefore it should show up in search results but it’s not.
I am using a theme called Nice Hotel, not sure it did modify the search form functionality.
I am not using any caching plugins.
This theme doesn’t have a search results page template, it has a loop function that loops for search results and display them according to pages, post types…
Thanks. One thing you could try is switching back to the default WordPress theme and seeing if you get any different results. I’m inclined to think that’s not where the issue is but it wouldn’t hurt to try it out and see.
I also noted that you’re using an older version of WordPress. Would it be possible to upgrade to the most recent version to see if that improves the situation?
- The topic ‘Search Widget not working?’ is closed to new replies.