Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #518862

    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

    #518963

    Hi fanlokbun!

    It is ok as it seems, nothing to worry about.

    thanks a lot for your input, BTW!

    Regards,
    Basilis

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.