• | ', '' ); ?>
  • $ctax ) ); foreach ( $categories as $par_cat ) { if ( $par_cat->parent < 1 ) { $par_catname = $par_cat->name; $par_catid = $par_cat->term_id; echo "

    $par_catname

    "; query_posts( array( 'post_type' => $ptype, $ctax => $par_catname, 'posts_per_page' => $posts_per_page, 'order'=>'DESC', 'category__in'=>$par_catid ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); product_template(); endwhile; endif; wp_reset_query(); } } ?>