Subordinate own Layouts?

Hey guys,
probably you can help me, I hope so…

I am using a custom post type for the team members and created an overview and a detail page.
The detail page is created through the new layout builder and the overview page is a normal page with a looper.
On both pages I am using the breadcrumb element.

And now the problem:
The breadcrumb element show the correct path when I am on the overview page: “home > about > our staff”. But when I click on one team member and get to the detail page the breadcrumb element shows “home > team member”.

So the questions is how do I get the breadcrumbs to “home > about > our staff > team member”?
Is there a way to “subordinate” layouts to a specific path?

Thank you very much :slight_smile:

Hi @ERES,

So if you’re using a custom post type, that’s like a whole new top level context in WordPress which would indeed affect the breadcrumbs. To maintain the breadcrumb structure, those team member pages would need to be actual Pages (not a custom post type). You can set their Parent to “Team Members” and the breadcrumbs would work properly.

Alternatively, since you know the structure is consistent, you could try recreating some faux breadcrumbs with other elements. One idea would be using a Div with flexbox direction set to Row, and some text elements inside.

1 Like

Thank you. I think I will go the fake-breadcrumb-way.
Probably this is something for a future update? A possibility to manipulate the breadcrumb path manually within the breadcrumb element?

Hi @ERES,

What’s more likely is that we would add a Breadcrumbs Looper Provider instead. Then you would just use standard elements to create the breadcrumb style, and it would be easier to make visual alterations with static elements.

1 Like