Forums › Forums › Search & Filter Pro › When using "Multi Select" with ACF and Elementor – The results are just Blank
- This topic has 14 replies, 2 voices, and was last updated 5 years, 7 months ago by Trevor.
-
Anonymous(Private) May 7, 2019 at 2:39 pm #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(Private) May 7, 2019 at 4:17 pm #210300Q1. 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) toON
And then in the Form UI:
In each field set
Hide Empty
toON
Anonymous(Private) May 7, 2019 at 5:38 pm #210341Q1 . 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(Private) May 7, 2019 at 8:43 pm #210359About 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(Private) May 8, 2019 at 9:36 am #210384If 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.
-
AuthorPosts