WordPress.org

Support

Support » How-To and Troubleshooting » hidden child pages?

hidden child pages?

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • There is no way to do this without some custom coding to modify the behaviour of wp_list_pages().

    any ideas on where to start?

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

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘hidden child pages?’ is closed to new replies.
Skip to toolbar