'abt_promotion',
'posts_per_page' => 12,
'paged' => $paged
);
$all_posts = new WP_Query( $query_args );
$temp_query = $wp_query;
$wp_query = null;
$wp_query = $all_posts;
if ( $all_posts->have_posts() ) :
while( $all_posts->have_posts() ):$all_posts->the_post();
$custom = get_post_custom(get_the_ID());
$terms = get_the_terms( get_the_ID(), 'service_tag' );
$promotion_tax = '';
$i = 0;
if( $terms ){
foreach( $terms as $term ){
$i++;
$promotion_tax .= $term->term_id . '_promotion_tags';
if( count( $terms ) > $i ){
$promotion_tax .= ' ';
}
}
} ?>