Tag: is_user_logged_in

  • Working with Templates: Block a Category Archive Loop Advanced

    This post builds on the example we looked at in Working with Templates: Block a Category Archive Loop.  That example describes how to replace the results of the loop with a message directing the user to login.  Instead of replacing with a message, this example will show you how to replace with the WP-Members login…

  • Working with Templates: Block a Category Archive Loop

    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…

  • Working with Templates: a Basic Example

    This will be the first in what I hope to be a series of posts on adding WP-Members elements directly to your theme templates (or custom templates).  Being able to customize you theme at the template level will give you an additional layer of customization that will allow you to do almost anything with the…

  • Displaying sidebar widgets based on login status

    Many users would like to display different sidebar widgets based on the user’s login status, including restricting certain content from view of visitors who are not registered or logged in.  This tutorial will explain how to set up widget areas to display based on the user’s login status.  This is similar to displaying different menus…

  • Blocking content in a custom template

    Lately, this question has come up a lot. How do you block content that is outside the loop and still display the login/registration forms on the page. This type of issue may come up if you are using a custom query to put some specific content on a specific page, or it might be that…