You can use the exclude=1 (where 1) is the page number. The wp_list_pages function is located in your header.php file.
Also, i recommend reading about the wp_list_pages function 🙂
Thanks niladam! 🙂
Now, here’s the ‘i sound super-dumb’ question…Where is the wp_list and header.php file?
Im sorry! Im totally new to this.
Thanks for your help!
M
In your theme’s directory (usually wp-content/themes/NAME OF YOUR THEME HERE) 🙂
Ah! Found it! But, then how do i assign a number to a page?
worked! OMG. Thanks so much for your help. I figured out the number thing. I am guessing it is auto assigned? Oh man. This is great. THanks so much!!
Page numbers (post ids) are assigned automatically in sequence. Posts, Pages, revisions, and attachments all share the same table (i.e. wp_posts) and thus the same ID sequencing.
For reference:
How do I determine a Post, Page, Category, Tag, Link, Link Category, or User ID?
niladam – THANK YOU so much for posting this.
I have been fighting with the wp_page_menu and wp_list_pages functions in the includes/ directory to get this to work – unsuccessfully I might add!
Not sure why it was not parsing properly, but it was three hours of my life I’ll never get back.
Thanks a lot for pointing out the exclude parameter.
Hi. I am a relative newbie as well. I understand the basics but not sure how I would do this with the following code…
<div id=”menu”>
<li class=”<?php if ( is_home()) { echo “current_page_item”; } ?>”>“>Home
<?php wp_list_pages(‘title_li=&depth=1’); ?>
</div><!– end menu –>
I want to exclude page 481 (which currently is in draft). Thank you for your help.