When you view an archive, (e.g. /courses/), the breadcrumb trail reads "Course Catalog" whether or not you have filtered the post_type args and added our custom label breadcrumb_label. However, when you filter the archive, the new label shows up.
This is because we are only checking if we should change it when we detect filtered results.
Example:
https://github.com/PedalCMS/pedalcms/blob/main/plugin/src/breadcrumbs.php#L115
We need to also check if we are on a post type archive belonging to us and handle that case as well.
When you view an archive, (e.g. /courses/), the breadcrumb trail reads "Course Catalog" whether or not you have filtered the
post_typeargs and added our custom labelbreadcrumb_label. However, when you filter the archive, the new label shows up.This is because we are only checking if we should change it when we detect filtered results.
Example:
https://github.com/PedalCMS/pedalcms/blob/main/plugin/src/breadcrumbs.php#L115
We need to also check if we are on a post type archive belonging to us and handle that case as well.