Title: PHP Coding Help for WP-list-pages
Last modified: August 19, 2016

---

# PHP Coding Help for WP-list-pages

 *  [chazbeaner](https://wordpress.org/support/users/chazbeaner/)
 * (@chazbeaner)
 * [18 years ago](https://wordpress.org/support/topic/php-coding-help-for-wp-list-pages/)
 * I’m trying to list my WP pages and exclude one specific one. This is the code
   that I have:
 * <?php wp_list_pages(‘sort_column=menu_order&depth=2&title_li=’,’exclude=177′);?
   >
 * I’m a complete n00b when it comes to PHP but this seems like it should work…what
   am I missing?

Viewing 1 replies (of 1 total)

 *  [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * (@hallsofmontezuma)
 * WordPress Virtuoso
 * [18 years ago](https://wordpress.org/support/topic/php-coding-help-for-wp-list-pages/#post-766901)
 * Try it without separate quotes. Just use one set for all the arguments.

Viewing 1 replies (of 1 total)

The topic ‘PHP Coding Help for WP-list-pages’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Torbert](https://wordpress.org/support/users/hallsofmontezuma/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/php-coding-help-for-wp-list-pages/#post-766901)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
