Skip Navigation

[Resolved] Navigation breadcrumb question

This support ticket is created 6 years, 7 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by josephQ 6 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#916026
alumni-bio-archive-breadcrumb.png
alumni-bio-amanda-breadcrumb.png

Tell us what you are trying to do? I've created a number of custom post types. For example, I've created an Alumni Bio post (see hidden link for Amanda Schuermann's page). I've also created an archive that lists all of the Alumni Bios (hidden link).

According to the visual sitemap that I've developed, the Alumni Bio archive page should sit here in the hierarchy of information:

Home > Profiles > Alumni

However, the breadcrumb on the page only says Home > Alumni. See alumni-bio-archive-breadcrumb.png.

According to the visual sitemap that I've developed, the Alumni Bio page for Amanda Schuermann should sit here in the hierarchy of information:

Home > Profiles > Alumni > Amanda Schuermann

However, the breadcrumb on the page only says Home > Amanda Schuermann. See alumni-bio-amanda-breadcrumb.png.

My question is, how do I need to organize my pages, or what else do I need to do, to make the breadcrumb on the page reflect its correct position in the information hierarchy? (I'm not past authoring a custom PHP function to look up the position in an array of page names, if necessary.)

Is there any documentation that you are following? No.

Is there a similar example that we can see? No.

What is the link to your site?
Example Alumni Bio page: hidden link
Alumni Bio archive page: hidden link

#916143

Hello,

There isn't such a built-in feature within Types plugin, it depends on the "Navigation breadcrumb" plugin/theme you are using, if you are using other plugin/theme to setup the "Navigation breadcrumb", please check if it is possible with that plugin/theme.

However, there is a workaround within custom hierarchical post type, just like the wordpress built-in post type "Page", for example, you can create a post type "Profiles", in section, enable option "hierarchical", then add a top level post "Alumni", then add second level post "Amanda Schuermann", it should be able to display breadcrumb as :
Home > Profiles > Alumni > Amanda Schuermann

More help:
https://toolset.com/documentation/user-guides/create-a-custom-post-type/#even-more-advanced-custom-post-types-settings
hierarchical – lets parents be specified.

#916958

Luo,

Thanks for your reply. I like your work-around. One question: the intermediate parent page in your example, "Alumni," already exists as an archive of the Alumni custom post type. You're suggesting that I delete the archive and re-create it as a regular WordPress Page? Is that correct?

I'm also considering ways to manually modify the breadcrumb through a PHP function, as described here:
hidden link

Thanks again.

#917175

Yes, you are right, in the workaround I mentioned above:
https://toolset.com/forums/topic/navigation-breadcrumb-question/#post-916143

You can create another hierarchical post type "Profiles" to replace the post type "Alumni", as a result, you need to delete the post type "Alumni".

For the custom codes you mentioned above "breadcrumb through a PHP function", it is out the range of Toolset support, if you need assistance for it, you might consider our experienced contractors:
https://toolset.com/contractors/

#917179

Makes sense. I think I'll have to create a custom PHP function for the times I can't simply follow your recommendation to create an intermediate page.

Thanks, Luo!