Custom Fields in v2 REST API
-
Hi,
I’m using Custom Post Type UI on my wordpress site to be able to create custom post types. In the regular WordPress editor, I’m able to add custom fields to my post and save the new post. However, when I query for these posts via the v2 REST API, the custom fields aren’t included in the response.
I think the link I included from the wordpress docs suggests that there’s code changes I need to make in order to include the custom fields in the API Response. Does your plugin have support for being able to specify that these fields be included, without me having to edit the functions.php code? (I also want to be able to specify the custom fields when creating a post via the REST API.)
Do you know how I can achieve this? Do I need to edit the code on my wordpress site, or can your plugin (or another plugin) help me to solve this?
Thanks,
ManishaThe page I need help with: [log in to see the link]
The topic ‘Custom Fields in v2 REST API’ is closed to new replies.