> ## Documentation Index
> Fetch the complete documentation index at: https://memberful.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Restrict access by category or tag

> The simplest way to restrict access to posts with the Memberful WordPress plugin is with the restrict access by category or tag setting. 

export const RelatedDocs = ({link1, link2, link3, link4, link5, link6, link7, link8, link9, link10, className = ""}) => {
  const links = [link1, link2, link3, link4, link5, link6, link7, link8, link9, link10].filter(Boolean);
  if (!links.length) return null;
  return <section className={`related-docs border dark:border-gray-700 rounded-2xl px-6 py-4 mt-6 ${className}`}>
      <p className="mb-2 font-medium">
        <strong>Related help docs:</strong>
      </p>
      <ul className="space-y-1 mb-1 mt-1">
        {links.map((link, index) => <li key={index}>
            <a href={link.url}>{link.label}</a>
          </li>)}
      </ul>
    </section>;
};

Once you integrate the Memberful WordPress plugin, you can restrict access to posts by category or tag (this also works for custom taxonomies). This lets you define who can access all posts in a category or tag — eliminating the need to specify the restrictions on a post-by-post basis.

In this help article, we'll show you how to restrict by category or tag, add marketing content, and how our feature interacts with other settings.

<Callout icon="info" color="#22E273">
  Restricting by category/tag is different from the Bulk Restrict Access tool. Bulk restrict applies restrictions once to all current posts in a category, while category/tag restriction applies automatically to both current and future posts.
</Callout>

## Restrict content by category or tag

1. In your WordPress dashboard, go to *Posts → Categories* or *Tags* (custom taxonomies are also supported).

   <Frame>
     <img src="https://mintcdn.com/memberful/M_FwlsoTYDRYJ4EU/images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/wp-categories.png?fit=max&auto=format&n=M_FwlsoTYDRYJ4EU&q=85&s=cf03b88bf4138fec4f5d6ab5d6107959" alt="Choose a category" width="1440" height="904" data-path="images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/wp-categories.png" />
   </Frame>
2. Select the category or tag you want to restrict. Do not restrict multiple categories or tags in one post.

   <Frame>
     <img src="https://mintcdn.com/memberful/M_FwlsoTYDRYJ4EU/images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/choose-a-category.png?fit=max&auto=format&n=M_FwlsoTYDRYJ4EU&q=85&s=a4777ebce2aa130aebc4d06a117bb75e" alt="Choose a category" width="1440" height="358" data-path="images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/choose-a-category.png" />
   </Frame>
3. Scroll down to the **Memberful: Restrict Access** box.

   <Frame>
     <img src="https://mintcdn.com/memberful/M_FwlsoTYDRYJ4EU/images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/restrict-access-box-1.png?fit=max&auto=format&n=M_FwlsoTYDRYJ4EU&q=85&s=afae03b2ec6180968c45f28313328f69" alt="Select your audience" width="1440" height="276" data-path="images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/restrict-access-box-1.png" />
   </Frame>
4. Choose who can access posts in this category/tag by checking the appropriate option:

* All members—active, inactive, or free (useful for a ["freemium" tier](/docs/member-management/payments-and-access/give-free-access/#enable-free-registration))
* Members with an active subscription to [any plan](/docs/plans/individual-plans/create-a-plan/)
* Members with an active subscription to a specific plan
* Anybody who owns a specific [download](/docs/plans/plan-options/include-or-sell-downloads/)

<img src="https://mintcdn.com/memberful/M_FwlsoTYDRYJ4EU/images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/restrict-access-box-2.png?fit=max&auto=format&n=M_FwlsoTYDRYJ4EU&q=85&s=aed3d9f0c9350bd4ca43d12961d66897" alt="Select your audience" width="1440" height="1036" data-path="images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/restrict-access-box-2.png" />

## Review your options for adding marketing content

When content is restricted, you can display marketing content or teaser text to non-members (or logged-out members). This helps convert visitors by previewing content and linking to sign-up or sign-in pages.

Examples for inspiration:

* [Mythical Society - members-only videos](https://www.mythicalsociety.com/series/rhett-link-stevie-go-to-halloween-horror-nights/welcome-episode-1)
* [Food Fix - members-only articles behind a paywall](https://foodfix.co/states-forge-ahead-with-universal-free-school-meals/)

You can add marketing content in several ways:

### Option A: Add to a category or tag

1. Edit the category or tag.
2. Enter your marketing content in the **Memberful: Restrict Access** box.
3. Save changes. This content will display across all posts in that category/tag, including future posts.

### Option B: Add to a single page or post

1. Open the post or page.
2. Enter your marketing content in the **Memberful: Restrict Access** box.
3. Update the post.

### Option C: Create global marketing content

1. Go to *Settings → Memberful → Global marketing content.*
2. Check **Turn on global marketing content.**
3. Choose one of two behaviors:

   * Override all marketing content – replace all existing content in restricted posts/pages.
   * Use only when other content doesn't exist – fill empty marketing content fields.

   <img src="https://mintcdn.com/memberful/M_FwlsoTYDRYJ4EU/images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/global-marketing-content-options.png?fit=max&auto=format&n=M_FwlsoTYDRYJ4EU&q=85&s=77c74d73d213e3f1f80e3ca5fa03057e" alt="Global marketing content" width="1440" height="487" data-path="images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/global-marketing-content-options.png" />
4. Add your global content and click **Save changes.**

   <img src="https://mintcdn.com/memberful/M_FwlsoTYDRYJ4EU/images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/save-changes.png?fit=max&auto=format&n=M_FwlsoTYDRYJ4EU&q=85&s=9e5b97d7a94e528518a70f08a43aef70" alt="Global marketing content" width="1440" height="1147" data-path="images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/save-changes.png" />

### Option D: Add teaser text (excerpt fade)

1. In *Settings → Memberful → Global marketing content*, enable both:

   * Turn on global marketing content
   * Automatically pull an excerpt from each post

   <Frame>
     <img src="https://mintcdn.com/memberful/M_FwlsoTYDRYJ4EU/images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/global-marketing-content-options.png?fit=max&auto=format&n=M_FwlsoTYDRYJ4EU&q=85&s=77c74d73d213e3f1f80e3ca5fa03057e" alt="Global marketing content" width="1440" height="487" data-path="images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/global-marketing-content-options.png" />
   </Frame>
2. Choose either "Override all" or "Use when none exists."
3. Save changes. Memberful will pull the first two paragraphs (based on `<p>` tags) as teaser text before showing marketing content. Make sure your content is formatted in proper paragraphs.

<Frame>
  <img src="https://mintcdn.com/memberful/M_FwlsoTYDRYJ4EU/images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/teaser-text.png?fit=max&auto=format&n=M_FwlsoTYDRYJ4EU&q=85&s=0e5a5439e119986db8aa69abdaaf72c8" alt="Global marketing content" width="1440" height="993" data-path="images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/teaser-text.png" />
</Frame>

## Categorize or tag a new post

Moving forward, whenever you categorize or tag a post, the associated Memberful restrict access and marketing settings will be applied automatically.

* If a member has the correct access → they'll see the protected content.
* If not → they'll see the marketing content.

<Frame>
  <img src="https://mintcdn.com/memberful/M_FwlsoTYDRYJ4EU/images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/categorize-or-tag.png?fit=max&auto=format&n=M_FwlsoTYDRYJ4EU&q=85&s=de6366e5c2ef1e9433fc2ca12f7e9c10" alt="Select a category or tag" width="1440" height="244" data-path="images/wordpress-plugin/protect-content/restrict-access-by-category-or-tag/categorize-or-tag.png" />
</Frame>

## How this feature interacts with other settings

It's important to understand how category/tag restrictions interact with other Memberful features:

* **Category/tag marketing content** → applies to all relevant posts (current + future).
* **Individual post-level content** → overrides category/tag marketing content.
* **Bulk Restrict Access tool** → overrides existing restrictions + content for posts.
* **Global marketing content (override option)** → replaces all other marketing content.

**If a post was previously restricted individually:**

* The post-level restrictions and marketing content take priority over category/tag settings.

**If multiple restricted categories/tags are applied to one post:**

* The marketing content shown to non-eligible members will be randomly chosen from one of the categories/tags.
* Members gain access if they meet the requirements of any restricted category/tag.
* For consistency, we advise against using multiple restricted categories/tags on a single post.

<RelatedDocs
  link1={{
url: "/wordpress-plugin/protect-content/restrict-access-to-a-single-post/",
label: "Restrict access to individual posts.",
}}
  link2={{
url: "/wordpress-plugin/protect-content/bulk-restrict-access/",
label: "Restrict access to multiple posts in bulk.",
}}
  link3={{
url: "/website-builder/video-content/restrict-access-to-video-content/",
label: "Restrict access to video content.",
}}
/>
