Filtering subset of results generated by global search

Forums › Forums › Search & Filter Pro › Filtering subset of results generated by global search

Tagged: ,

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #35319

    Hi Ross

    Hope you’re well. I’ve just bought a single-site licence and have a question (I see a couple of people have asked this in the past – but I couldn’t see a definitive public answer.)

    I want to have just a search box on a page, with the results showing on an advanced search page that includes various other filters based on Postmeta (using the ACF plugin). I’ve set this up successfully: the results from the global keyword search display on the advanced search page.

    However, I want the Postmeta filters on the advanced search page to filter only the subset of results generated by the keyword search on the first page. But when I apply filters, the search appears to be searching *all* posts again, not the subset just generated.

    Is there a way around this?

    Thanks in advance,

    Howard.

    Anonymous
    #35333

    A thought – would a potential solution be to get the search query from the first/global form ID, and echo that in the free text search box in the ‘advanced’ form? Filtering on the ‘advanced’ search page would then be on both the initial search term + postmeta (my intented outcome).

    Is this recommended/easily achieved?

    Thanks again,

    Howard.

    Anonymous
    #35402

    Hi Ross/team

    You can delete this/mark as resolved. After some pondering, it struck me that a much neater solution would be simply to have one form, and use CSS to hide all the form elements apart from the search box on the first page. Job done!

    Thanks – and congrats on a v impressive plugin!

    Howard.

    Ross Moderator
    #35490

    Thanks for the updates Howard and glad you got it working 😀

Viewing 4 posts – 1 through 4 (of 4 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.