I followed this thread thread from 2013.
https://kriesi.at/support/topic/removing-category-in-the-blogs-breadcrumb/#post-138577
It works okay but the code I commented out is different. Can you just confirm what I have commented won’t give me problems: This is what I commented:
/* if('post' == $post_type && $show_categories)
{
$category = get_the_category();
foreach($category as $cat)
{
if(!empty($cat->parent))
{
$parents = get_category_parents($cat->cat_ID, TRUE, '$$$', FALSE );
$parents = explode("$$$", $parents);
foreach ($parents as $parent_item)
{
if($parent_item) $trail[] = $parent_item;
}
break;
}
}
if(isset($category[0]) && empty($parents))
{
$trail[] = '<a href="'.get_category_link($category[0]->term_id ).'">'.$category[0]->cat_name.'</a>';
}
} */
Thanks
Rob
Hi fanlokbun!
It is ok as it seems, nothing to worry about.
thanks a lot for your input, BTW!
Regards,
Basilis