• Hey! I am building something with the wordpress api. I make a filter to look for certain entries.

    I use this url:
    https://localhost:3000/project/wp-json/wp/v2/posts?categories=16+17

    and right now I have three posts one in category 16 one in 17 and one in 16 and 17. With that query I get all of the posts. But How can I actually get the one that is just in 16 and 17?

    I mean I could handle it in the frontend but it would be nice to just get the required posts from WP.

    • This topic was modified 2 years, 1 month ago by krischomat.
    • This topic was modified 2 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WordPress API get posts with all categories’ is closed to new replies.