Title: Exclude Page Code Fix
Last modified: August 18, 2016

---

# Exclude Page Code Fix

 *  [Haris Nadeem](https://wordpress.org/support/users/monst3r/)
 * (@monst3r)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/exclude-page-code-fix/)
 * I don’t know PHP, and I want to exclude pages from the page list in my header.
   How do I do that? I read [http://codex.wordpress.org/wp_list_pages#Exclude_Pages_from_List](http://codex.wordpress.org/wp_list_pages#Exclude_Pages_from_List)
 * but my title code is a bit different. And when I try to use this it gives me 
   errors. Please some one make me the code to exclude pages (page ID 228) so that
   I can put it in my site.
 * The page list code is something like this in my theme:
 * `<?php wp_list_pages ('sort_column=menu_order&depth=1&title_li='); ?>`
 * My blog: [http://www.sizzledcore.com](http://www.sizzledcore.com)
 * Thanks,
 * Haris

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [Haris Nadeem](https://wordpress.org/support/users/monst3r/)
 * (@monst3r)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/exclude-page-code-fix/#post-593534)
 * Someone please me out! I need this urgently.
 * Thanks,
 * Haris
 *  Thread Starter [Haris Nadeem](https://wordpress.org/support/users/monst3r/)
 * (@monst3r)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/exclude-page-code-fix/#post-593537)
 * Anyone here? 🙁
 *  [ah642403hy](https://wordpress.org/support/users/ah642403hy/)
 * (@ah642403hy)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/exclude-page-code-fix/#post-593544)
 * I think that’s what you want:
    `<?php wp_list_pages ('sort_column=menu_order&
   depth=1&exclude=228&title_li='); ?>`
 *  Thread Starter [Haris Nadeem](https://wordpress.org/support/users/monst3r/)
 * (@monst3r)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/exclude-page-code-fix/#post-593546)
 * Hey, thanks. I’ll try it and let you know 🙂
 *  Thread Starter [Haris Nadeem](https://wordpress.org/support/users/monst3r/)
 * (@monst3r)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/exclude-page-code-fix/#post-593549)
 * It’s working! Thanks a lot! 😀
 *  [Simon Wheatley](https://wordpress.org/support/users/simonwheatley/)
 * (@simonwheatley)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/exclude-page-code-fix/#post-593943)
 * This plugin does what you want, with no template meddling needed: [http://wordpress.org/extend/plugins/exclude-pages/](http://wordpress.org/extend/plugins/exclude-pages/)
 * HTH, Simon

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Exclude Page Code Fix’ is closed to new replies.

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [Simon Wheatley](https://wordpress.org/support/users/simonwheatley/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/exclude-page-code-fix/#post-593943)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
