这应该可以帮助您排除via ID:
//replace the 3,8 with your page ids
<?php $args=array(
\'post__not_in\' => array(3,8),
\'post_type\' => \'page\',
\'post_status\' => \'publish\',
);
query_posts($args); ?>
如果要通过页面标题排除,可以执行此操作
<?php $exclude1 = get_page_by_title(\'Sample Page Title\'); ?>
<?php $exclude2 = get_page_by_title(\'Sample Page Title 2\'); ?>
<?php $args = array(
\'post_type\' => \'page\',
\'order\' => \'ASC\',
\'post__not_in\' => array($exclude1->ID,$exclude2->ID)
);
query_posts($args); ?>