您必须添加新的page template, 这是您已经用于页面的模板的副本。
然后简单地添加a new loop:
$portfolio_items = new WP_Query( array(
\'post_type\' => \'portfolio\',
\'posts_per_page\' => 5,
// \'\' => \'\', # Other arguments here
) );
if ( $portfolio_items->have_posts() )
{
while ( $portfolio_items->have_posts() )
{
$portfolio_items->the_post();
// Example output:
the_thumbnail();
the_content();
}
wp_reset_postdata();
}