adding links to breadcrumbs category
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 1 Feb 2016 21:45:44 +0000 (16:45 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 1 Feb 2016 21:45:44 +0000 (16:45 -0500)
index.php
views/list_categories.php

index 59cc3ab..23156f5 100644 (file)
--- a/index.php
+++ b/index.php
@@ -338,14 +338,10 @@ function michsci_taxonomy_filter_post_type_request( $query )
             }
         }
     }
-
 }
-
 add_filter( 'parse_query', 'michsci_taxonomy_filter_post_type_request' );
-
 add_action( 'init', 'michsci_taxonomies' );
 add_action( 'init', 'michsci_custom_post_type' );
-
 /**
  * michsci_set_admin_columns
  *
index 180706e..ec9ff27 100644 (file)
@@ -1,7 +1,7 @@
 <?php if(!isset($_COOKIE['catView']) || $_COOKIE['catView'] == "grid"){ ?>
  <?php $cat_id = $_REQUEST['michsci_category']; 
  if($cat_id){ ?>
-      <?php $ancestors = get_category_parents($cat_id, false, " > "); ?>
+      <?php $ancestors = get_category_parents($cat_id, true, " > "); ?>
 <div class="small-12 medium-6" id="productBreadcrumbs">
  <?php echo '<a href="'. get_permalink(510) .  '">' . Products . '</a>'." > "; ?>
 <?php foreach($ancestors as $relative){