Forums Forums Search & Filter Pro When using "Multi Select" with ACF and Elementor – The results are just Blank

Viewing 5 posts - 11 through 15 (of 15 total)
  • Anonymous
    #210258

    Thank you!
    2 more question If I may.
    1. How can I show a line with “no results” when there are no results?
    2. Can the search be hierarchical?
    Meaning – The first option they choose is Continent, after that country.
    But there is no logic of showing (for example: When I choose “Africa” I don’t need to see on the next option the other countries that aren’t listed inside of Africa.)

    I Hope I managed to illustrate the problem
    Thank you!

    Trevor
    #210300

    Q1. You are using the custom display method. Does the page use a PHP template file, I cannot recall how (and where on the page) the results are? It somewhat depends on the way the results appear on the page if it would be easy to code.

    Q2. That is not currently a feature of our plugin, sorry (I think you mean dependency, where you select one filter and another appears?). However, you can make one filter react to a choice made in another. To do this …

    in the General settings tab:

    Set Auto Count (both settings) to ON

    And then in the Form UI:

    In each field set Hide Empty to ON

    Anonymous
    #210341

    Q1 . I indeed use Coustom Page as my display method.
    My whole website is based on Elementor.
    The best option will be to use the search result page as Custom Page or Archive? (I use Elementor PRO so I can create Archive Pages easily)

    Q2. Will check in a bit. thanks

    Anonymous
    #210359

    About the second question – it works PERFECT!

    The only main issue I’m facing right now is to show specific message when there is no results.
    I’m unable to add “Archive Posts” Widget with custom results page (since it’s just a regular page, and not “Archive” template with Elementor)

    Thank you again so much, Trevor. You are really helpfull

    Trevor
    #210384

    If you have access to the PHP itself, the basic WordPress code would look this:

    if ( $query->have_posts() ) {
      while ($query->have_posts()) {
        $query->the_post();
    // output the post here
      }
    } else {
      echo "No Results Found";
    }

    That is all the help I can give you on that. Many themes/page builder plugins miss out the ‘else’ part, so you see no message.

Viewing 5 posts - 11 through 15 (of 15 total)