Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add crumb type to entries #22

Open
ouun opened this issue Oct 27, 2023 · 1 comment
Open

Add crumb type to entries #22

ouun opened this issue Oct 27, 2023 · 1 comment

Comments

@ouun
Copy link
Sponsor Contributor

ouun commented Oct 27, 2023

Hi @Log1x,

I hope you are doing great.
Just recognized that for posts Crumb adds all selected categories to the array. Having a couple of categories makes it quite chaotic.

I am using The SEO Framework which adds a "Primary Category" feature that I would like to use. For that I would like to hook into the array and just remove all category crumbs except the primary one.

However currently it is not possible to differate between the crumb types (page, front-page, taxomomy, ...) and therefor I am thinking about a PR to add the "type" to each crumb array. That would allow us to better adjust the crumbs before passed to the view.

Wondering what you think about it.

Thanks and kind regards,

Philipp

@zarei-dev
Copy link

In my opinion, The right solution is to add apply_filters for items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants