Support Forums

Looking for support? You can access the support system via your account.

Forums Forums General Filter not saving search term on search.php

Viewing 4 posts - 1 through 4 (of 4 total)
  • Joey
    #245486

    Hello,

    I’m running Search and Filter and its going working perfect on the normal pages with the shortcodes. I just have a problem with the integration of the regular search function from WordPress.

    The normal search function is making an url like: ?s=Example+Search

    When I add with the widget a filter to the search.php page, the filter is working but not saving the search term. How to fix this?

    Trevor Moderator
    #245571

    If you want that search to send the term to our form … you would use a rewrite of the standard WP search to make it an S&F search, and make sure that, on the search results page, our form has a search box also. There is an example here (this 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

    Joey
    #245627

    Thanks Trevor, good solution. Works like a charm.

    Trevor Moderator
    #245634

    Thanks for getting back to me. I will close this thread for now.

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

The topic ‘Filter not saving search term on search.php’ is closed to new replies.