Skip Navigation

[Resolved] Custom post type hierarchy

This support ticket is created 2 years, 3 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 2 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2525003

Tell us what you are trying to do?

I created a custom post type called "Agents", I would like it to be nested hierarchically under a parent page called "Our Team" (not an archive) so that when users are navigating with breadcrumbs they see something like: Home > Our Team > [agent name]

In the settings for the "Agents" post type, I made sure to check "Page attributes" and "hierarchical". But there doesn't seem to be a way to set the parent page in the content template I made for Agents (if that's ever even an option), and in individual Agent posts there's a) a dropdown to select parent page in Quick Edit but Main Page (no parent) is the only option that appears, and b) in normal edit mode there's a field under Page Attributes called "PARENT TEXT" but the field doesn't appear to do anything - it doesn't pull up a list of potential parent pages, nor does it save any text I enter

What is the link to your site?

hidden link
hidden link

(Still early days under construction)

Thank you!

#2525595

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset do not control the breadcrumbs. Toolset will have only effect within the the_conent(body) area.

The breadcrumbs must be added by the theme you are using. To implement such custom feature is beyond the scope of our support policy. If you need custom programming for your project you are welcome to contact any of our certified partners:
- https://toolset.com/contractors/

You will have to write custom shortcode or custom code that should return the breadcrumbs as per your requirement. Please check the following links that may help you:
- hidden link
- hidden link

Or you can go with any specific plugin that does this job:
- https://wordpress.org/plugins/breadcrumb/
- https://wordpress.org/plugins/flexy-breadcrumb/
- hidden link

#2526039

Hi, thank you -

I probably wasn't clear in what I was asking. The breadcrumbs I'm using should do what I want provided the proper post hierarchy is in place. I was confused why checking off "hierarchal" in the custom post settings (along with "page attributes" which it says is also a prerequisite) wouldn't let me assign a parent post to the custom posts. Are you saying such a thing just not a feature in this case, or just that breadcrumb behavior itself is beyond the scope of Toolset?

Thanks!

#2526049

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As you can see the "hierarchical" option description with the following screenshot:
=> hidden link

If you want to assign parent page then you must have to activate the "hierarchical" option so that will allow you to set hierarchy of the page and to set the hierarchy (parent) you will have to activate the page attribute option as well.