REST API /posts by categories
-
Hi,
I tried to use the “List Posts” method from the REST API v2 (List Post).
I need to get the list post by for two categories at a time, for example:The request https://www.attivitiamo.it/wp-json/wp/v2/posts?_embed=&per_page=10&page=1&categories=16,3
The version of my wp is 5.4.2
return a different result of wp query by category_and = [16, 3] launched in pre_get_posts hook.
I read from blogs where it invite to use categories=16+3 or ategories[]=…. or with filter param but all statements non work and it not specified in the official doc.
Can you help me please?
Regards
LucaThe page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘REST API /posts by categories’ is closed to new replies.