WordPress.org

Support

Support » Plugins and Hacks » Include / Exclude Query Params

Include / Exclude Query Params

  • I am writing a custom controller but cant get the include / exclude params to work, I have tried to use various field name formats but it just wont play ball:

    $query = array(
          'posts_per_page' => 10,
          'cat' => '71,-151,-152',
          'include' => 'post_title,post_content'
        );
    
        $events = $json_api->introspector->get_posts($query);

    Any thoughts??

    Thanks,

    Sam

    https://wordpress.org/plugins/json-api/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Include / Exclude Query Params’ is closed to new replies.