1

I'm using the plugin (https://github.com/WP-API/WP-API) to get JSON Data from WordPress, but I'm stuck on something, I've a custom post type, events, with which many custom fields is attached to, such as datefrom, dateto, latitude, longitude.

This URL http://www.domainname.com/wp-json/posts?type=events&lang=fr is properly returning me the events, however, i'm not getting any of the custom fields, any help on this ?

0

Custom fields are Post Meta items, so you will need to retrieve these separately, reading the documentation suggests you need to call

GET /posts/<id>/meta 

http://wp-api.org/#posts_retrieve-meta-for-a-post

0

You can use JSON API instead of WP REST API

Not the answer you're looking for? Browse other questions tagged or ask your own question.