Skip Navigation

[Resolved] Pass on a value from a parent post to a child post in CRED

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to create a link from a View of parent posts to a CRED form that creates child posts. The parent post should be automatically selected in the CRED form when the user clicks the child post link.

Solution: CRED offers a child post shortcode that can be placed in a View of parent posts that will automate this process.

[cred_child_link_form form='506' parent_id='-1' target='_self']

You can place this shortcode in a Content Template or directly into your View's Loop Output editor. If you want to place this code in a Content Template that is constructed with Beaver Builder, then you cannot use a button module. You should use an HTML module.

Relevant Documentation: https://toolset.com/documentation/user-guides/cred-forms-for-child-content/
https://toolset.com/documentation/user-guides/displaying-fields-of-parent-pages/

This support ticket is created 7 years, 4 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#547622

Hi Christian,

That would be great 🙂

If you go to hidden link you will see the view. There are buttons that read "Offerte" with a pencil besides it. That is basically the kind of styling I am after, including the hover actions etc.)

I am already trying myself, but I have to dust off my CSS knowledge (it has been 15 years ago when i last created a website), so if you could provide me some pointers here that would be above and beyond. Thanks!

#547637

Hi Christian,

I have re-created the button in CSS 🙂
Thanks for all the help and patience!

#547687

OK great, sorry for the delay getting back to you - I'm glad you got it figured out!