• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

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 » Plugins » WP-Members » Documentation » FAQs » The plugin isn’t blocking my content

The plugin isn’t blocking my content

First, it may seem a little silly to say this, but it has happened – make sure you log out of the admin before you test. If you are logged in as admin, you will be able to click through to view the post (with the exception of role and membership restriction). To know if you are logged in, we suggest using the WP-Members login widget, included in the installation.

For posts, be sure you are using either the “read more” tag (`<!–more–>`) or the plugin’s auto-excerpt feature (found in the plugin’s main options). The blocking only takes place on single posts. Without this tag or a set excerpt, a full post will display on your home page or on an archive/category page.

There is an individual setting at the post level to “hide” content. Any content marked as “hidden” will be removed from the Loop completely if the user is not logged in. The difference in these settings is that blocked content will be excerpted, hidden content will be completely removed.

Check your settings for both posts and pages. The default installation is to block posts by default but not pages.  If you’ve installed the plugin and intend to block pages, you will need to set that in the plugin’s options.

Content other than single post/pages

The plugin does not block archives, search results, category lists, or other summaries from view as these are not technically “pages.”  Instead, these templates display a list of post excerpts truncated at the “read more” tag or by the auto-excerpt function.  If you want to block these completely from view, you will need to set up a redirect away from those templates or customize the way your template displays the Loop based on user login state. Alternatively, you can simply mark content as “hidden.”  This also is true for creating a “blog page.”  Even if you have the plugin set to block pages, WordPress still treats its “blog page” as a summary of posts and not a “page.”

Also, please note that certain plugins (and themes) not only use Custom Post Types (which are not automatically handled by the plugin) and may possibly use custom post meta outside WP’s main Loop.  This means that there are certain situations that may require special handling.  This includes certain event calendars, forums, LMS plugins, and WooCommerce.  It does not mean that these are incompatible with WP-Members, but simply that blocking certain pieces of content may not fall directly within the plugin’s core process.

Working with builder plugins/themes

Depending upon how a builder utilizes content, the plugin’s default method of handling WP’s $content variable may not result in restricted content. In many cases, the default plugin handler is fine because the filter used to handle content blocking has been adjusted in when it fires to accommodate some of the most popular builders. However, builder plugin/themes are still the “wild west” with no standardization – they all handle things their own way. If you’re using a builder and have issues with content blocking, refer to this article for simple ways to handle it.

For a broader discussion of this topic, please see the post “How the Plugin Handles Blocking Content“. The “Initial Setup” video is also helpful in understanding how the plugin works.

  • Getting Started
  • Recommended WordPress® Settings
  • Plugin Settings
    • Options
    • Fields
    • Dialogs
    • Emails
    • New Feature Settings
  • Managing Content
    • Restricting Posts
    • Restricting Pages
    • Show Excerpts
    • Custom Post Types
  • Managing Users
    • Import Users
    • Export Users
    • Edit Users
    • Search Users
  • Login
  • Registration
    • Choosing Fields
    • Create a Registration Page
    • Moderating Registration
    • Using CAPTCHA
    • Removing Registration Options
  • User Profile
  • Membership Products
    • Membership Properties
    • Membership Levels
  • Menus
    • Individual Menu Items
    • Logged In Menus
    • Login/Logout Menu Link
  • Customizing Emails
    • Email Address
    • Email Content
    • Email Format
    • Email Shortcodes
    • Email Troubleshooting
  • Customizing Forms
    • Create a Custom Stylesheet
    • Using the WordPress Customizer
    • Login Form HTML
    • Registration Form HTML
    • Widget Login Form HTML
  • Translation and Localization
    • Maintain a custom translation file
    • Filter untranslated strings
    • Multi-language Considerations
  • Shortcodes
    • Pages and Forms
    • Login Status
    • User Fields
    • Email
    • Other Shortcodes
  • WP-CLI Commands
  • API Functions
  • Filter Hooks
  • Action Hooks
  • FAQs
    • Email troubleshooting
    • The plugin isn’t blocking my content
    • How can I prevent registration spam?
    • How to add a shortcode
    • How to apply login redirects
    • Are files protected?
    • Why can’t users log in?
    • Why does reCAPTCHA v3 fail?
    • Troubleshooting Really Simple Captcha
    • Why do I get a 403 error?
    • How do I use code snippets?
    • My changes aren’t showing up
    • How to hide the “Admin Bar”
    • How to add a forgot password link
    • Password reset doesn’t show any fields
    • Domain not included in the password reset link
    • There was an error processing the form
    • Hidden vs. Restricted
  • Demo Videos
  • How to Request Support
  • Copy Settings for Support
  • Hosting Recommendations

Ready to get started?

Join Today!

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

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