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
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.
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.
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/
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!