', $after = '') { if (is_home() && is_front_page()) { $title = __('Home', 'business-prime'); }else if (is_home() || !is_front_page()) { $title = __('Blog', 'business-prime'); } else if (is_archive()) { $title = get_the_archive_title(); } elseif (is_search()) { $title = sprintf(__('Search Results for : %s', 'business-prime'), get_search_query()); } elseif (is_404()) { $title = sprintf(__('Error 404 : Page Not Found', 'business-prime')); } else { echo '

' . get_the_title() . '

'; } if (!empty($title)) { echo $before . $title . $after; } } function business_prime_breadcrumbs() { /* === OPTIONS === */ $text['home'] = __('Blog', 'business-prime'); // text for the 'Home' link $text['category'] = __('Archive by Category "%s"', 'business-prime'); // text for a category page $text['tax'] = __('Archive for "%s"', 'business-prime'); // text for a taxonomy page $text['search'] = __('Search Results for "%s" Query', 'business-prime'); // text for a search results page $text['tag'] = __('Posts Tagged "%s"', 'business-prime'); // text for a tag page $text['author'] = __('Articles Posted by %s', 'business-prime'); // text for an author page $text['404'] = __('Error 404', 'business-prime'); // text for the 404 page $showCurrent = 1; // 1 - show current post/page title in breadcrumbs, 0 - don't show $showOnHome = 1; // 1 - show breadcrumbs on the homepage, 0 - don't show $delimiter = ''; // delimiter between crumbs $before = '
  • '; // tag before the current crumb $after = '
  • '; // tag after the current crumb /* === END OF OPTIONS === */ global $post; $homeLink = esc_url(home_url('/')); $linkBefore = '
  • '; $linkAfter = '
  • '; $linkAttr = ' rel="v:url" property="v:title"'; $link = $linkBefore . '%2$s' . $linkAfter; if (is_home() || is_front_page()) { if ($showOnHome == 1) { echo ''; } } else { echo ''; } } // end business_prime_breadcrumbs() ?>