• hi!
    i want to show the full breadcrumb path on top of each site, but it only shows the home link and the subcategory.
    i tried several plugins (eg Breadcrumb Trail, Yoast Breadcrumbs, Breadcrumb NavXT) -> all the same effect. also a code included in the header file has the same effect.

    http://delusions.at/

    here is the code

    <?php // Breadcrumb navigation
    if (is_page() && !is_front_page() || is_single() || is_category()) {
    echo ‘<ul class=”breadcrumbs”>’;
    echo ‘<li class=”front_page”>‘.get_bloginfo(‘name’).’‘;

    if (is_page()) {
    $ancestors = get_post_ancestors($post);

    if ($ancestors) {
    $ancestors = array_reverse($ancestors);

    foreach ($ancestors as $crumb) {
    echo ‘

    • ‘.get_the_title($crumb).’
    • ‘;
      }
      }
      }

      if (is_single()) {
      $category = get_the_category();
      echo ‘

    • cat_ID).'”>’.$category[0]->cat_name.’
    • ‘;
      }

      if (is_category()) {
      $category = get_the_category();
      echo ‘

    • ‘.$category[0]->cat_name.’
    • ‘;
      }

      // Current page
      if (is_page() || is_single()) {
      echo ‘<li class=”current”>’.get_the_title().”;
      }
      echo ”;
      } elseif (is_front_page()) {
      // Front page
      echo ‘<ul class=”breadcrumbs”>’;
      echo ‘<li class=”front_page”>‘.get_bloginfo(‘name’).’‘;
      echo ‘<li class=”current”>Home Page’;
      echo ”;
      }
      ?>

      can anybody help me?

      thanks
      ernst

The topic ‘breadcrumb full path’ is closed to new replies.