This should work for you to exclude 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); ?>
If you want to exclude via page title you can do this
<?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); ?>
Related Posts:
- How to count current user’s pages?
- How to exclude shortcode from specific page IDs if it’s set to global
- How to update the counter of private pages in the dashboard?
- Exclude pages by menu order
- Exclude child pages args array
- Search results to be only posts & children of page ID
- How to get an array of pages ID by some page’s slug and all its children pages in get_posts() function?
- How to exclude sidebar from pages?
- exclude page element from specific pages
- How do I count the number of pages a user has seen on my site, and force them to log in after a certain amount
- How to disable posts and use pages only
- Custom SQL Query for WordPress page
- Get next/previous cousin page
- I want only my sub-pages to be clickable in the navbar
- How restrict page for users logged? [closed]
- Only allow new subpages to be created
- Hide Visibility Option From WordPress Publish Metabox
- How do I turn comments off for pages, but not posts?
- How to make nested page structure?
- Redirect to a page if ancestors is empty
- List Child Pages of Parent Parent Page (Child pages from Grand Parent)
- How to add meta boxes to Pages
- How do I create a separate page for each author?
- Overriding the currently selected menu item
- Missing parent page attribute
- Hiding Page by Title from Editing
- Two Search pages, One search form
- Why doesnt ONE of my links in the footer work properly? [closed]
- Create subpage – filter parent pages list
- Use lots of pages, or categories/posts?
- Get page by its ID and display it on another one
- creating and styling a within a page
- How do i change page template in bulk?
- What are trackbacks?
- Determine page content based on page parent
- How to enumerate a list of posts?
- How to show the root webpage on all subpaths
- How can I redirect to my custom page without loading the Dashboard itself?
- Can’t get done anything with admin.php response
- Role – edit page but not publish
- get_pages() & “child_of”
- Unique page URL redirect to file_get_contents() at domain
- Cannot add a class to h2 tag
- How to detect if is_404() or is_page() or etc…? [closed]
- Redirect page to default subpage
- WordPress pages creation work distribution & then combining – Localhost XAMPP
- Add a static page that links to homepage
- How can I get the blog page ID?
- How to have a next page for post?
- Can I change the “Home” text in the menu?
- Search child pages from a specific page parent
- Proper procedure for wp_insert_post?
- Read more on pages WordPress
- How to disable delete option for a specific page? [closed]
- Weebly Migration to WordPress [closed]
- Need to create a custom page on a website
- How To Render Shortcode In AJAX Response?
- How to create different template designs for different pages in WordPress [closed]
- Do I have to widgetize my pages?
- Page templates in subdirectories and auto generator
- Use page template for custom $_GET content
- Get rid of “comment” field on non-blog pages [duplicate]
- Custom page only editable by one user
- Page Title repeating
- How to control display of page lists on sidebar that doesn’t have childrens
- Is there a template tag/function for getting the URL (or slug or name or ID) of the blog page when using a “static” front page
- Problems in creating a static site with WordPress
- Creating new page/tab in groups section not working! [closed]
- Prompting for review / reapproval of page content
- Limit the amount of main pages
- Add separate list of pages under Admin
- add title to widgets of wordpress
- Custom user tables not working after migration
- remove “Edit” from select pages
- Add custom action to the page listing screen
- How to list pages from an author?
- How can a .css file be applied to a virtual page?
- WordPress blog posts template bug [closed]
- Checkboxes to automatically create pages when I activate a theme
- Cannot update page – with too many characters?
- Share a folder with files
- Is it possible to embedd this web app to my website [duplicate]
- Using external DB within wordpress
- Author information on all pages
- My pages disappeared from the list
- Pre-populating new Page creation with shortcodes
- WordPress Pages “allow comments” meta option can’t be checked
- Loading internal page
- Firing page_publish where page is child page
- Add role and edit page capabilities
- Google indexed pages for one page site
- WordPress, page 2 shows the same posts as page 1
- Parent for a single (single.php)
- Create a new page for each form selection
- pagination does not work with query_posts. Help! [duplicate]
- How can one get page by pagename if it is a child page?
- Archive with specific keyword by category sorted by date
- How to pass the Querystring in pages?
- Edit the text location of a form
- Fresh WordPress installation not able to simply show page content