From: Anthony Talarico Date: Tue, 22 Dec 2015 18:35:26 +0000 (-0500) Subject: set order for breadcrumbs by parent in hierachy X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=33a3d57d2e1eb885193f9b6f58bf59345c06c958;p=WP-Plugins%2Fmichsci-products.git set order for breadcrumbs by parent in hierachy --- diff --git a/views/product_detail.php b/views/product_detail.php index b6718f2..adc5fa3 100644 --- a/views/product_detail.php +++ b/views/product_detail.php @@ -1,10 +1,12 @@ 'parent', 'hierarchical'=> true, - + ); -$array = wp_get_post_terms($product->ID, 'michsci_category', $args); -$relatives = array_reverse($array);?> +$relatives = wp_get_post_terms($product->ID, 'michsci_category', $args); +//$relatives = array_reverse($array); +print_r($relatives);?> " . $relative->name . "" . " > "; } ?>