Hye,
I use Types and Formidable Pro (I know it better than CRED) to create form to edit custom post types from frontend.
I have a Parent Custom Type "Shop" and its child_posts "Offers".
On the form to edit "Offers", I would like to add a select input with all the "Shops", in order to choose which "Shop" will be the parent of the current "Offer".
I didn't see some API or explanation for this kind of thing about "Child_posts". I just found some code to display child_post but, as you see, my trouble is different. Thanks for your help and idea...
Hi francoisR,
I am not sure it is possible with Formidable Pro plugin.
Types is using a custom field to store the parent post ID, for example your parent post type slug is property, then the meta key is _wpcf_belongs_property_id
Then you will need create a custom select dropdown menu, list all parent posts as the options, and use html name "_wpcf_belongs_property_id", and save it into database.
More help:
https://toolset.com/documentation/user-guides/querying-and-displaying-child-posts/
And it is easy to setup such a form with CRED plugin:
CRED Forms for Child Content
https://toolset.com/documentation/user-guides/cred-forms-for-child-content/
Thanks for your very fast answer. I found the solution with the "Entries from Data" function in Formidable Pro.