[Resolved] Repeateable field add form for load parent in related field
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.
Tell us what you are trying to do?
I created a form to add a repeateable field to my custom post type
I insert this form in single template of parent post, and I want that related field have to preloaded parent value so I add this field to my form
Hello. Thank you for contacting the Toolset support.
It seems you will have to connect the post when you submit the form.
Can you please share problem URL where you added the form as well as admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Yes it works as I expected.
But I have to questions
1) where did you add that php code?
2) For the future, because I don't know php, why didn't work my solution? I don't undestand where was the problem. Could you say me why?
2) For the future, because I don't know php, why didn't work my solution? I don't understand where was the problem. Could you say me why?
==>
It was not working because you have added the $current to select the current post in the parent dropdown box. But as you can see now with your form I already deleted the parent dropdown box as its not required and added the code I shared that does the trick.