How to customize breadcrumbs output?

I’m using the Yoast SEO plugin to display breadcrumbs on my site. The site is organised into parent and child categories. The main purpose of the parent categories is so I can show categories related to each child category and I don’t actually need to link to parent categories on the front end.

Is it possible to remove the link to the parent category in the breadcrumb trail?

I presume I would need to use the wp_seo_get_bc_ancestors filter (Allows changing the ancestors for the current page in the breadcrumb).

Read more here: How to customize breadcrumbs output?

Leave a Reply

Your email address will not be published. Required fields are marked *