In this example of integrating WP-Members features into WordPress Templates we will focus on the category template category.php.
With the default way of using WP-Members, your loop of a category would display titles and post excerpts, leading readers to the individual posts to either login or register. But suppose you want to limit all of that, including titles and excerpts on the category.
We will take the default (Twenty Twelve) category.php template and add a condition to it, and if the user is not logged it, we will direct the user to the login page (created with the WP-Members page=”login” shortcode), which will redirect the user back to the category page upon successful login.
To gain full access to WP-Members premium content, a current support subscription is required. You can purchase
an annual support subscription for as little as $59, which provides you with access to priority support, a
customer support forum, access to code snippets, and more.
Why wait? Choose your subscription option here.
[Why join?]