testing links
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 1 Feb 2016 21:53:58 +0000 (16:53 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 1 Feb 2016 21:53:58 +0000 (16:53 -0500)
views/list_categories.php

index 180706e..fb99d85 100644 (file)
@@ -1,13 +1,11 @@
 <?php if(!isset($_COOKIE['catView']) || $_COOKIE['catView'] == "grid"){ ?>
  <?php $cat_id = $_REQUEST['michsci_category']; 
+ $test = get_ancestors($cat_id, "michsci_category");
  if($cat_id){ ?>
       <?php $ancestors = get_category_parents($cat_id, false, " > "); ?>
 <div class="small-12 medium-6" id="productBreadcrumbs">
  <?php echo '<a href="'. get_permalink(510) .  '">' . Products . '</a>'." > "; ?>
-<?php foreach($ancestors as $relative){
-    echo '<a href="'.  '?michsci_category=' . $relative . '" >' . $relative->slug . "</a>" . " > ";
-} ?>
-    <?php echo $relative->name . print_r($ancestors, true) . "<br>"; ?>
+    <?php echo '<a href="'.  '?michsci_category=' . $cat_id . '" >' . print_r($ancestors, true) . "<br>"; ?>
 </div>
  <?php } ?>