Skip to content

BUG: Breadcrumb label doesn't override on archive #2

Description

@markbranly

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions