Skip Navigation

[Resolved] Create a hierarchal child entry

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

Problem:
The issue here was that the user wanted to use CRED to select parents in a hierarchal wordpress relation.

Solution:

The solution to this can be seen in the link below.

https://toolset.com/forums/topic/create-a-hierarchal-child-entry/#post-721040

This support ticket is created 6 years, 6 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 17 replies, has 3 voices.

Last updated by Juan 6 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#720591

I am trying to:

Be able to create entries that a child to other entries within the same post with CRED.

I see that there is a CRED form for these hierarchal post types: hidden link

Here is what that field helped me to produce:

<div class="form-group">
<label>Which department is this page for?</label>
[cred_field field='post_parent' value='' order='title' ordering='asc' required='true' select_text='--- not set ---' validate_text='department must be selected' class='form-control' output='bootstrap']
</div>

I expected to see something similar to the backend, like this: hidden link

Instead, I got: hidden link

#721040

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-04-23 at 4.02.27 PM.png
Screen Shot 2018-04-23 at 4.02.32 PM.png

Hi Tyler,

Thank you for contacting our support forum.

Is your post type currently setup for a hierarchal relationship ? If not then you need to edit your CPT and enable these settings. See Screenshot

Once this is done then you just need to go back to your form and add the Parent information to the form using the same button you provided in your screenshot.

Please let me know if this helps.
Thanks,
Shane

#721116

Shane, thanks for the response! The boxes for both page attributes and hierarchal are both checked. The "parents" button will only appear when they are checked, which is nice. But I'm not sure why it isn't working as I didn't change the field from what Toolset inserted. Any other suggestions?

#721584

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tyler,

Would you mind providing me with admin access so that I can check on this for you ?

Thanks,
Shane

#721585

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

private fields

#721725

Shane, one other issue I'm running into is the ability to select a relationship (one-to-many) through CRED. It appears in the auto-generated form but doesn't work on the frontend. Here's an example:

hidden link

It works great on the backend, just not through the CRED form on the frontend: hidden link

#728720

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tyler,

Could you let me know which CRED form I should be looking at ?

Also for your second issue its best to open a second ticket for this and we can handle it there. Our policy allows us to answer 1 issue per thread 🙂 . It helps to keep things a bit more organized for our forum search.

Thanks,
Shane

#730969

Shane, makes total sense. I'll do a separate ticket for that issue.

For the parent post issue, here is an example entry with the CRED form for editing it: hidden link

Here is the direct link to that CRED form settings: hidden link

#735110

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tyler,

Thanks, I was able to see the issue at hand.

Could you try creating a new form and adding this field and see if the issue still remains.

Thanks,
Shane

#735113

That is actually the 3rd form I've tried it on. The other ones were tests with different post types and the same error message appeared.

#737165

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tyler,

There is definitely something wrong.

Would you mind if I took a duplicator package from your website for further testing ?

Thanks,
Shane

#737167

Shane, by all means! Let me know if there is anything else you need from me.

#737668

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tyler,

It seems the issue is with the Beta version.

What I recommend that you do is to use the most recent stable version as this works on the duplicator package.
https://toolset.com/account/downloads/

Also its not recommended to have Beta versions on production website as they are mainly for testing out new features. I believe this isn't working because of the updates that are being made to post relationships.

Thanks,
Shane

#738025

Shane,

Do you know approximately when the next versions will reach production? This site isn't expected to launch for another 4 months. And I need the beta plugins right now for the repeating field groups and relationships.

#743438

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tyler,

Actually we are in the final stages and should be released soon. Whats needed to be done is the final set of QA before release.

We should definitely be releasing this before your 4 months deadline.

Thanks,
SHane