• reno

    (@reno)


    Hi There!

    I have made the switch from MT to WP and am very happy with the move.

    I have been making some additions to my site which is functioning
    (http://www.tangentmobile.com/).

    The problem is that the search form is not serving up any results but rather just the post listings. It was working earlier so I am unsure if a plugin has broken the search.
    I am using the MinimaPlus theme (which has no search.php). Plugins using are:
    WP Admin Bar, Gravatar, spell check, image browser, wp mobile edition, wp plugin mgr and cust post listing.

    I modified the sidebar.php but left the search unchanged. Here is a sample snipet below.

    (In Sidebar.php)
    <h2 class=”sidebar-title”>Search: Blog</h2>
    <form style=”padding: 0px; margin-top: 0px; margin-bottom: 0px;” id=”searchform” method=”get” action=”<?php bloginfo(‘url’); ?>”>
    <p style=”padding: 0px; margin-top: 0px; margin-bottom: 0px;”><input type=”text” class=”input” name=”s” id=”search” alt=”Search” size=”15″ />
    <input name=”submit” type=”submit” tabindex=”5″ value=”<?php _e(‘Go!’); ?>” />
    </form>

    any thoughts as to why this is occuring? Possible workarounds or fixes? Obviously search is very important. Any help would be greatly appreciated.

    Reno

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your action is wrong.

    Try something like (this is the default search form):

    <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>

    Thread Starter reno

    (@reno)

    Hey, this is great! Thank you very much. It did the trick!

    No prob. Glad it works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search Form Error (Sidebar) Not Returning Results’ is closed to new replies.