'post', 'posts_per_page' => 3, 'orderby' => 'rand' ); // Allow dev to filter the arguments $posts = apply_filters( 'beginner_posts_query_404_args', $args ); // Our hero! $posts = new WP_Query( $args ); // Display the posts if ( $posts->have_posts() ) : while ( $posts->have_posts() ) : $posts->the_post(); get_template_part( 'partials/content' ); endwhile; endif; // Reset the query. wp_reset_postdata(); ?>