Forums › Forums › Search & Filter Pro › no terms are showing in dropdown fields
- This topic has 18 replies, 2 voices, and was last updated 5 years, 8 months ago by Trevor.
-
Anonymous(Private) March 8, 2019 at 4:48 pm #204418
Hello,
I bought yesterday your plugin and tried to configure it the best I could understand.
I set two taxonomies as dropdown fields and there are around 50 posts saved in their terms, but no terms are showing like there where no posts. I selected the option “Hide empty terms” because I want it, of course if I unselected it, I see the full list of terms in the dropdown.
Second thing: the search form is not having any style at all. I had to assign a background color to the submit button because i could not see it, since input fields are normally white. It is a normal state of things or do I miss some link to plugin css?
thank you for help!
https://www.dev.socage.it/products/Trevor(Private) March 11, 2019 at 12:31 pm #204620As you are using our shortcode method, the guide for customization is here:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
Note that in your plugin templates folder are TWO templates. If you are using infinite scroll, use that one there, but rename it to results.php, as the structure required is different.
Ajax will only work if the HTML element jQuery id/class name is in this file, and NOT hidden inside an included file.
Anonymous(Private) March 11, 2019 at 1:43 pm #204638Hello Trevor, yes I used your infinite scroll template and now I named it results.php (before it had a different name and I don’t think it made any difference). Anyway the submit button still does not work, can you help me please?
https://www.dev.socage.it/products/I had a look at your documentation which is quite wide and most of it is difficult to understand for my background knowledge. I’ll be very grateful if you can you help me to find the page I need to try hiding first results.
Finally I don’t want to use Ajax, and anywhere in the setting I disabled it.One problem less.
Thank you so much for your help!Trevor(Private) March 11, 2019 at 1:55 pm #204644To hide first results.
You now have a block of code in the results.php file (Ignoring the initial comments).
You need to add/wrap some code around the code you have, like this:
global $searchandfilter; $sf_current_query = $searchandfilter->get(36613)->current_query(); if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) { echo '<div>Nothing to see here folks!</div>'; } else { // your current results.php code here }
… where the ID number will need to be changed to match your form ID
Anonymous(Private) March 11, 2019 at 2:40 pm #204652many many thanks, it works like a charm! 🙂
the submit button miss to be fixed. If you try to select VANS, And then submit, you’ll se nothing changes apart the url
https://www.dev.socage.it/products/?_sft_catportfolio=vans
Only after submitting in the url, results are filtered.
Thank you again!! -
AuthorPosts