'abt_testimonials', 'post_status' => 'publish', 'order' => 'DESC', 'tax_query' => [ [ 'taxonomy' => 'service_tag', 'field' => 'id', 'terms' => $seviceTag ] ] ); }else{ $args = array( 'post_type' => 'abt_testimonials', 'no_found_rows' => true, 'post__not_in' => get_option( 'sticky_posts' ), 'ignore_sticky_posts' => true, 'order' => 'DESC', ); } $all_posts = new WP_Query( $args ); if ( $all_posts->have_posts() ) : while( $all_posts->have_posts() ):$all_posts->the_post(); $custom = get_post_custom(get_the_ID()); ?>