Title: Adding multiple arguments in WP List Pages?
Last modified: August 18, 2016

---

# Adding multiple arguments in WP List Pages?

 *  Resolved [the37report](https://wordpress.org/support/users/the37report/)
 * (@the37report)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/adding-multiple-arguments-in-wp-list-pages/)
 * Hi! I’m wondering how one goes about putting multiple arguments into one WP List
   Pages tag.
 * The basic tag:
    <?php wp_list_pages(‘arguments’); ?>
 * I need to figure out how to simultaneously use page depth (which my site currently
   has) and also exclude a page. I’ve tried various combinations and can’t figure
   out how to use them both at once.
 * The two I need to combine are:
    <?php wp_list_pages(‘depth=-1&title_li=’); ?>
   <?php wp_list_pages(‘exclude=47&title_li=’ ); ?>
 * I tried putting both inside the parentheses, keeping both in parentheses and 
   separating them by a semicolon, and various other things, but nothing I tried
   worked. 😛
 * I hope I’m not overlooking the answer somewhere. I searched for several minutes
   and couldn’t find another post about it. Someone help! 🙂
 * Heather
    37report.net

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

 *  Thread Starter [the37report](https://wordpress.org/support/users/the37report/)
 * (@the37report)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/adding-multiple-arguments-in-wp-list-pages/#post-487435)
 * Okay, I seriously hate when this happens. As SOON as I posted this, I had one
   more idea, and of course it ended up working. The tag now reads:
 * <?php wp_list_pages(‘exclude=47&depth=-1&title_li=’); ?>
 * So in case anyone else ever has trouble with this, the & separates the arguments.
   🙂
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/adding-multiple-arguments-in-wp-list-pages/#post-487437)
 * Hey, just glad you got what you needed! And thanks for marking resolved too!

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

The topic ‘Adding multiple arguments in WP List Pages?’ is closed to new replies.

## Tags

 * [arguments](https://wordpress.org/support/topic-tag/arguments/)
 * [WP List Pages](https://wordpress.org/support/topic-tag/wp-list-pages/)

 * 2 replies
 * 2 participants
 * Last reply from: [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/adding-multiple-arguments-in-wp-list-pages/#post-487437)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
