Open ycruzb opened 5 years ago
Would love to know this as well! It feels some mayor fields (like featured image or taxonomy/category) are missing from Post Object...
Hi ycruzb,
Please, use the plugin below: http://github.com/airesvsg/acf-to-rest-api-recursive
Thanks
@airesvsg thanks for your reply. Can you give a little bit explanation about how to use it in order to accomplish my requirement ? the documentation of the plugin is very poor. Thanks again.
I have same trouble with this. Hope this issue solved.
@ycruzb I had a similar issue to yours I think, but mine involved a custom REST API endpoint for my custom post type. Took me a while to figure it out, and there were similar issues opened in this repo, but nothing that was specific as my problem.
With my custom REST API endpoint, retrieving my custom post type I had made myself, I was only getting the basic fields from the post (not my custom ACF fields). This helped me solve my problem: https://stackoverflow.com/questions/49302366/how-wp-rest-api-custom-endpoint-could-return-custom-post-data.
Hi @dima7b, thanks for your reply. I was looking for a solution through this plugin but you are right, your approach is excellent. I'll work using this idea.
Thanks again ;)
I've a custom post type named Destiny, inside this custom post type i've added a repeater custom field called Books with a Post Object type selecting other custom post type named Book. I just want to have destinies and every destiny will have books. I don't have problem with this relationship but how can I add the permalink to the Post Object in order to get this value in the api ? I need the permalink inside the Post Object.
The plugin only returns this information for a Post Object:
Can you help me please ?