My breadcrumbs look fine when I’m within a post category, but if I view a single post the breadcrumb trail gets doubled up. I’m using AVH Extended Categories but even with that disabled I get the same results.
Had a look at class-breadcrumb.php but couldn’t work it out.
Any help much appreciated.
Also wondering of this maybe an option in single.php
<?php
$category = get_the_category();
$category_id = $category[0]->cat_ID;
$relocate = get_category_link($category_id);
header("Location:".$relocate);
?>
Hi,
Do you have a Blog selected in Theme options > And where do you want to display the Blog?
Best regards,
Josue
Ah I didn’t see the setting in the theme to set the blog.
I have a page called bulletin, also a category called bulletin that I have been testing. Would prefer just to link to the category, but I now get Bulletin appearing twice at the start of the breadcrumb trail.
Hi,
That’s expected, the blog breadcrumb will be built this way:
home > blog > category > post
If you really need to have both the blog page and a category with the same name you could hide the link to the blog page with CSS:
.breadcrumb-trail a[href="http://devsite.capebyronsteiner.nsw.edu.au/bulletin/"] {
display: none;
}
Best regards,
Josue