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

---

# [Plugin: JSON API] Get all custom fields

 *  [Jacob Guite-St-Pierre](https://wordpress.org/support/users/jacobgsp/)
 * (@jacobgsp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-json-api-get-all-custom-fields/)
 * I understand that I can use custom_fields=name and pass multiple fields separated
   by a comma.
 * However, is it possible to pass it something so I get all custom fields? I tried
   both 1 and true and it returned an empty array.
 * Thanks
 * [http://wordpress.org/extend/plugins/json-api/](http://wordpress.org/extend/plugins/json-api/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [janet3b](https://wordpress.org/support/users/janet3b/)
 * (@janet3b)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-json-api-get-all-custom-fields/#post-2296373)
 * This would be a great feature to have, been looking at the code and can’t seem
   to find anything on displaying ALL custom fields. Looks like you need to pass
   a value manually to grab the content of a custom field.
 * I will try and see if there is any other way, but my php coding is very limited!
 *  [seaneherron](https://wordpress.org/support/users/seaneherron/)
 * (@seaneherron)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-json-api-get-all-custom-fields/#post-2296422)
 * It’s not too elegant, but I had a similar issue and came up with the following
   solution.
 * In json-api.php, add the following right below the plugin info section:
 *     ```
       if (!isset($_GET['custom_fields'])) {
           $_GET['custom_fields'] = 'customfield1,customfield2,customfield3';
       }
       ```
   
 * Renaming the customfields with your field names, of course.
 * This should make the plugin think that it’s being passed that query string on
   every load.
 *  [DDonald](https://wordpress.org/support/users/ddonald/)
 * (@ddonald)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-get-all-custom-fields/#post-2296464)
 * Hi, a few days ago i installed your plugin ( Custom Options ), after that i activeded.
   The next day that i started my computer, and i am going to choose WordPress, 
   he doesnt anything. My website says its ” under construction ” but when i am 
   going to the dashboard of WordPress i can’t
    find your plugin, and other plugins
   can’t be deactiveded. Nothing works. This for me a big problem. I hope you can
   and will help me with this. How can i delete your plugin, on a way that WordPress
   works normal again.
 * With kind regards,
 * P. Koerts ( from The Netherlands )
 *  Thread Starter [Jacob Guite-St-Pierre](https://wordpress.org/support/users/jacobgsp/)
 * (@jacobgsp)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-get-all-custom-fields/#post-2296465)
 * Hi DDonald,
 * For next time, could you please avoid asking questions related to a specific 
   plugin in a post about another plugin.
 * Now if you wish to uninstall a plugin and you for any reason can’t do so from
   the administration, you can simply delete the folder in the wp-content/plugins
   folder, which will force the deactivation of the plugin.
 * That being said, Custom Options merely save options to the options table, it 
   seems extremely unlikely that it broke your website. I suggest looking into something
   else for identifying the problem.
 * Cheers

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: JSON API] Get all custom fields’ 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/)

 * 4 replies
 * 4 participants
 * Last reply from: [Jacob Guite-St-Pierre](https://wordpress.org/support/users/jacobgsp/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-get-all-custom-fields/#post-2296465)
 * Status: not resolved