name ) ) { $cat_ids[] = $service_term->term_id; } } } } ?>

'2', 'post_type' => 'abt_promotion', 'post_status' => 'publish', 'order' => 'DESC', 'post__not_in' => [$promotionID], 'tax_query' => [ [ 'taxonomy' => 'service_tag', 'field' => 'id', 'terms' => $cat_ids, ] ] ); $all_posts = new WP_Query( $args ); if ( $all_posts->have_posts() ) : ?>

have_posts() ):$all_posts->the_post(); $custom = get_post_custom(get_the_ID()); ?>