How to Create WordPress Page Content For Member Only

| Last Updated: | In: WordPress, WordPress Snippets


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.

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.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:


, , , , , ,