How to Show Content to Members who don’t have Certain Tags or Membership Levels

Saqib Khan — 


If you’ve used Memberium for any length of time, you’ve probably used tags and membership levels as conditions to show and hide content to members. But what if you want to show content only to someone who DOES NOT have a specific tag

This means that the protected content will NOT be displayed if the user has certain tags or membership levels.

In this article, you’ll learn how to display content to members who don’t have certain tag or membership level.


Entire Page: Using the Content Protection Metabox

You can use the Memberium content protection metabox to hide an entire page from a member who has a certain tag or membership level.

To do this, you first need to know the Infusionsoft Tag ID. Keep in mind that Memberium membership levels are made up of Infusionsoft tags.

Once you have the tag ID, you will place it in the “Require Tag IDs” box with a minus/hyphen/dash in front of it.

Here’s an example:


Parts of a Page: Using Shortcodes

If you don’t want to protect the entire page but only a part, you can use the shortcode [memb_has_any_tag]. Let’s take a look at it using some examples:

As you can see in this first example, you’d use the minus sign along with the tag ID.

[memb_has_any_tag tagid=123]
Content here would only be shown to members without tag 123
[/memb_has_any_tag]

 

If you’re using a membership level, use [memb_has_membership]. Notice that we’ve used the “not” parameter here.

The not=not reverses the logic. Normally, this shortcode would only show content to members that have a certain membership level. In this case, not=not makes it so it only shows to members without the specific membership level.

[memb_has_membership memberships=gold not=not]
Content here would only be shown to members without the Gold membership level
[/memb_has_membership]

Parts of a Page: Using Page Builders

The logic above also works inside page builders. Memberium integrates with the top WordPress page builders, and we’ve built in the “does not have tag” functionality so you don’t need to use shortcodes.

Here’s a quick over for each builder…


Elementor:

Edit the page or post using Elementor, select the element you want to protect, go to the Advanced tab, and click on “Memberium”.

This opens the Memberium integration. From here, click into “Require Tag IDs” and begin typing your tag name or ID. You will see that a “Does not have…” option appears in the dropdown.

elementor-integration

For example, let’s say you have a Silver tag. You’d select “Does Not Have Silver” as per the above screenshot. The (421) in the above screenshot is just the Infusionsoft tag ID. Yours will likely be a different number.



Beaver Builder:

Edit the Module and then go to Advanced. From there, go to Require Tag IDs and select the tag with “Does Not Have”.

Beaver builder

For example, if your tag’s name is Silver then select “Does Not Have Silver”.


Divi:

Edit the Module and then go to Advanced. From there, go to Require Tag IDs and select the tag with “Does Not Have”.

For example, if your tag name is Gold then select “Does Not Have Gold”.


By this point, you should be ready to start using this technique on your site. You can have content, banners, page builder elements, and more conditionally shown only if the logged in user doesn’t have a certain tag or membership level.

After implementing this, we’d suggest you test this as a non-admin test user. If you need instructions on creating a test user, check out how to create a test user in Memberium.

Related Posts


  • Was this Helpful?
  • YesNo