I'm having some difficulty understanding syntax to make a call from my application to the wordpress REST API when it it comes to getting pages that contain multiple tags.
I have no problem with doing a call like
https://example.com/cms/wp-json/pages?filter[tag]=L1
but I am unsure of how to call the API if I want to filter on posts that contain the tag L1 AND L2 AND L3
, etc....
posts?filter[tag]=L1
should work. Besides, if you are querying for pages, shouldn't it be something likeposts?type[]=page&filter[tag]=L1
. You probably should give the WP API Documentation another read. I've recently found an interesting article series about the WP API, maybe that will help you too.tag__and
for querying posts tagged with multiple specific tags./posts?type[]=page&tag[]=tag1&tag[]=tag2
Not sure how to do an OR query, though.