Title: Need php include() Help for Nav Bar
Last modified: August 19, 2016

---

# Need php include() Help for Nav Bar

 *  Resolved [mattbaehr](https://wordpress.org/support/users/mattbaehr/)
 * (@mattbaehr)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/need-php-include-help-for-nav-bar/)
 * I need to create a site within a site. So I created a secondary header2.php for
   the second section. The header2.php needs to list a separate set of pages as 
   the main nav bar than header.php. I assume the best way to create the separate
   nav in header2.php is to use the php include tag on a secondary page template.
   Does that sound right?
 * I know there are some page exclude plugins, but how can I exclude pages from 
   two different header.php files on the same site?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [mattbaehr](https://wordpress.org/support/users/mattbaehr/)
 * (@mattbaehr)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/need-php-include-help-for-nav-bar/#post-1438978)
 * Nevermind. I figured it out. I just need to use the exclude part of the wp_list_pages
   tag in each of the header files. Duh. Sometimes it just helps to write it out
   to get the thought process started.

Viewing 1 replies (of 1 total)

The topic ‘Need php include() Help for Nav Bar’ is closed to new replies.

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [header.php](https://wordpress.org/support/topic-tag/header-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [mattbaehr](https://wordpress.org/support/users/mattbaehr/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/need-php-include-help-for-nav-bar/#post-1438978)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
