• I have an issue when it come to displaying the custom post type category in my breadcrumb menu on the page it looks something like the following

    Home / / Post Title

    when it should be

    Home / Custom Cat Name / Post Title

    It shows the post on the page and the posts title but not the category?

    Breadcrumb menu code:

    /*********************
                breadcrumbs menu
                *********************/
                function the_breadcrumb(){
                    echo '<ul class="crumbs">';
                    if (!is_home()){
                        echo '<li><a href="';
                        echo get_option('home');
                        echo '">';
                        echo 'Home';
                        echo '</a></li><li class="separator"> | </li>';
                        if (is_category() || is_single('post')){
                            echo '<li>';
                            the_category(' </li><li class="separator"> | </li><li> ');
                            if (is_single()){
                                echo '</li><li class="separator"> | </li><li>';
                                the_title();
                                echo '</li>';
                            }
                        } elseif (is_page()){
                            echo '<li>';
                            echo the_title();
                            echo '</li>';
                        }
                    }
                    elseif (is_tag()){
                        single_tag_title();
                    }
                    elseif (is_day()){
                        echo"<li>Archive for "; the_time('F jS, Y'); echo'</li>';
                    }
                    elseif (is_month()){
                        echo"<li>Archive for "; the_time('F, Y'); echo'</li>';
                    }
                    elseif (is_year()){
                        echo"<li>Archive for "; the_time('Y'); echo'</li>';
                    }
                    elseif (is_author()){
                        echo"<li>Author Archive"; echo'</li>';
                    }
                    elseif (isset($_GET['paged']) && !empty($_GET['paged'])){
                        echo "<li>Blog Archives"; echo'</li>';
                    }
                    elseif (is_search()){
                        echo"<li>Search Results"; echo'</li>';
                    }
                    echo '</ul>';
                }

    Thanks

  • The topic ‘Breadcrumb not showing custom category post type’ is closed to new replies.