Forums Forums Search & Filter Pro Create same things like at demo site https://demo.searchandfilter.com/movies/

Viewing 7 posts - 1 through 7 (of 7 total)
  • Trevor
    #234544

    Do you prefer the page to be empty, or maybe a message?

    It looks like you are using the Shortcode display results method, in which case you should follow the ‘guide to customising’:

    https://support.searchandfilter.com/documentation/search-filter-pro/search-results/using-a-shortcode/

    Once you have a copy of the results.php file in a search-filter sub-folder of your theme, you can edit that file, like this (leave the PHP comments at the top outside and before this code):

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(3204)->current_query();
    if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) {
      echo '<div>Nothing to see here folks!</div>'; 
    } else {
      // the current resuts.php code here
    }
    Anonymous
    #234594

    Thank You!
    Working perfect.

    Please let me know one more thing:
    How do add categories + taxonomies + tag to main search to be able to search by tag etc. by type.
    Like you can see checboxes working byt I need that in main seatch input.

    Thank you.

    Daniel

    Trevor
    #234606

    These are available here:

    https://www.screencast.com/t/eO08L55fiDjz

    Anonymous
    #237582

    Dear Trevor

    One more thing

    I want to have only one search on site and use it at any category page. I`ve got 7 category for now.
    Please let me know how to use that at each category page.
    At this moment at display results I have to set the filename/path of custom template. I can type only one path.

    f.e.

    http://siedzieje.7wishes.pl/category/aktywnie/
    http://siedzieje.7wishes.pl/category/atrakcje/
    http://siedzieje.7wishes.pl/category/hobby/
    etc.

    Thank you!
    Daniel

    Trevor
    #237587

    Are you now using the ‘As an Archive method?

    Are you searching (or could you) search only one Post Type (such as ‘Posts’, but not ‘Posts’ and ‘Pages’)?

    The pages you showed me appear to be ‘Category’ archive pages. Is this correct?

    Anonymous
    #237602

    1. as an archive -> true
    2. as blog posts only
    3. category.php

    Trevor
    #237612

    Maybe the method described in this post would help one form to work on any Category page:

    https://support.searchandfilter.com/forums/topic/urgent-custom-search-pages/#post-236735

    Note, the ID number in the CSS would need to change to match that of your form.

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