WordPress.org

Ready to get started?Download WordPress

Forums

WP Search Mocks Me. Returning No Results. (5 posts)

  1. cstina
    Member
    Posted 6 years ago #

    Hello,

    At issue:

    http://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.

  2. Kafkaesqui

    Posted 6 years ago #

    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.)

  3. nudnik
    Member
    Posted 6 years ago #

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

  4. Joni
    Member
    Posted 6 years ago #

    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.

  5. cstina
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic