• Resolved the37report

    (@the37report)


    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

    (@the37report)

    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. ??

    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.