- This topic has 5 replies, 2 voices, and was last updated 2 years, 4 months ago by .
I am rolling my own REST API endpoint using some of your code. I want to pick out certain sets of field to include in my endpoint. My main dilemma is that your rest api response shows values for the posts as ID and I need them as the post title. So I am looping through my group fields and also my relationship fields. In the group fields, there is a meta key value to call out the fact that is a group field. In your code you use in_array to accomplish this. Can you add the same meta key to a relationship field? It goes with the stuff like placeholder, name, id, field type, etc. Thank you!
- You must be logged in to reply to this topic.