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:
$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!
- The topic ‘[Plugin: JSON API] Set custom post format and’ is closed to new replies.