$taxonomyName = MICHSCI_CATEGORY_NAME;
$parent_terms = get_terms($taxonomyName, array('parent' => 0, 'orderby' => 'name', 'hide_empty' => false));
$output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\">Select " . MICHSCI_CATEGORY_SINGLE . "</option>";
-
// get parent categories
foreach ($parent_terms as $parent){
+<?php
+$array = get_post_ancestors($product->ID);
+$relatives = array_reverse($array);
+ ?>
+<?php foreach($relatives as $relative){
+ $relative_post = get_post($relative);
+ echo '<a href="#">' . $relative_post->post_name . '</a>' . " > " ;
+} ?>
+<?php echo $product->post_title; ?>
<h2><?php echo $product->post_title; ?></h2>
<?php
setup_postdata( $product );
the_content();
+
?>