WP REST API: filter by category 1 AND category 2

Multiple categories can be separated by comma like below

http://example.com/wp-json/wp/v2/posts?categories=20,30

hope this helps

Leave a Comment