';
} else if( is_404() ){
echo ''. esc_html__('Page not Found','business-store').'
';
} else if( is_category() ){
echo ''. esc_html__('Category','business-store').'
';
} else if( is_archive() ){
echo ''. esc_html__('Archive','business-store').'
';
} else {
echo ''.esc_html(get_the_title()).'
';
}
?>
'. esc_html( get_bloginfo( 'name' ) ).'';
else:
// Blog Category
if ( is_category() ) {
the_archive_title( '- ', '
' );
// Blog Day
} else if ( is_search() ) {
echo '- '. esc_attr( get_search_query() ) .'
';
} else if ( is_day() ) {
echo '- '. esc_html( get_the_time('Y') ) .'';
echo '
- '. esc_html( get_the_time('F') ) .'';
echo '
- '. esc_html( get_the_time('d') ) .'
';
// Blog Month
} else if ( is_month() ) {
echo '- ' . esc_html( get_the_time('Y') ) . '';
echo '
- '. esc_html( get_the_time('F') ) .'
';
// Blog Year
} else if ( is_year() ) {
echo '- '. esc_html( get_the_time('Y') ) .'
';
// Single Post
}
else if( is_archive() ){
the_archive_title( '- ', '
' );
}
else if ( is_single() && !is_attachment() ) {
if( get_post_type() == 'post' ){
$cat = get_the_category();
$cat = $cat[0];
if($cat){
echo '- ';
$args = array(
//links
'a' => array(
'href' => array()
)
);
echo wp_kses(get_category_parents( $cat , TRUE, ''), $args );
echo '
';
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_html( get_the_title($page->ID) ) . '';
$parent_id = $page->post_parent;
}
$breadcrumbs = array_reverse($breadcrumbs);
foreach ($breadcrumbs as $crumb) {
$args = array(
//links
'a' => array(
'href' => array()
)
);
echo wp_kses($crumb,$args);
}
the_title('
- ','
');
}
elseif( is_404() ){
echo '- ' . esc_html__('404 Error','business-store' ) . '
';
}
else {
the_title('- ','
');
}
endif;
?>