• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Archives for Templates

Templates

Working with Templates: Block a Category Archive Loop Advanced

Chad Butler · Apr 16, 2013 ·

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 form.

The tricky part in this example is that you can’t just put the login form in without modification.  Unmodified, it will post to the URL of the first post in the loop of posts.  So we’ll want to filter the form to replace that with the link to the category archive we are showing.  Continue Reading →

Working with Templates: Block a Category Archive Loop

Chad Butler · Apr 7, 2013 ·

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 →

Working with Templates: a Basic Example

Chad Butler · Apr 1, 2013 ·

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 plugin in terms of registration and post/page restriction.

This first example is just a basic look at the single post template.  Continue Reading →

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy