Filter posts by multiple custom taxonomy terms using AND operator in REST API v2 (WordPress)

I think I know the fix. I noticed that the plus sign (+) in the url arguments was automatically being stripped and converted into a space.

My arg values ‘august+september’ were becoming ‘august september’ after decoding. I found out that ‘%2B’ is the code equivalent of the + symbol.

So, instead of using: /wp-json/wp/v2/events?filter[event_categories]=august+september

Use: /wp-json/wp/v2/events?filter[event_categories]=august%2Bseptember

Leave a Comment