more (wp_list_pages) tags in one file (3 posts)

  1. couberte
    Posted 10 years ago #

    I would like to have two independent page-lists in sidebar, is it possible? When I try to make it in this way:

    <?php wp_list_pages('child_of=43'); ?>


    <?php wp_list_pages('exclude=43'); ?>

    I get this error message instead of second page-list:
    Warning: Invalid argument supplied for foreach() in .../wp-includes/template-functions-post.php on line 368

  2. MichaelH
    Posted 10 years ago #

    Taking a shot at this--try:

    <?php wp_list_pages('exclude=43&'); ?>

  3. couberte
    Posted 10 years ago #

    Same result... It seems you always get result for parametres from tag #1 for every usage of wp_list_pages in one file.

    If you try:

    <?php wp_list_pages('exclude=1'); ?>
    <?php wp_list_pages('exclude=2'); ?>

    there will be page ID=1 missing in both list-pages (with page ID2 displayed). So I would like to know, if it's bug or intention:)

Topic Closed

This topic has been closed to new replies.

About this Topic