Multiple categories can be separated by comma like below
http://example.com/wp-json/wp/v2/posts?categories=20,30
hope this helps
Related Posts:
- Why is per_page not working with categories in WP API?
- Get ID of current taxonomy in register_rest_field
- Select posts by name and category per REST API
- REST API: Display Category names in JSON?
- Add image to each podcast series (or category) in headless WordPress instance [closed]
- WP REST API not retrieving all categories
- Intermittent Gutenberg 504 Gateway Timeout when calling REST route to retrieve categories
- Pagination for custom categories template
- WooCommerce REST API not returning the default products category
- Taxonomy term RestApi data 10 rows limitions
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Group WP_Query by category
- Decreasing the Memory Consumption of a WordPress Site?
- How can I make post fields required in WordPress?
- Use tag interface for hierarchical taxonomy?
- How can I select a primary category?
- Different templates for parent and children categories/taxonomies
- List of subcategories with featured image
- Get a list of commas separated categories inside a loop
- How to get Total Post In a Selceted category
- Pagination on child category returns 404
- Advanced Custom Fields: Using category as a rule, before publishing new post?
- Plural Category Base Slug On Category Archive Page
- “Sticky” posts for each category (archive.php)
- Alphabetizing Posts in a Category Page?
- Unpublish all posts in a category
- Add Icons to the Product Category Sidebar Widget WooCommerce
- Add class to items in wp_list_categories()
- How is the single category page called and how does it know which posts to show?
- How to export/import categories and keep their IDs?
- Is it possible to select and edit the way the most recent post from a certain category is displayed on the page?
- How to link 2 categories (Sync)
- How to make a Thumbnails Mosaic
- wp_parse_args & category parameter
- Extract image url associated to a category
- Change existing taxonomy settings when using custom taxonomy
- Enter a variable in the ‘category_name’ parameter
- How do you categorize pages?
- List Sub-Categories of a Parent Category
- add text to the top of category page
- If statement for catergories
- Rewrite a category
- Query posts from category based on a filter most favorited
- How do I call posts with a certain tag?
- Order of subcategories
- “Categories” for six authors [closed]
- how to save selected option in variable for rest api category filter
- WordPress/Woocommerce only show category in shop to a single role
- Category control subcategories
- How to build a simple nav system of custom post type categories and its posts?
- Style category link depending on category ID
- Custom Walker for wp_list_categories
- How to insert category list into post creation page, and retrieve chosen categories?
- Output category color option to each li item
- How do I display only two categories Instead of displaying all categories
- Hooking to walker_nav_menu_start_el to insert list of subpages
- Show the latest post from child category?
- Having problems with paging
- How do I add a tag slug to a category URL to filter posts?
- Dropdown menu for subcategories
- How to add categories on a page [duplicate]
- Adding custom ID field to the categories
- Child Category Conditional Question
- Getting the first parent of a hierarchical term
- get category name in admin screen
- Return category posts with WP_Query
- Include either name or slug in the include parameter using wp_list_categories?
- get cat id is not working from custom taxonomy
- How to add image for all posts associated to specified category?
- Show the current post’s category, without displaying parent category
- Include specific category in URL automatically
- WordPress Category Page Layout
- get_the_category – display only a single category for a post (not all categories)
- display category with background color
- WooCommerce Product category can be shown with multiple related URLs
- Categories are not available AT ALL under Menus
- change image on single product page with js
- How to get all post categories without custom post type categories?
- Displaying a Category on a WordPress Page
- Show alternative menu based on page template AND post category
- Display Category yearly wise in wp
- Get all subcategories IDs from categorie or categorieIDs
- Redirect category archives to pages
- How to create a category loop on my blog (ACF Plugin)
- Using heirarchial tags or Custom taxonomies
- Get posts base on category ratio of more then two categories
- Images appear in the header on all pages, but not category.php
- How can I add HTML classes for current taxonomy/term hierarchy into my pages to simplify styles?
- Change single.php template based on parent category
- WordPress and “pretty permalink”
- New Category – custom taxonomy
- add custom option to get_categories dropdown
- Category as subdomain
- Use get variable when rewritten url in wordpress
- Back to category link
- Replace the post count on wp_list_categories with “Has Posts” instead of number and “No Posts” if none
- exclude category in loop.php
- Extract post category except one category
- Taxonomy page wpml dropdown not working
- exclude certain categories from the list at the end of the blog post