Forums

wp_list_pages doesn't work correctly (3 posts)

  1. alexdumitru
    Member
    Posted 2 years ago #

    Hi,

    I have the following code on http://www.softsailor.com, but it doesn't work correctly:
    wp_list_pages('exclude=9895&sort_column=menu_order&title_li=&author=1'

    It should exclude the page 9895 and only show pages from author one. I've tried letting just the exclude or just the author but still it lists all the pages. Also the page 9895 does not belong to author 1.

    Do you have any idea what the problem could be ?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    The template tag, wp_list_pages(), documentation says use authors not author.

  3. alexdumitru
    Member
    Posted 2 years ago #

    You're right, I got that wrong, but what about the exlude. Why didn't that work ?

    Finally I managed to get it fixed, by including all the pages I wanted.

Topic Closed

This topic has been closed to new replies.

About this Topic