Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
In reply to: Catchable Error
found solution
In reply to: Catchable Errorso from what I have read it is something to do with the “echo” and that forums to have categories.
} endif; function simplenotes_get_breadcrumbs(){ global $wp_query; if ( !is_home() ){ echo '<ul>'; echo '<li><a href="'. home_url() .'">'. get_bloginfo('name') .'</a></li>'; if ( is_category() ) { $catTitle = single_cat_title( "", false ); $cat = get_cat_ID( $catTitle ); echo "<li> ► ". get_category_parents( $cat, TRUE, " ► " ) ."</li>"; } elseif ( is_archive() && !is_category() ) { echo "<li> ► Archives</li>"; } elseif ( is_single() ) { $category = get_the_category(); $category_id = get_cat_ID( $category[0]->cat_name ); echo '<li> ► '. get_category_parents( $category_id, TRUE, "</li><li> ► " ); echo the_title('','', FALSE) ."</li>"; } elseif ( is_page() ) { $post = $wp_query->get_queried_object(); if ( $post->post_parent == 0 ){ echo "<li> ► ".the_title('','', FALSE)."</li>"; } else { $title = the_title('','', FALSE);
Viewing 2 replies - 1 through 2 (of 2 total)