6, 'ignore_sticky_posts' => true, 'paged' => '', ); $cats = get_theme_mod( 'cleanportfolio_front_page_category' ); if ( is_array( $cats ) && ! in_array( '0', $cats ) ) { $args['category__in'] = $cats; } /** * Show 6 latest posts */ $recent_posts = new WP_Query( $args ); /* Start the Loop */ while ( $recent_posts->have_posts() ) : $recent_posts->the_post(); get_template_part( 'template-parts/content/content', 'archive' ); endwhile; wp_reset_postdata(); ?>