Display content for member's only using shortcode

While doing a website for a client of mine, one of the requirement was to show content to subscribers or members only. Although there is a plugin for this but I stumble upon a much simpler script. For more details, you can visit justinandlock.com for the full how to.

Since the tutorial only teach you how to create them through functions.php inside your theme files, I’ve made some modification towards the aesthetics of it. Obviously, we would want to display the login and register link for easy access to our viewers. Here is my code which you can place them inside functions.php located in your theme folder. If it’s not there, just create one. Read More