WordPress.org

Forums

JSON API
Include / Exclude Query Params (2 posts)

  1. samhibberd
    Member
    Posted 1 year ago #

    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/

  2. pflantzdog27
    Member
    Posted 3 months ago #

    Bump

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JSON API
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic