Search Engine
Searching from the results page (4 posts)

  1. holling
    Posted 4 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:

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




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

  2. Scott Kingsley Clark
    Plugin Author

    Posted 4 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:

    global $wp_styles;
  3. holling
    Posted 4 years ago #

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


    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
    Plugin Author

    Posted 4 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

  • Search Engine
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic