Do you want to create private online community using WordPress? In private “members only” setup, users have to login to access contents of the website and non-logged users cannot view any content. This can be easily implemented on any WordPress website. You can add ‘private’ functionality to WordPress blog and restrict content access to only members.
1. Private Only plugin to redirect non-logged in users
Private Only plugin is a quick way to implement members only private functionality in WordPress website. After you activate this plugin, all users who are not logged in will be redirected to login page. They can only access website contents through registration or login into website.
Plugin also provide option to set specific page as default public page visible to non-logged in users. You can also customize various settings to modify look of the login / registration page.
2. Manual php code for private WordPress site setup
Bavotasan shared php code to instantly make WordPress site ‘private’ members only. Once you add the code to functions.php file – website can be only viewed by logged in users. You can also download this in the form of a WordPress plugin.
Private website functionality is very useful in specific cases. For example: when company or small business want website to share content among employess and not with general users on the internet. This feature is worth exploring as your future client may ask for this ‘private members’ setup.