• Resolved joshrouwhorst

    (@joshrouwhorst)


    Hey, I just got this plugin and I’m playing around with it. I can get posts using /wp-json/posts just fine but now I’m trying to narrow it down to a specific category and it doesn’t seem to be working.

    I’m trying /wp-json/posts?category_name=videos and /wp-json/posts?cat=40 (as the wp-api site says to do) also /wp-json/posts?categories=videos (as the “other notes” section on here says to do).

    I should only be getting one post back but I keep getting all of them. Is there something I’m missing with the request paths? I’m using Postman to make the queries.

    Thanks!

    https://ww.wp.xz.cn/plugins/json-api/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Getting Posts by Category’ is closed to new replies.