Closed localjo closed 9 years ago
To expose a custom field in the API, that field needs to be added to Types control (Types > Custom Fields Control > select field > Bulk Actions > Add to Types Control), and added to a group called Public (to create; Types > Custom Fields > Add New Group).
@pushred I named the key that is added to the api types_custom_meta
, basically custom_meta
namespaced with types_
for the Types plugin. To use this, we'll just have to update places where we're using the post_meta
key to use types_custom_meta
instead, or to check both.
I recommend that we install this Nadando update on production, add the fields we want to expose to a group named "Public" in Types, then update our views and jungle-solidus to use the new key, and then we'll be safe to update the WP-API plugin.
:+1:
wpcf-byline
needs to be exposed in the API on JJ and possibly others.
This PR is for all changes required to support updating WP-API to v1.2.1