id); $new_cate = array(); $new_cate = explode( ",", $category ); } if( !is_front_page() ){ print '
  • '.esc_html( Get_bloginfo() ).'
  • '; if ( is_archive() ) { if( is_category() || is_tax() ){ print '
  • '. single_cat_title('', false).'
  • '; }elseif( class_exists('WooCommerce') && is_woocommerce() ){ print '
  • '.esc_html( apply_filters( 'the_title', get_the_title( get_option('woocommerce_shop_page_id') ) ) ).'
  • '; } else{ print '
  • '.esc_html( 'Archives','ac-repair').'
  • '; } }elseif( is_home() ){ print '
  • '.esc_html( apply_filters( 'the_title', get_the_title( get_option( 'page_for_posts' ) ) ) ).'
  • '; }elseif ( is_search() ){ print '
  • '.esc_html__( 'Search Results','ac-repair').'
  • '; }elseif( is_404() ){ print '
  • '.esc_html__( 'Error Page', 'ac-repair' ).'
  • '; }else{ if( $category != ''){ print '
  • '.$new_cate[0].'
  • '; } if( !is_front_page() ){ global $post; $parents = get_post_ancestors( $post->ID ); if($parents){ $id = ($parents) ? $parents[count($parents)-1]: $post->ID; $parent = get_page( $id ); print '
  • '.get_the_title($parent).'
  • '; } print '
  • '.get_the_title().'
  • '; } } }else{ // some code goes here.. } ?>