Title: [Plugin: JSON API] Exclude categories with get_recent_posts ?
Last modified: August 19, 2016

---

# [Plugin: JSON API] Exclude categories with get_recent_posts ?

 *  [Paul Argoud](https://wordpress.org/support/users/nightangel/)
 * (@nightangel)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-exclude-categories-with-get_recent_posts/)
 * Hello!
 * This plugin is fantastic, very powerful !
 * However I can’t exclude categories using get_recent_posts
 * Can I add a parameter to url for exclude categories with get_recent_posts ? Otherwise
   a change in the files but I can not find the place…
 * The important thing is that I can target a category OR exclude categories with
   get_recent_posts.
 * Thank you in advance for your reply and sorry for my English (isn’t my mother
   tongue).

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

 *  Plugin Author [dphiffer](https://wordpress.org/support/users/dphiffer/)
 * (@dphiffer)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-json-api-exclude-categories-with-get_recent_posts/#post-1906705)
 * Hi NightAngel,
 * Can you post an example of the request query? On my test environment I’m able
   to exclude categories with the following pattern:
 * `http://wordpress.test/?json=1&exclude=categories`
 * Thanks,
    -Dan
 *  [tjhanley](https://wordpress.org/support/users/tjhanley/)
 * (@tjhanley)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-json-api-exclude-categories-with-get_recent_posts/#post-1906750)
 * Dan, I think what he means is to exclude certain category’s posts from the recent
   post query. For example we have some categories that are private and in the get_recent_posts
   query I’d like it to exclude any posts from category 10.
 * Does that make sense?

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

The topic ‘[Plugin: JSON API] Exclude categories with get_recent_posts ?’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [tjhanley](https://wordpress.org/support/users/tjhanley/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-json-api-exclude-categories-with-get_recent_posts/#post-1906750)
 * Status: not resolved