Title: [Plugin: JSON API] Get category custom fields via JSON
Last modified: August 20, 2016

---

# [Plugin: JSON API] Get category custom fields via JSON

 *  [eleonoraz](https://wordpress.org/support/users/eleonoraz/)
 * (@eleonoraz)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-json-api-get-category-custom-fields-via-json/)
 * Hi,
    I’ve added 2 custom fields to my categories using “Category Custom Fields”
   plugin ([http://wordpress.org/extend/plugins/categorycustomfields/](http://wordpress.org/extend/plugins/categorycustomfields/)).
 * Everything works fine but I can’t retrieve the 2 custom fields using JSON Api.
 * In an article page I use the following code to retrieve the single custom field(
   in this example: the “peso” custom field):
 *     ```
       http://www.mywebsite/?p=63&json=1&custom_fields=peso
       ```
   
 * How can I make it work for categories too?
    Thanks for your help, E.
 * [http://wordpress.org/extend/plugins/json-api/](http://wordpress.org/extend/plugins/json-api/)

Viewing 1 replies (of 1 total)

 *  [jobhesk](https://wordpress.org/support/users/jobhesk/)
 * (@jobhesk)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-json-api-get-category-custom-fields-via-json/#post-2935602)
 * I think the best way is the include a class from the basic query function in 
   the core module.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: JSON API] Get category custom fields via JSON’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [category](https://wordpress.org/support/topic-tag/category/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [json](https://wordpress.org/support/topic-tag/json/)

 * 1 reply
 * 2 participants
 * Last reply from: [jobhesk](https://wordpress.org/support/users/jobhesk/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-json-api-get-category-custom-fields-via-json/#post-2935602)
 * Status: not resolved