Im working with the followings:
- Nuxt 2.15.7 for frontend development
- Wordpress 5.8
- CPT 1.9.2
- Advanced Custom Fields PRO 5.9.9
- ACF to REST API 3.3.2
- ACF to REST API Recursive Deactivated at this moment.
Situation:
I have two CPTs Hiking Routes and Landmarks, both of them have Custom Fields. In CPT Landmark, Im trying to pull data from Hiking Route as post object, so I can show the details such as Route length and Route colour which are custom fields. But unfortunately, I was only able to get the generic post data without any custom fields. Note: Im using nuxt to build the frontend so Im trying to get the result in rest api.
I have tried various solutions with and without ACF to REST API Recursive plugin. A very resourceful thread is here https://github.com/airesvsg/acf-to-rest-api/issues/109
I would really appreciate if anyone explains exactly how I can achieve this.
Thank you in advance.
Note: If you think question can be improved, please do it.