WordPress.org

Forums

[resolved] wp_list_pages() - number parameter (6 posts)

  1. john010117
    Member
    Posted 5 years ago #

    In the documentation, it says that the number parameter for wp_list_pages was added in WordPress 2.8. However, it is my belief that this is not the case or it is not fully supported, as I'm having troubles with it.

    In my template's home.php file, I put the following:

    <?php wp_list_pages('number=5&child_of=14&title_li='); ?>

    Normally, it should display only 5 recent pages that are the child of the page with the ID of 14. I have more than 5 pages under that specific parent page, but only one page showed on the list.

    Is anybody else experiencing this or is it just me? Either way, can anybody help?

  2. MichaelH
    Member
    Posted 5 years ago #

  3. john010117
    Member
    Posted 5 years ago #

    I guess I'll have to wait 'till 2.9 to see that bug fixed. Thanks for the link.

  4. Klark123
    Member
    Posted 5 years ago #

    I've had bad luck in general using the wp_list_pages number parameter!

  5. vteixeira
    Member
    Posted 5 years ago #

    I'm having this exact problem...

    This is a ridiculous bug.

  6. brduncan
    Member
    Posted 5 years ago #

    I haven't been able to solve this either.

Topic Closed

This topic has been closed to new replies.

About this Topic