Forums › Forums › Search & Filter Pro › Create same things like at demo site https://demo.searchandfilter.com/movies/
- This topic has 7 replies, 2 voices, and was last updated 4 years, 7 months ago by Trevor.
-
Anonymous(Private) February 21, 2020 at 8:54 am #234537
Hello
I`m trying do to same things like on the demo site.
I need search and category checkboxes.Please let me know why it`s not working properlly?
I create the first search form from here https://searchandfilter.com/documentation/getting-started/creating-your-first-search-form/ and the result is here http://siedzieje.7wishes.pl/Question – why it`s showing all posts at the start?
Please help me
Cheers
DanielTrevor(Private) February 21, 2020 at 9:24 am #234544Do 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’:
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(Private) February 21, 2020 at 2:04 pm #234594Thank 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
Anonymous(Private) March 23, 2020 at 4:14 pm #237582Dear 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!
DanielTrevor(Private) March 23, 2020 at 5:31 pm #237612Maybe 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.
-
AuthorPosts