Title: Simple Syntax Question
Last modified: August 18, 2016

---

# Simple Syntax Question

 *  [RussellSipe](https://wordpress.org/support/users/russellsipe/)
 * (@russellsipe)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/simple-syntax-question/)
 * I am learning to work with php.
 * I want to exclude post #8 (Test of exclude)in my test site at [http://www.secondlifegolf.com](http://www.secondlifegolf.com).
 * I can exclude it with this command in the sidebar file:
    `<?php wp_list_pages('
   exclude=8' ); ?>`
 * Also in the sidebar is this command:
    `<?php wp_list_pages('title_li=<h2>Pages
   </h2>'); ?>`
 * How do I combine the two so that I get a single instance of the Page list with“
   Page” in H2 and item 8 excluded?
 * Thanks

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/simple-syntax-question/#post-651203)
 * Just for the record: you are not excluding a post but a [Page](http://codex.wordpress.org/Pages)!
   Big difference…
 * `<?php wp_list_pages('exclude=8&title_li=<h2>Pages</h2>'); ?>`
 *  Thread Starter [RussellSipe](https://wordpress.org/support/users/russellsipe/)
 * (@russellsipe)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/simple-syntax-question/#post-651286)
 * Yes, I “mispoke”. I DID mean a Page, not a Post. Thank you for your help.

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

The topic ‘Simple Syntax Question’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 2 replies
 * 2 participants
 * Last reply from: [RussellSipe](https://wordpress.org/support/users/russellsipe/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/simple-syntax-question/#post-651286)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
