Breadcrumbs: Incorrect Taxonomy Ancestor Order
-
I found a really small, obscure bug related to breadcrumbs. On a taxonomy archive page, if the taxonomy has multiple ancestors, they will be displayed in reverse order.
The issue is in parts/template-tags.php around line 919. Below is the fix that worked for me. I added the array_reverse, which matches the logic used elsewhere in the breadcrumb logic.
if ( $ancestors ) {
$ancestors = array_reverse( $ancestors );
foreach ( $ancestors as $ancestor_id ) {
...Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.