'; echo ''; if(!is_author()){ if( $custom_home_icon) echo esc_url($custom_home_icon); else bloginfo('name'); } echo ""; if ( has_category()&& !is_author() ) { echo ''; the_category(', '); echo ''; } if ( is_category() || is_single() || $is_custom_post ) { if ( is_category() ) echo ''.get_the_category($post->ID)[0]->name.''; if ( $is_custom_post ) { echo ''.get_post_type_object( get_post_type($post) )->label.''; if ( $post->post_parent ) { $home = get_page(get_option('page_on_front')); for ($i = count($post->ancestors)-1; $i >= 0; $i--) { if (($home->ID) != ($post->ancestors[$i])) { echo ''; echo get_the_title($post->ancestors[$i]); echo ""; } } } } if ( is_single() ) echo ''.get_the_title($post->ID).''; } elseif ( is_page() && $post->post_parent ) { $home = get_page(get_option('page_on_front')); for ($i = count($post->ancestors)-1; $i >= 0; $i--) { if (($home->ID) != ($post->ancestors[$i])) { echo ''; echo get_the_title($post->ancestors[$i]); echo ""; } } echo ''.get_the_title($post->ID).''; } elseif (is_page()) { echo ''.get_the_title($post->ID).''; } elseif (is_404()) { echo '404'; } echo ''; } }