• Hello,

    At issue:

    https://www.cstina.com/blog

    Problem:

    Search query returns “No Results.”

    I’m using the default WP Search form.

    Should I change this string of searchform.php?

    <form method=”get” id=”searchform” action=”<?php bloginfo(‘home’); ?>/”>

    Or, this one?

    <div><input type=”text” value=”<?php echo wp_specialchars($s, 1); ?>” name=”s” id=”s” />

    Or, something else entirely?

    I’m lost.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The action attribute is most important for configuring a search to occur *correctly*. Visiting your site a search on ‘search’ does come up with your post on the topic. Working now for you as well? (Keep in mind, you have to have posts on your site in which the search term actually exists.)

    If you’re expecting certain posts to show up and they don’t, you may need the “search-everything” plugin.

    It could also be a plugin that’s not playing nice with the search function. This happened to me with the Event Calendar Plugin. I’ve also heard that Ultimate Tag Warrior causes the search to return nothing even when you well know the words you are searching for exist on the blog.

    Try disabling all your plugins, then perform a search. If it works, it’s a plugin. Activate them one by one, checking your search page (a refresh will do) each time until you find the culprit.

    Thread Starter cstina

    (@cstina)

    Kafkaesqui, thanks so much. I see the issue now. The search terms are producing a result — even though it says “There were no results, better luck next time” in the left margin. Therefore, it must be a theme bug.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP Search Mocks Me. Returning No Results.’ is closed to new replies.