Password protect a portion of a site?

[ad_1]

I am adding a group of pages to a client site that need to be accessible by password only. WordPress’ built-in function is kinda clunky, so I’m reading up on 3rd party plugins. What’s your preference for, or experience with, these types of plugins?

[ad_2]
2 Comments
  1. I build this often enough; this is my approach without using any plugins 1. Create option page to store your global password from the dashboard 2. Create a page template called “password protected”. 3 in the template add a form to get password from the user 4. Use php session to issue a unique session id if the user enters the password, the page template will render the form if the session is invalid and render the page content if its session is correctly set.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer