I am using rest api for json reponse , in my json response group repeater values are not coming the field "toolset-meta" is empty. Please have a look.
hidden link
Hi,
Thank you for contacting us and I'd be happy to assist.
The custom fields inside the 'repeater field groups' are not directly stored with the custom post types they are registered for. When a repeater field group is created a hidden custom post type with the same slug as the repeatable field group is also registered.
Every repeatable field group entry, is stored as an individual post in that hidden post type and holds a one-to-many relationship with the parent post, where the repeatable field group is created.
The custom field values inside that repeatable field group entry are stored with that hidden child post and not with the actual parent one.
And because the Toolset's REST API integration only covers the custom fields directly attached to a post, the customer fields that are part of any repeatable field group are not covered.
( ref: https://toolset.com/documentation/programmer-reference/toolset-integration-with-the-rest-api/ )
You can extend the WordPress REST API and query the repeatable field group data using the Toolset Relationship API:
- https://developer.wordpress.org/rest-api/
- https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/
regards,
Waqar