WordPress.org

Ready to get started?Download WordPress

Forums

hidden child pages? (4 posts)

  1. mnutz
    Member
    Posted 5 years ago #

    Hi all,

    We have a wordpress site as a intranet team site that is visited by team leaders and staff.

    We have a parent page called "Seniors Area" that is password protected, however it has 2 child pages. These child pages are visible to anyone that scrolls over the tab and even though they are password protected as well we would like for them not to appear at all unless a senior has the password for the parent page.

    I know we could make them private but we want as few people as possible to have access to the admin area.

    is there anyway we can do this?

  2. scribu
    Member
    Posted 5 years ago #

    There is no way to do this without some custom coding to modify the behaviour of wp_list_pages().

  3. mnutz
    Member
    Posted 5 years ago #

    any ideas on where to start?

    My PHP knowledge is very, very basic as I have just started to learn it.

  4. scribu
    Member
    Posted 5 years ago #

    The child pages would stay hidden until a user inserts a password for a seniour post.

    You would have to check if such a password was inserted by the current user for the parrent page (the only way to do this is if the password is stored in a cookie - not sure if WP already does this or not).

    You have to find out what happens exatly when a user inserts a password to view a post and work from there.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags