Password protect blog/posts page?
-
Hello— I have a weblog filled with posts of videos for which I want to restrict access, and I want a single password for the weblog page. I’m not worried about anyone figuring out the exact URLs of the video files, so I’m not worried about high security— low security is fine. The obvious thing is to use the built in password tool on on the page editor, but to my horror after I promised my client I could protect the blog I find that this is the one page you *can’t* protect?!
I found a category password protector plugin but it doesn’t protect the blog page, it only applies a more or less global password to all the designated posts… so the blog page is ugly and unusable (a user sees no thumbnails, and has to unlock each video). There are plenty of plugins which will lock down the whole site, but that’s no good. I’ve spent many hours on this and early on thought I found something that makes sense here: https://wordpress.com/forums/topic/password-protected-page-not-working/
“Hi,
You cannot use the default wordpress setting to password protect your static page that you then set as your posts page if you follow.You need to set a custom template for your posts page.”
…The user proceeds to suggest code, which I tried but couldn’t get to work since I don’t understand the php too well (note that this solution was given for a WordPress.com question, but was marked down as being inapplicable as being a .org solution). I could combine the code well enough and get a page to render, but the password field would not appear (the password prompt does though). And I was having trouble with code redundancy, and isolating the code rendering the naked content from the code that generates the password stuff (I had another “clean” non authenticated browser as a test).
Is there not some easier way to get this accomplished? I’m wanting to avoid making some non-dynamic static pages that I have to just keep adding static links and pagination to, since that’s poor use of time, and defeats the purpose of WP. Thank you in advance!
- The topic ‘Password protect blog/posts page?’ is closed to new replies.