How to Dicatate Which Pages Are Displayed in the Navigation Bar on Your WordPress Theme

Many WordPress themes these days use a dynamic navigation bar to display the navigation for pages. This is great, except when you have a ton of pages in your blog and you only want to display a select few.

The way to dictate which pages you want to show is pretty simple. I will use the WP Presstige theme code as an example. Find the following line of code in the header.php file of the WP Presstige theme:
header-code

We need to add the “include” parameter to that line of code, which will allow us to specify which pages we want listed in the navigation. See the updated code:

header-code-updated

What I did was add the following line to the beginning of the code:

include=1,2&

The 1 and 2 are page IDs so by doing this, I’ve specified that I want to include page 1 and 2 in the navigation.

Popularity: 17% [?]

Share and Enjoy:

  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Design Float
  • Fark
  • Furl
  • Propeller
  • Reddit
  • StumbleUpon
  • blogmarks
  • BlogMemes
  • Blogsvine
  • Simpy
  • Spurl
  • Technorati

Tags: , , ,

8 Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>