• '. esc_attr( get_bloginfo( 'name' ) ).''; else: // Blog Category if ( is_category() ) { echo '
  • ' . __('Archive by category','business-a' ).' "' . single_cat_title('', false) . '"
  • '; // Blog Day } else if ( is_day() ) { echo '
  • '. esc_attr( get_the_time('Y') ) .''; echo '
  • '. esc_attr( get_the_time('F') ) .''; echo '
  • '. esc_attr( get_the_time('d') ) .'
  • '; // Blog Month } else if ( is_month() ) { echo '
  • ' . esc_attr( get_the_time('Y') ) . ''; echo '
  • '. esc_attr( get_the_time('F') ) .'
  • '; // Blog Year } else if ( is_year() ) { echo '
  • '. esc_attr( get_the_time('Y') ) .'
  • '; // Single Post } else if( is_archive() ){ the_archive_title( '
  • ', '
  • ' ); } else if ( is_single() && !is_attachment() ) { // Custom post type if ( get_post_type() == 'project' ) { $post_type = 'project'; $tax = 'portfolio_categories'; $term_args = array( 'hide_empty' => true); $tax_terms = get_terms($tax, $term_args); $cat = $tax_terms[0]; if($cat){ echo '
  • '; printf( sprintf( __('%s','business-a'),$cat->name )); echo '
  • '; echo '
  • '. esc_attr( get_the_title() ) .'
  • '; } } else if( get_post_type() == 'post' ){ $cat = get_the_category(); $cat = $cat[0]; if($cat){ echo '
  • '; printf( sprintf(__('%s','business-a'),get_category_parents($cat, TRUE, '')) ); echo '
  • '; echo '
  • '. esc_attr( get_the_title() ) .'
  • '; } } } else if ( is_page() && $post->post_parent ) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $breadcrumbs[] = '
  • ' . esc_attr( get_the_title($page->ID) ) . ''; $parent_id = $page->post_parent; } $breadcrumbs = array_reverse($breadcrumbs); foreach ($breadcrumbs as $crumb) echo $crumb; echo '
  • '. esc_attr( get_the_title() ) .'
  • '; } elseif( is_search() ) { echo '
  • '. esc_attr( get_search_query() ) .'
  • '; } elseif( is_404() ) { echo '
  • ' . __('404 Error','business-a' ) . '
  • '; } else { // Default echo '
  • '. esc_html( get_the_title() ) .'
  • '; } endif; ?>