Forums Forums Search & Filter Pro Getting both Search and Filter Pro and default WP search to use same results

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #251511

    I want my Search and Filter Pro results and my “normal” wordpress search to both use the same results page. I cannot figure out how to do this. I think I can either:

    1) Magically change the default WP search to use my new Search and Filter Pro results template when someone submits on that default form. But I’m unsure how to do that…

    2) make Search and Filter Pro use my default results template in WP… but again I’m unsure how to do that.

    What is the best and easiest way to get these aligned you think?

    Trevor
    #251518

    You need to decide where you want to send the search (either a page with a slug or not), and use a WordPress rewrite in your child theme functions.php file. Our form must have a search box in it it to ‘receive’ the search term from the theme search.

    There is an example here (the site shown uses a slug name for the search results page, which looks nicer):

    https://support.searchandfilter.com/forums/topic/using-default-wp-search-bar-to-show-sf-results-page/#post-243811

    Here there is an example of one that doesn’t use a slug:

    https://support.searchandfilter.com/forums/topic/how-to-maintain-search-string-while-filtering/#post-205209

    NOTE: If both our search form and the theme search are on the same page, and that is the results page, the two forms will not ‘talk’ to each other.

    Anonymous
    #251536

    Ahhh ok I understand. So I used that PHP snippet, and now my default WP results display on my custom Page with a shortcode. And my Search and Filter Pro results also display on this same Page of results… so this all works great.

    But I have a big problem it seems… no matter what search query I deliver, the results appear to always display all the posts on my site. So if I search for “Starbucks” on either the default WP form or the Search and Filter Pro form, they both return all results on my site. But I have no posts containing “Starbucks”… so why does it always return everything? And when I search for something weird like “jhbgUTuygv” it also always returns everything. i’m sure there is something small I am missing to fix this?

    Anonymous
    #251558
    This reply has been marked as private.
    Trevor
    #251632
    This reply has been marked as private.
    Anonymous
    #251723

    Ahhh, that fixed it 🙂 I actually already have a Relevanassi plugin — I bought one a year ago but it failed to work correctly and Mikko was unable to help, so i stopped using it. So I just installed it on this new site and all works well 🙂

    Thank you so much for your great support!

    Trevor
    #251727

    Thanks for letting me know. I will close this thread for now.

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