Forums Forums Search & Filter Pro no terms are showing in dropdown fields

Viewing 10 posts - 1 through 10 (of 19 total)
  • Anonymous
    #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
    #204424
    This reply has been marked as private.
    Anonymous
    #204434
    This reply has been marked as private.
    Trevor
    #204442
    This reply has been marked as private.
    Anonymous
    #204523
    This reply has been marked as private.
    Anonymous
    #204525
    This reply has been marked as private.
    Trevor
    #204620

    As 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
    #204638

    Hello 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
    #204644

    To 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
    #204652

    many 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!!

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