• 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 demo

demo

Creating menus based on login status – alternate version

Chad Butler · Oct 30, 2013 ·

Over in this post, I described a method of displaying different menus to users based on their login status by setting up your theme to display the different menus.  But isn’t there an easier way that doesn’t involve theme edits?

Yes.  And I’m glad you asked that question.

This method is even easier and simply requires you to drop the included code snippet into your theme’s functions.php file.  You will need to update the variable names in the snippet to reflect your menu names.

There is now a Logged In Menus Extension that makes the entire process as easy as installing a plugin.

Continue Reading →

Displaying the post access level when using the PayPal addon

Chad Butler · May 3, 2013 ·

Here is a handy function that I wrote to display the post access level when a user is not logged in OR they have registered and logged in, but have not yet completed payment.

If you use the PayPal addon module, you may find this useful for all kinds of different ideas.  The concept is easily adapted from what is displayed here.  

Continue Reading →

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 →

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Go to Next Page »

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