1

I have a custom post type called Offers, and in this post type is a custom field called Store, which is a relationship field type to another custom post type Stores.

This has been created using the Pods framework.

I'm using the JSON API plugin to get a feed of Offers, and you can include custom fields via the URL, as such:

/feed/?post_type=offer&json=get_recent_posts&custom_fields=store

This naturally only returns the ID of the Store post though.

How can I return not only the Post Title of the Store, but a further custom field from the Store post itself?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.