WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
Set custom post format and (1 post)

  1. Andrea
    Member
    Posted 2 years ago #

    Hi,

    i would like to know how i could set internally (and not with parameters) in a customized controller the "custom fields" list that i want to show in JSON output.
    For the post format, i used - instead of passing it via parameter "&include=comments,title,..." - this code:

    global $json_api;
    $json_api->response->include_values = $this->include_values_categories;

    Is that the right way?
    How could I do the same for "&custom_fields=..." parameter?

    Thanks a lot, wonderful plugin!
    Andrea

    http://wordpress.org/extend/plugins/json-api/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags