projects
/
WP-Plugins
/
michsci-products.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e617d02
)
added category id links to breadcrumbs
author
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 22 Dec 2015 18:58:28 +0000
(13:58 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 22 Dec 2015 18:58:28 +0000
(13:58 -0500)
views/product_detail.php
patch
|
blob
|
history
diff --git
a/views/product_detail.php
b/views/product_detail.php
index
7d8f2af
..
6091c69
100644
(file)
--- a/
views/product_detail.php
+++ b/
views/product_detail.php
@@
-2,12
+2,12
@@
$args = array(
'orderby' => 'parent',
'hierarchical'=> true,
-
);
$relatives = wp_get_post_terms($product->ID, 'michsci_category', $args);
?>
<?php foreach($relatives as $relative){
- echo "<a href='#'>" . $relative->name . "</a>" . " > ";
+
+ echo '<a href="'. '?michsci_category=' . $relative->term_id . '" >' . $relative->name . "</a>" . " > ";
} ?>
<?php echo $product->post_title; ?>
<h2><?php echo $product->post_title; ?></h2>