From 33a3d57d2e1eb885193f9b6f58bf59345c06c958 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 22 Dec 2015 13:35:26 -0500 Subject: [PATCH] set order for breadcrumbs by parent in hierachy --- views/product_detail.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 . "" . " > "; } ?> -- 2.17.1