'page', 'name' => 'portfolio' ); $posts = get_posts( $args ); foreach ( $posts as $post ) { setup_postdata( $post ); // Include the page content template. get_template_part( 'template-parts/content', 'page' ); // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) { comments_template(); } } wp_reset_postdata(); ?>