• Changed the values of the $defaults variable in the get_posts method and it doesnt appear to be working

    $defaults = array(
    ‘ignore_sticky_posts’ => true,
    ‘exclude’ => ‘author’
    );

    Author is still showing up in the response. Adding the value to the query string does work.

    Any thoughts?

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

The topic ‘Exclude not working in controller’ is closed to new replies.