How to Create WordPress Page Content For Member Only

Hi folks hope you are doing good, this is a quick tutorial. In this tutorial, I will explain how to create WordPress page content for member only.

If you want to make some content of your page or post is private and only available for website member only, then keep your close attention in this post. In this tutorial, I will create a short code to protect your content from a non-member of your website.

wordpress-functions-php-file

How to Create WordPress Page Content For Member Only

Open functions.php file from your current activated theme folder and copy paste below code at the end of the file. Below shortcode allows you to share the private content in your page or post for your website member only.

It will appear login form for the non-member user. This will also boost signup on your website.

Now you can use the [mem] ..your content.. [/mem] into your pages/posts to write content private, only for member only.

Over to You

If you enjoy this tutorial, do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , , ,