One problem you may face into when you create a static page for your home page that links to a page that now appears on the main site navigation, so you have two links to the same page – the page is usually called “Home” on the main site navigation. In this article shows how to hide a link from your site navigation so that your site’s visitor are not confused with duplicate links.

double home page

Or sometimes you want to create a page in WordPress, but do not want them listed in the header or at footer navigation area? But you still want the page is accessible, so you do not want to make them private. You can do this by excluding the page and I’ll show you how to do it.

1. If you have a “self-hosted”  site instead of one hosted on WordPress.com, you may be able to use the Exclude Pages Plugin for WordPress to hide your extra Home page link and any links that appear in your sidebar Pages navigation. By upload and activate the plugin then create or edit a page, and just exclude it from the navigation.

wordpress edit page screen

2. Edit your themes files, pages are displayed with the following code, which is generally used in the header, footer, or sidebar.

<?php wp_list_pages();?>

This will list all of your pages until you add conditions in between ‘()’. You need to use the exclude condition and find out what number ID each page has. The exclude code looks like

<?php wp_list_pages(‘exclude=18,26′ ); ?>

You can see that you have added ‘exclude=18,26′ to the original

list pages code.

Of course, we need to locate the correct ID numbers for your pages.

Go to Manage > Pages and select the name of the page in which you would like to exclude. In the address bar of your web browser will be a URL that looks like the following.

http://www.yoursite.com/wp-admin/page.php?action=edit&post=18

The number at the end, 18, is the ID number for the page and is the number you will use in the exclude code. You can do this for each page that you want to exclude as long as you put a comma between the page numbers in the code.

Related posts:

  1. How to Show Only Post Titles on Wordpress Archieve/Category Pages ( Easy Way for Novice User)
  2. Problem with Wordpress 2.9
  3. Firefox crash problem when click “Image Uploader” in wordpress 2.7.