'post', 'posts_per_page' => absint( 4 ), 'ignore_sticky_posts' => true, ); if ( ! empty( array_filter( $content_ids ) ) ) { $args['post__in'] = array_filter( $content_ids ); $args['orderby'] = 'post__in'; } else { $args['orderby'] = 'date'; } } else { $cat_content_id = get_theme_mod( 'blog_paper_small_list_category' ); $args = array( 'cat' => $cat_content_id, 'posts_per_page' => absint( 4 ), ); } $query = new WP_Query( $args ); if ( $query->have_posts() ) { ?>
have_posts() ) : $query->the_post(); ?>