Is it possible to have a nested custom fields?
e.g:
I have a "image" custom field (checked: Allow multiple-instances of this field) which has another 3 "single" line fields.
Whenever an additional image is added. The 3 "single" line fields will appear as well.
Its possible in a different way.
You need to create a new Custom Post Type with the single image and the 3 single line fields.
Then you can repeat the group of fields each time you add a child.
Please let me know if you are satisfied with my reply and any other questions you may have.
Regards,
Caridad
When you state add a child to repeat the group of fields.
Do you mean to create a child CPT or something?
If yes, that would not resolve my issue if my CPT's child post has content to display as well.
And what if I am using a Page instead?
If no, may I ask you how I should create the desired structure custom fields accordingly?
I think there is a misunderstanding. Let me try to explain better.
1) If you already have child content, don't re-use it for this. Create an extra custom post type just to hold the repetitions of images and single line fields.
2) After you have defined the child custom post type just for images, edit the parent post type and select the fields you want to show up in the editor (child-custom-fields.png)
3) You can add posts to this child custom post type directly from the parent in the fields table. Have a look at the screenshot attached (fields-table.png)
I think this is just what you are looking for, let me know if you need more help implementing this.
Also let me say that we are currently working on making a better user interface to add child posts. You should see improvements in our next major release.
Please let me know if you are satisfied with my reply and any other questions you may have.
Regards,
Caridad
Basically what I want is shown on fields-table.png.
May I ask how you go about setting the custom fields that way?
You can see in the second screenshot.
Once you have setup your parent and child custom post types, you just edit the parent post type to "Edit fields" that will be visible in the "Fields table".
Let me konw if you need more help with this.
Regards
Caridad
Dear Caridad
May I checked with you if that child custom fields are able to be set for "Page" as well?