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. Continue Reading →