I am trying to: List all dentist using if condition.
I used custom taxonomy to separate dentists into some categories, like dentist, dental care, clinic assistant.
But when I use "if condition" I get a scenario like this on the image I attached. "Screenshot 2020-12-30 at 00.23.29.png"
Loop search through the items, show those who are doctor, and show empty block if it is not doctor.
The meaning is only to list doctors without empty block.
How can I fix it?
Link to a page where the issue can be seen: Im working locally on my machine so there is no possibility to access it.
Hello. Thank you for contacting the Toolset support.
The thing is that, you must have a view that fetch all the posts and within the view's loop you have added the conditional block as per the screenshot you shared and when there is no match to the condition you added it will not display anything that is why it is displaying the blank space.
To overcome such situation, you should add a taxonomy query filter from your block view's "Content Selection" tab where you will find the Query Filter section and add taxonomy filter for your desired taxonomy and select the taxonomy you want to display.
=> https://toolset.com/documentation/user-guides/views/filtering-views-by-taxonomy/
Hi Minesh,
thanks for answering me.
Your answer was helpful.
Just to note that the Query filter is quite hidden, so it wasn’t that easy to find.
All you had to do was click on View, then go to Content Selection and find Query Filters there.
Issue is resolved.