• 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:
    https://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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    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'));
    ?>
    Thread Starter holling

    (@holling)

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

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Search Engine] Searching from the results page’ is closed to new replies.