0

At the moment I'm calling taxonomy term data using URL's like this -

http://scd.blaze.wpengine.com/wp-json/posts?type=listings&filter[listing_area]=northwest

Is there a way I can call two taxonomy terms at the same time, something like this? -

http://scd.blaze.wpengine.com/wp-json/posts?type=listings&filter[listing_area]=northwest&filter[listing_area]=northeast

I've read through all documentation but I'm struggling to find a solution, andy help would be much appreciated, thanks in advance!

Lucy Brown
  • 264
  • 4
  • 17

1 Answers1

1

Without knowing the full code in place its hard to be 100% but try...

http://scd.blaze.wpengine.com/wp-json/posts?type=listings&filter[listing_area][]=northwest&filter[listing_area][]=northeast

By adding [ ] to the end of each reference to listing_area you are now passing through an array of values. Otherwise you just pass through the last value in the query string.

Simon Pollard
  • 2,476
  • 1
  • 17
  • 26