Forums Forums Search & Filter Pro Adding Filters to Search.php

Viewing 10 posts - 1 through 10 (of 12 total)
  • Anonymous
    #235117

    I would like to add the filters from the form to the results page so users don’t have to click back to perform a new search. Currently, the search bar is the only tool they can use after they perform an initial search. Thanks.

    Anonymous
    #235125

    This is for the “archive” display results

    Anonymous
    #235143

    Also, is there a way to make the category and tag filters use the “portfolio type” instead of the “post type?”

    Trevor
    #235162

    Are you able to send me a live link/URL to your search page so I can take a look? If you are searching a Portfolio post type, then the categories and tags will be Taxonomies, and not actually Category or Tag, so, in the Form UI, use one of more Taxonomy fields.

    You may have to create a custom version of the theme template you are using to display the result, and add the form inside that using the PHP do_shortcode function. This is covered here:

    https://searchandfilter.com/documentation/getting-started/display-search-form/#as-a-shortcode

    Anonymous
    #235240
    Trevor
    #235309

    This appears to be Avada theme, yes? I would suggest setting up a single dedicated page for the display of the posts and results. I can see one setting that needs to be OFF, which you can only set on or off if you temporarily change the display results method to Post Type Archive, and it is the ‘Enable filtering on Taxonomy Archives’ setting. To confirm, that setting must be OFF.

    I would suggest that you use this integration method when using the Avada theme:

    https://searchandfilter.com/documentation/3rd-party/post-grid/

    Anonymous
    #235339

    Great. This is a lot of help. This is Avada. I made the suggested changes but the excerpts aren’t showing. What can I do to make them show? Also, can you tell me how I can get search and filters to index/search the portfolio instead of the posts?

    Trevor
    #235421
    This reply has been marked as private.
    Anonymous
    #235434

    Ok. I figured out the answers to my previous questions. My next question is how do I change how the fields are aligned? Right now the fields are stacked top to bottom. I would like them to be horizontal rather than vertical.

    Trevor
    #235473

    The CSS at the bottom of this page should help start you off:

    https://searchandfilter.com/documentation/getting-started/display-search-form/

Viewing 10 posts - 1 through 10 (of 12 total)