[Gelöst] CRED Forms: Including Parent Post Title and Link
This support ticket is created vor 7 Jahre, 6 Monate. There's a good chance that you are reading advice that it now obsolete.
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.
I have followed the instructions for pre-selecting the parent ID in a CRED form that is placed on a parent page.
To see this example you'll need to change your 'hosts' file (please ask me for the IP address - andy@blueprintpromo.co.uk) because I am using a 'dev' zone not available to those without the specific host IP. Or please see myscreenshot1.JPG:
hidden link
In the form in the right column just before "Request My Quote" there are two fields displayed:
[current_parent_id] - which has a value of 24815
and
<input name="_wpcf_belongs_product_id" value="[current_parent_id]">
which is displaying [current_parent_id] instead of the real value 24815
Hello. Thank you for contacting the Toolset support.
The post you shared is too old. CRED offers you shortcode [cred_post_parent] to get the parent information on CRED child forms. For example:
[cred_post_parent get='id'] // to get parent post id
[cred_post_parent get='title'] // to get parent post title
[cred_post_parent get='url'] // to get parent post url
If parent/child types relationship is set properly this should work.
1)
Can I have problem URL?
2)
*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
To clarify, there is no current problem URL to direct you to. We're just looking for a little reassurance re Tony's post above (which is the solution we have in place now).
'This did not work but I replaced [cred_post_parent get='id'] with [wpv-post-id]