WordPress.org

Support

Support » Plugins and Hacks » JSON API » [Plugin: JSON API] Exclude categories with get_recent_posts ?

[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

    @dphiffer

    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

    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.
Skip to toolbar