Limit the Number of Pages in Your Wordpress Navigation Bar

We will show you how to make specific pages show up in your navigation Structure.

Using the “include” function in Wordpress you can specify the exact number of pages you want to show in your navigation.

Note -There are plugins which will order the pages for you, but I have not found any plugins which will limit the number of pages showing. Also page order plugins can slow down your page load.

Example: Show traffic is gold.
You need to edit the header.php file found here:
wp-content/themes/your-theme/header.php

Open the file with your favorite editor.
Search the file for “wp_list_pages”

The default should look like this:

Change to this

Upload the file and your site should only show the pages you’ve indicated.

Join the forum discussion on this post - (1) Posts

Related posts:

  1. Excluding Pages In The Wordpress Sidebar
  2. New Twitter Navigation Bar?
  3. Making WordPress SEO Friendly URLS
  4. Excluding Categories in Wordpress Sidebar Widget
  5. Protect Your Wordpress Site From a Malicious Attack
  6. How to Create an Email Signature in Thunderbird
  7. Adding A Wordpress Blog to Your Facebook Page
blog comments powered by Disqus