Forums Forums Search & Filter Pro Site wide search

Viewing 6 posts - 1 through 6 (of 6 total)
  • Trevor
    #49605

    Q. I would like to know if I can use this plugin for a site wide search, rather than just specific to a post type.
    A. Yes, you simply check all post types you want it to include.

    Q. How would I get the search term to be posted to the filters on the search page?
    A. Whilst with a lot of hacking it might be possible to have a search box on (say) the home page, send results to the search results page, and for the S&F form to them pick that up, it is not easy. Better to make a search form in S&F as just the search box on the home page (with Relevanssi support enabled) and use that to send the search string to the search results page, where another more complex S&F form can pick up the search term.

    Q. Also is it possible to build a filter form but move the search box to another area on the page?
    A. I am unsure what you mean.

    Anonymous
    #49644

    Thanks for getting back to me,

    With regards to my question about the search term being posted to the filters on the search page, could you give me an example of how i would do this? specifically how i would send the term from one form and then to be picked up by another?

    Thanks again

    Trevor
    #49645

    Let us say that I had made 2 forms; ID #1 and ID #2

    Id #1 is a simple search field and is set As an Archive and sends the search to the results page. It does this as a get query in the url, just as a normal WP search would, but the format is slightly different.

    The result page has form ID#2 on it. That also has a search field, plus many other fields. It also shows the results. ID#2 form has the same page as its results page. As the page opens, ID#2 detects the search term in the url and applies this both to the form (the searched for term would be in the search field) and to the results.

    Anonymous
    #49665

    Great I understand.

    I think i’ve nearly got this working.

    Last few questions

    Q1. If i have a form with the ID#2, this form has various fields including a search form. is there anyway to use the search field in another area of the page? Or can I use another form which only has a search field on the same page.

    Q2. I’m trying to set up pagination on the search page using pagenavi, but can’t seem to get it to work? are there some special parameter that i have to declare?

    Thank you

    Trevor
    #49667

    You could put a search box elsewhere on the page, but using it would clear any parameters in the other form that had already been set.

    Does the form setup require you to specify the class used for pagination, and if you look at the page, does it use the same class as shown by default in the form .pagination a?

Viewing 6 posts - 1 through 6 (of 6 total)