Forums

Private pages and wp_list_pages (6 posts)

  1. pad
    Member
    Posted 1 year ago #

    Is there any way to get private pages to show up in wp_list_pages?

  2. moshu
    Member
    Posted 1 year ago #

    Nope. Private is just that - private = visible only to the author.

  3. pad
    Member
    Posted 1 year ago #

    Why can't they be visible to the author in the menu then?

  4. Kafkaesqui
    Moderator
    Posted 1 year ago #

    You would have to ask the developers that question. Better yet, you could submit a ticket asking for this 'enhancement' to wp_list_pages():

    http://trac.wordpress.org/

  5. BoSoxFan
    Member
    Posted 1 year ago #

    There is a ticket opened on this

    http://trac.wordpress.org/ticket/6939

    Disagree with moshu on this ... wp_list_pages() doesn't return a private page even if the current user is the author. Also, users (other than the author) can be given the capability to view private posts and/or pages.

    wp_list_pages() should return private pages if the user has the right to view the page.

  6. Mrsecretary
    Member
    Posted 11 months ago #

    Whether it does or should do is interesting however I can't get a private page in a list and it would be really useful if this could happen; well for my purposes anyway. Anybody got any ideas as to how we can get this to happen.

Topic Closed

This topic has been closed to new replies.

About this Topic