Restrict certain pages or posts to logged in users
This plugin will allow you to restrict all, none, or certain pages/posts to logged in users only.
In some cases where you are using WordPress as a CMS and only want logged in users to have access to the content or where you want users to register for purposes unknown so that they can see the content, then this plugin is what you are looking for.
Simple admin interface to select all, none, or some of your pages/posts. This now works for posts!
- Deactivate the plugin through the ‘Plugins’ menu in WordPress
- Delete the previous
pagerestrictfolder from the
- Upload the new
pagerestrictfolder to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Visit Settings>Page Restrict in the admin area of your blog.
- Select your restriction method (all, none, selected).
- If you chose selected, select the pages you wish to restrict.
You can't selet multiple pages. Only one page.
Now i am sad! 🙁 It worked perfectly now I have no other solution as easy as this was.
- wp_login_url() and wp_register_url() usage
- wp_lost_password_url() usage.
- Additional i18n support.
- Added internationalization support for pending translate.wordpress.org updates.
- Fixed redirect URL issue.
- Removed wp_specialchars (deprecated function), replaced with esc_html.
- Updated possible security flaw.
- Added filters for modified page/post excerpt/archive content.
- Removed div.page-restrict-output from unmodified content output. This was causing theme compatibility issues.
- Fixed a bug with non-existent post object.
- Added filter for username and password labels in login form. More planned updates in 2014.
- Added login error messaging back to referring URI if the user’s login is unsuccessful.
- Added div around output with CSS class (page-restrict-output) for more styling flexibility.
- Quick update to remove some outdated functions and global vars (clean up).
- Fixed bug where pages were not being restricted. Confirmed most compatibility with WP 3.3.
- Added support for blog home page (included with archives and search listings) for post restriction.
- Update to fix bug where only 5 blog posts display in the settings screen.
- Quick update to fix an in_array() warning issued when settings are checked but have not been saved.
- Added support for restricting posts.
- Fixed bug where choosing the “selected” restriction method would result in all pages being restricted if no pages are checked in the plugin settings.
- Changed URL’s to wp-login.php to use get_bloginfo(‘wpurl’) instead of get_bloginfo(‘url’) to ensure proper redirection when users install files outside of the site’s document root.
- Fixed a bug that added slashes to quotes in the custom restriction message.
- Replaced while loop with foreach for display list of pages
- Added meta box to write/edit pages page
- Added capability to display or not display the login form
- Updated admin styling
- Restrict commeting or viewing comments on restricted pages
- Restrict search results also so restricted pages are not shown
- Added ability to change restriction method
- Rewrote and simplified areas pertaining to the list of pages
- Added back no_cache add_action that was lost in the admin separation
- Removed duplicate add_action for the admin page
- Updated version number scheme
- Updated code for readability
- Moved admin functionality to separate file included only when is_admin is true
- Updated for PHP4 Support
- Restored end PHP tag at end of script
- Initial Public Release