show_messages(); ?> ID ); ?>
>

ID,'item_tag'); if ($tags) { $tag_ids = array(); foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; $args=array( 'post_type' => 'item', 'post__not_in' => array($post->ID), 'post_type' => 'item', 'post_status' => 'publish', 'posts_per_page' => 4, 'orderby' => 'date', 'order' => 'title', ); $args['tax_query'] = array( array( 'taxonomy' => 'item_tag', 'terms' => $tag_ids, 'field' => 'id' )); $related_posts = query_posts($args); if( !empty($related_posts)) { echo apply_filters('apptivo_ecommerce_related_products_label','
'); do_action('apptivo_ecommerce_after_relatedproducts'); echo '