Hello,
In a previous post regarding the breadcrumb logic, (http://www.kriesi.at/support/topic/breadcrumbs-glitching-illogical-structure) ... i.e. home/shop/product/product title, it was suggested to use the following in class-breadcrumbs.php to have it look like home/shop/category/product title.
code suggested:
/* If there's an archive page, add it to the trail. */
if ( !empty( $post_type_object->has_archive ) && function_exists( 'get_post_type_archive_link' ) ){
if (is_product()){
$prod_cat = array();
$prod_cat[] = get_the_term_list(get_the_ID(), 'product_cat');
$trail[] = $prod_cat[0];
}else{
$trail[] = 'labels->name ) . '">' . $post_type_object->labels->name . '';
}
}
It took out the redundancy, but now on the single-product details page, I'm missing the 'shop' link. It looks like this: home/category/product title. Not a huge issue, but ideally, it would be great to add the 'shop' back in.
Thanks -














