Category: ID, $taxonomy, array( 'fields' => 'ids' ) ); $separator = ', '; if ( ! empty( $post_terms ) && ! is_wp_error( $post_terms ) ) { $term_ids = implode( ',', $post_terms ); $terms = wp_list_categories( array( 'title_li' => '', 'style' => 'none', 'echo' => false, 'taxonomy' => $taxonomy, 'include' => $term_ids ) ); $terms = rtrim( trim( str_replace( '
', $separator, $terms ) ), $separator ); echo $terms; } ?>

Product Description

Not Found

ID, 'ac_product_cat', array( 'fields' => 'ids' ) ); $args = array( 'posts_per_page' => 3, // you may edit this number 'orderby' => 'ASC', 'tax_query' => array( array( 'taxonomy' => 'ac_product_cat', 'field' => 'id', 'terms' => $custom_taxterms ) ), 'post__not_in' => array( $post->ID ), ); $related_items = new WP_Query( $args ); // loop over query if ( $related_items->have_posts() ) : ?>

Similar Products

have_posts() ) : $related_items->the_post(); ?>

Category: ID, $taxonomy, array( 'fields' => 'ids' ) ); $separator = ', '; if ( ! empty( $post_terms ) && ! is_wp_error( $post_terms ) ) { $term_ids = implode( ',', $post_terms ); $terms = wp_list_categories( array( 'title_li' => '', 'style' => 'none', 'echo' => false, 'taxonomy' => $taxonomy, 'include' => $term_ids ) ); $terms = rtrim( trim( str_replace( '
', $separator, $terms ) ), $separator ); echo $terms; } ?>

View Product