Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Fix Category page breadcrumb #984

Merged
merged 2 commits into from
May 23, 2017
Merged

Fix Category page breadcrumb #984

merged 2 commits into from
May 23, 2017

Conversation

RobertoCorreale
Copy link

@RobertoCorreale RobertoCorreale commented May 17, 2017

Hi,

Previously the printed breadcrumb in the category page was the first term found in $category, which is wrong. For example if i've 3 categories in my site [cat1, cat2, cat3], with category[0] i always get "cat1", even if i'm on cat2 page.

I've changed it to the current category of the Category Page using $wp_query->queried_object.

Fixed breadcrumb in Category page.
Changed it from the first term in $category to the current category.
@olefredrik olefredrik merged commit c28fd0b into olefredrik:master May 23, 2017
@olefredrik
Copy link
Owner

olefredrik commented May 23, 2017

Good stuff, @roby94 👍

@RobertoCorreale RobertoCorreale deleted the breadcrumb branch May 23, 2017 09:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants