Access Category Password

Description

This plugin makes it possible to restrict the access of posts contained in categries by setting a password and giving the impacted categories. The content and the excerpt of these posts are replaced by a password form that the user can fill out to get access. The WordPress generated feeds are modified (the description is replaced by a sentence that you can define).

Here’s the list of the settings (see screenshots for further infos):

  • Set the password.
  • Check the categories that has to be protected
  • Check the users granted to access the categories without password
  • Tell if the excerpt should be displayed or not
  • Set the info message that display before the password form
  • Set the placeholder in password field
  • Set the error message when typing the wrong password
  • Set the valdation button text
  • Set the text replacing the feed item description of protected posts
  • You can style the form using the available classes in your styles.css file

Availabe languages : English, French, Simplified Chinese (thanks to Changmeng Hu), German.

This plugin uses php Sessions (more secure than cookies) to keep in mind the authenticated users. The password is crypted before it is stored. The regular feed content is filtered to avoid content display of restricted categories posts.

Screenshots

  • Access Category Password options page (beginning with version 1.4)
  • Protected content in Twenty Fifteen Theme
  • When wrong password...

Installation

  1. Type “access category password” in the extension adding search form and install it or, after dowloaded the package, extract the access-category-password directory and upload it to the /wp-content/plugins/ directory of your WordPress installation
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings » Access Category Password to set up the plugin

FAQ

Could I protect more than one category

Yes. You just have to check the right checkboxes in the plugin options screen.

Could I style the password form?

Yes. Beginning with version 1.4 of Access Category Password. You can add in your regular theme stylesheet (style.css) the selectors and their properties. Here are the available classes:
* acpwd-container class: the container of all elements that replace the content.
* acpwd-info-message class: the <p> tag containing the info message.
* acpwd-form class: the <form> tag.
* acpwd-pass class: the <input type="password"> tag.
* acpwd-submit class: the <input type="submit"> tag.
* acpwd-error-message class: the <p> tag containing the error message.

Could I display the excerpt but not the content of a protected article?

Yes. You just have to check the “Only single posts” checkbox in admin options panel.

Could I set more than one Password?

No, sorry, I wanted to keep the plugin simple. But this would be a functionnality that could be added later,…

Are the attachments in the posts protected ?

No, sorry, I didn’t find yet a solution to solve this. So if someone gets the link to the attachment of a protected post, he will be able to download it.

Is this plugin compatible with Gutenberg, the new WordPress Editor?

Yes.

Reviews

Doesn't password protect like you may expect

Important to read the description. This still allows both Search engines and real humans to access much of the content inside your category. It simply hides the actual “body” of the post. Nothing else. Sidebars, Featured Image, Post Title, Date, Author, everything on the page is still right there. Only thing hidden is the actual post content itself.

If you’re using this because you dont want people to see whats inside a category (actually get blocked when trying to go to the URL), this plugin will not help you.

Works very well!

I want our vistitors to be able to see the excerpts but if they want to read the articles they have to use a password. The password changes every month so it’s really great this plugin can handle 1 password for multiple articles based on categories.

I don’t get any warnings or errors mentioned by other users, the plugin works just fine!

Read all 6 reviews

Contributors & Developers

“Access Category Password” is open source software. The following people have contributed to this plugin.

Contributors

“Access Category Password” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Access Category Password” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.4.1

  • Fixed text domain issue.

1.4

  • possibility to grant the selected roles to get access without providing the password.
  • Make it possible to show the excerpt (in category listing for instance) even if the article is protected.
  • Added zn_CN (thanks to Changmeng Hu) and de_DE translation.
  • Added classes to password form to ease the styling.
  • Fixed impossible to add working html tags to info message.

1.3

  • Fixed the modified info message (in admin option panel) not beeing taken in account on frontpage.
  • Added the possibility to change the validation button string.
  • Better subitting text filtering in admin panel (using WP esc_attr() function)
  • Fixed obsolete description strings.

1.2

  • Fixed the characters already sent error on activation (it was simply an encoding issue).
  • Keep now the regular feed (doesn’t replace it) and sanitize it.
  • Better session handling (session destroy on logout).

1.1

  • Fixed wrong custom feed template inclusion path. Sorry for that!

1.0

  • First release. Thanks for your feedback!