WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
Get category custom fields via JSON (2 posts)

  1. eleonoraz
    Member
    Posted 1 year ago #

    Hi,
    I've added 2 custom fields to my categories using "Category Custom Fields" plugin (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/

  2. jobhesk
    Member
    Posted 1 year ago #

    I think the best way is the include a class from the basic query function in the core module.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic