Skip Navigation

[Resolved] Using CRED form to create page becomes Child of the existing Parent page

This support ticket is created 6 years, 5 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.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by Zoren_LeoL6293 6 years, 5 months ago.

Assisted by: Beda.

Author
Posts
#923278

Hello,

I'am trying to create a CRED form using the page post type. I have existing page which is Parent and I want to create another page using the CRED form then I want it to become a Child of the existing Parent page. So in the CRED form there will be an selection field to select a Parent page. So after saving the page the permalink will usually become domain.com/parent/child/. So is it possible for a CRED form to do that and how?

Best regards,

#923452
Bildschirmfoto 2018-07-11 um 17.37.21.png

I see that you refer to the WordPress native Hierarchy in the native Post type Page, not to the Types relationships.

In this case please proceed as follows:

1. Creat a new Toolset Form, and choose "Page" as post type to be created.
2. Make sure, to add the Page Parent Post Field to the form from the "Post Fields" Quick Tag in the form…
3. This will generate this ShortCode:

[cred_field field='post_parent' value='' order='date' ordering='desc' select_text='--- not set ---' class='form-control' output='bootstrap']

That will allow to choose the parent page to the new created page.

#923463

Alright got it. Thank you!