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:

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:

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.


Other Posts

  • This field is for validation purposes and should be left unchanged.