• When a password protection is setup on a page, it’s just common sense that this protaction with the same password should be applied to it’s children and grandchildren and so forth. I find it hard to understand how come this is not implemented in WP.

    I found the only plugin in the entire universe that does that, but not quite. The plugins name is ‘FT Password Protect Children Pages’, and it auto-protects child pages on runtime, not in the database, and thus not actually status’ing the child pages as password protected. It just copies the password insertion markup on the top of the page instead of the content, thus missing parts of the page as fx. a list of attached files in the content bottom which also need to be hidden.

    Does anyone know if this is something which is going to be implemented in the future or know of a plugin that does that correctly?

    And why on earth is it not possible to password protect categories, only posts? Tried the plugin ‘CaPa’ but it wracked my site, so I had to remove it again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • it’s just common sense that this protaction with the same password should be applied to it’s children and grandchildren and so forth.

    No – it isn’t. It may be for you in your current situation but this would cause problems for other people who might want to password protect 1 page and leave its children unprotected. I don’t think that this will be implemented in future versions of WordPress.

    Thread Starter Ambran.Com

    (@ambrancom)

    No – it isn’t. It may be for you in your current situation but this would cause problems for other people who might want to password protect 1 page and leave its children unprotected.

    Well esmi, it is to me and to quite a few others I’ve met arround the web while searching for a solution to this. The overwhole idea of inheritance is anchored in every aspect of life and specifically in IT systems and programming languages. so this is not a unique feature to expect of a very fine platform as WP.

    I would certainly argee that this sholudn’t happen by default when password protecting a page, but I would strongly argument that this HAS to be a choice.

    For a skilled WP developper this shouldn’t take more then an hour to implement. A simple checkbox with caption “Apply also to all subpages”. Upon publishing of the page, the system runs through all levels of sub pages in the database, and changes their status to ‘password protected’ with all the practicality that is involved in that, and can’t amagin that one has to do much more then applying the same password.

    I’m a .Net developer mig self, and lack the time to get into WP and PHP right now. Otherwise I would have gladly done it myself.

    Any sharp developer wants to take the lead on this?

    Would it be possible to do something like this with .htaccess?

    Thread Starter Ambran.Com

    (@ambrancom)

    I don’t know.
    Anyone has a clue on this?
    Am I the only password protection freak here? ??

    Until I get a chance to look into a .htaccess possibility, have you tried this plugin?

    https://www.ads-software.com/extend/plugins/absolute-privacy/

    Add this to top of your theme header then if anyone visits a child page without having entered the parent password they are redirected to the parent page with the password prompt.

    global  $post;
    if  ($post->post_parent && post_password_required($post->post_parent))
    	wp_redirect(get_permalink($post->post_parent));

    Note that this won’t work with grandchildren pages, only direct children and their parents.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Auto-apply password protection to child pages/categories’ is closed to new replies.