From: Anthony Talarico Date: Tue, 22 Dec 2015 18:21:06 +0000 (-0500) Subject: changed ancestors to terms X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d67416ae94933e3573ecc0b1f6adcf89be153fd3;p=WP-Plugins%2Fmichsci-products.git changed ancestors to terms --- 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; ?>