This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Could you please explain how I can get the correct $meta_key, $meta_value if my repeatable group slug is ecard-contact-group and field slug is contact-type and how do I update the title of each rfg ? Giving me the sample code is appreciated.
I thought you were referring to the repeatable field, but from the screenshot, you're clearly using the repeatable field group.
The fields in the repeatable field group are stored with a separate hidden post type connected through a one-to-many post relationship with the parent post type.
Can you please share the temporary admin login details of the website, along with the exact place where you're planning to use this code? I'll be in a better to suggest a code example, accordingly.
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
What is the problem? The first sample I insert post and add post_meta one by one and then build the relationship, the second is inserting the post all in one including the post_meta and then build the relationship, why the first one not work ?
I may want to check whether the rfg already existed before I do the add_post_meta(), can do?
Thank you for sharing this update and glad that you were able to sort it out.
In the first instance of the code, I don't see the post type being specified at the time of new post creation.
( post_type' => 'ecard-contact-group', )
You can fix it and then test the same code again.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.