您可以尝试使用pre\\u get\\u posts
add\\u action(\'pre\\u get\\u posts\',\'alter\\u query\');
函数alter\\u query($query){//获取全局查询var对象global$wp\\u query;
//gets the front page id set in options
$front_page_id = get_option(\'page_on_front\');
if ( \'page\' != get_option(\'show_on_front\') || $front_page_id != $wp_query->query_vars[\'page_id\'] )
return;
if ( !$query->is_main_query() )
return;
$query-> set(\'post_type\' ,\'page\');
$query-> set(\'post__in\' ,array( $front_page_id , [YOUR SECOND PAGE ID] ));
$query-> set(\'orderby\' ,\'post__in\');
$query-> set(\'p\' , null);
$query-> set( \'page_id\' ,null);
//we remove the actions hooked on the \'__after_loop\' (post navigation)
remove_all_actions ( \'__after_loop\');
}