From d67416ae94933e3573ecc0b1f6adcf89be153fd3 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 22 Dec 2015 13:21:06 -0500 Subject: [PATCH] changed ancestors to terms --- views/product_detail.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/views/product_detail.php b/views/product_detail.php index 7585d12..b6718f2 100644 --- a/views/product_detail.php +++ b/views/product_detail.php @@ -1,16 +1,17 @@ ID); -$relatives = array_reverse($array); - ?> +$args = array( + 'hierarchical'=> true, + +); +$array = wp_get_post_terms($product->ID, 'michsci_category', $args); +$relatives = array_reverse($array);?> ' . $relative_post->post_name . '' . " > " ; + echo "" . $relative->name . "" . " > "; } ?> post_title; ?>

post_title; ?>

-- 2.17.1