Listing only specific pages in main menu
-
Hi,
I am building quite a large site, which is mainly built on pages rather than posts. I have the pages organised at the right side bar, which works perfectly. However, these pages also appear at the top main navbar. In the top navbar, I only want to include very specific pages, such as ‘about’ and ‘contact’, and exclude the rest. How do I do that? I thought I would need to write them manually in the code, which is not problem since they won’t change… The current code for the top navbar is the following:
<div id=”nav”>
-
<?php if ( is_home() ) {wp_list_pages(‘title_li=&depth=1’);} else { ?>
- /”>Home
<?php wp_list_pages(‘title_li=&depth=1’); ?>
<?php } ?></div>
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Listing only specific pages in main menu’ is closed to new replies.