Filter pods by multiple taxonomy using shortcode
-
Firstly many thanks for a supremely powerful plugin. It’s going to change the way I use WordPress in the very near future, so glad I discovered it!
Just one problem so far that I’m hoping you can help with. The slight scarcity of documentation means I’ve not been able to solve this myself.
I’ve created a custom post type called “store” and a custom taxonomy “country” (USA, CA, UK) etc.
I would like to use the Pods shortcode to display a list of stores that match more than one country. For example, stores that accept orders from the USA and UK.
The closest I could get was this:
[pods name=”store” where=”country.name IN (‘usa’,’uk’)” template=”store template” limit=”5″ orderby=”rating DESC”][/pods]
This doesn’t quite do what I want, I understand that it’s an OR statement and therefore matches stores that are either tagged “usa” or “uk” but not necessarily both. What I need is a list of stores that match both.
Having searched through the Pods documentation and this support forum, I only found one similar question in which the poster then said he’d solved it, but unfortunately didn’t share how. Therefore asking again if you have any solution to this.
Thanks in advance.
The topic ‘Filter pods by multiple taxonomy using shortcode’ is closed to new replies.