WordPress.org

Ready to get started?Download WordPress

Forums

Search Engine
Searching from the results page (4 posts)

  1. holling
    Member
    Posted 3 years ago #

    Hi Scott -

    Looking good with one exception, which I suspect may be a bug. I perform a search, then try to search from the field above the search results and it takes me to my homepage. The URL string shows a ?q=<search term> instead of a ?s=<search term>.

    You can see it here:
    http://www.instituteofplay.org/search-test/

    (try searching for 'salen' )

    Eventually I'll drop the search box into a toolbar at the top of all pages, so a workaround might be to hide the in-page search box.

    Thoughts?

    Thanks!

    Bob

    ps. this site is making heavy use of PODS cms, btw.

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 3 years ago #

    I'm doing a wp_style_is('search-engine') to determine if 'q' or 's' should be used. If it's true, 's' will be used. Try putting in PHP somewhere on the search page template this:

    <?php
    global $wp_styles;
    var_dump($wp_styles->query('search-engine','queue'));
    ?>
  3. holling
    Member
    Posted 3 years ago #

    Looks like that's outputting false, which matches your explanation. Which is tied to an earlier question about this line:

    define('SEARCH_ENGINE_CUSTOM_CSS',true);

    When I comment out this line in my wp-config file, the search works correctly (and the $wp_styles bool is true.

    Next question: any thoughts besides editing the plugin (which we'd rather not do, of course)?

  4. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 3 years ago #

    Ah gotcha, will put out an update asap then, that shouldn't have been the case!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic