Is it possible to exclude by category / label etc… in a search shortcode
-
I refer to: https://www.ads-software.com/support/topic/exclude-categories-from-listing-in-shortcode/ whereby you answered the question about how to include categories by using ID. I’ve done the same using labels and it works AOK.
However, what if I want to exclude by a category. The question posed in the above post suggested using a minus in front of the ID, i.e. es_label=”-121″, however when I try this it simply includes label 121 ignoring the minus sign.
Is there a way to achieve this?
Scenario is, client wants to exclude properties with a certain label from their ‘all properties’ listing and include these separately elsewhere. I can handle the elsewhere using the above to only include by label X, but can’t do so using exclude on the all properties search shortcode.
- You must be logged in to reply to this topic.