absint( $block_cat ), 'post_type' => 'post', 'posts_per_page' => 3, 'post_status' => 'publish', 'ignore_sticky_posts' => 1, ); } elseif( 'post_ids' == $theme_options['blocks_type'] && !empty( $block_pids ) ){ $block_ids = explode(',', $block_pids); $block_args = array( 'post__in' => $block_ids, 'post_type' => 'post', 'posts_per_page' => 3, 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'orderby' => 'post__in', ); } else{ $block_args = array( 'posts_per_page' => 3, 'post_type' => 'post', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, ); } $block_query = new WP_Query( $block_args ); if( $block_query->have_posts() ){ while( $block_query->have_posts()){ $block_query->the_post(); ?>