WordPress.org

Ready to get started?Download WordPress

Forums

Problem with wp_list_pages() (6 posts)

  1. crowspeaker
    Member
    Posted 9 years ago #

    I included this in in my sidebar:

    <ul>
    <?php wp_list_pages('title_li='); ?>
    </ul>

    The list appeared on the main page of the blog, no problems other than bad style. But when I clicked on the child link (second page), I got this error:

    Warning: Invalid argument supplied for foreach() in /home/crowspea/public_html/wp-includes/template-functions-post.php on line 368

    I have since removed the the code. There are currently only two pages (I plan to add more), and I am not using a different template other than my default theme template.

    Anyone see this before?

    Crow

  2. moshu
    Member
    Posted 9 years ago #

  3. crowspeaker
    Member
    Posted 9 years ago #

    Moshu,

    Thanks for the reply.

    I went to http://mosquito.wordpress.org/, But I'm not certain how to proceed. I saw the diff file attached to one of the bug reports. Am I supposed to apply that to my installation of WordPress? If so, how? I'm sorry for being a noob.

    I really appreciate any help you can give me.

    Thanks,

    Crowspeaker

  4. moshu
    Member
    Posted 9 years ago #

    Sorry, the fix is here:
    http://trac.wordpress.org/changeset/2421
    You can go by two methods: either apply the changes to your files, or download the two files and replace the existing ones in your WP install wp-includes directory.

  5. crowspeaker
    Member
    Posted 9 years ago #

    You ROCK.

    Thanks!

  6. holyroller
    Member
    Posted 9 years ago #

    I agree!!

    Thanks for the fix!

Topic Closed

This topic has been closed to new replies.

About this Topic