This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Home Search using ?phrase= instead of ?s=

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Home Search using ?phrase= instead of ?s=

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11135
    tarragontarragon
    Participant

    – Using Ajax Search Pro to replace default search in Navigation header.

    Issue Replication:
    1. Type acbi in the searchbox and press enter. URL up top uses parameter of ?phrase=
    2. Go to any other page Type acbi in the searchbox and press enter. URL uses ?s=
    3. ?s= returns results page while phrase= does not (it refreshes page).
    4. Summary .. Search function in global header is using a bad parameter in the url for producing the search results page

    Attached is a screenshot of the nav-search.php file in my theme that is replacing the input field with the wpdream shortcode.

    For debugging purposes
    – it is in main theme (not child)
    – I also inserted the wpdream shortcode in a row below the main search header to show that it has different reactions.

    I have been going back and forth trying to determine if it is theme or plugin related. Removing the shortcode from nav-search.php therefore reverting back to default search works properly using s= .. so I thought I would start here.. any help you can provide would be greatly appreciated. I have been banging my head against the wall.

    Laura

    #11163
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Laura,

    Looking at your screenshot I can see there is problem there. The search shortcode is placed within the original FORM element, which causes invalid HTML, as the plugin outputs another form as well. So it’s almost correct, just comment out the opening and closing FORM tags above and below the search shortcode: http://i.imgur.com/gZKObq2.png

    Unfortunately HTML markup does not allow multiple form elements embedded within each other.

    #11184
    tarragontarragon
    Participant

    Oh my goodness… can you hear the forehead slap from where you are? Thank you so much!!!! This search is amazing. I wish I could take the results and create my own results page (like a search results widget). Thanks again!

    #11197
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Home Search using ?phrase= instead of ?s=’ is closed to new replies.