Theme Options $options = get_option('visualmodo'); $breadcrumb_separator = $options['breadcrumb_separator'] ?? '/'; $breadcrumb_anchor_text_home = $options['breadcrumb_anchor_text_home'] ?? 'Home'; $breadcrumb_prefix_category = $options['breadcrumb_prefix_category'] ?? 'Archive by Category'; $breadcrumb_prefix_search = $options['breadcrumb_prefix_search'] ?? 'You Searched for'; $breadcrumb_prefix_tag = $options['breadcrumb_prefix_tag'] ?? 'Posts Tagged'; $breadcrumb_prefix_author = $options['breadcrumb_prefix_author'] ?? 'Articles Posted by'; $breadcrumb_prefix_404 = $options['breadcrumb_prefix_404'] ?? 'Error 404'; /* === OPTIONS === */ $text['home'] = $breadcrumb_anchor_text_home; // text for the 'Home' link $text['category'] = $breadcrumb_prefix_category . ' "%s"'; // text for a category page $text['search'] = $breadcrumb_prefix_search . ' "%s"'; // text for a search results page $text['tag'] = $breadcrumb_prefix_tag . ' "%s"'; // text for a tag page $text['author'] = $breadcrumb_prefix_author . ' %s'; // text for an author page $text['404'] = $breadcrumb_prefix_404; // text for the 404 page $show_current = 1; // 1 - show current post/page/category title in breadcrumbs, 0 - don't show $show_on_home = 0; // 1 - show breadcrumbs on the homepage, 0 - don't show $show_home_link = 1; // 1 - show the 'Home' link, 0 - don't show $show_title = 1; // 1 - show the title for the links, 0 - don't show $delimiter = '
  • '. $breadcrumb_separator .'
  • '; // delimiter between crumbs $before = ''; // tag after the current crumb /* === END OF OPTIONS === */ global $post; global $woocommerce; $home_link = home_url('/'); $link_before = ''; $link_attr = ' rel="v:url" property="v:title"'; $link = $link_before . '%2$s' . $link_after; $parent_id = $parent_id_2 = $post->post_parent; $frontpage_id = get_option('page_on_front'); if (is_home() || is_front_page()) { if ($show_on_home == 1) echo ''; } elseif($woocommerce && is_shop()) { echo '