Keap
Also available forActiveCampaign

[memb_switch]

Summary
This shortcode allows you to display or hide content to users based on tags

Description

This shortcode allows you to display or hide content to users based on tags

Shortcode Examples

[memb_switch]
     Foo
[case any_tag=bar]
     Has Bar Tag [memb_contact fields="FirstName"]
[case all_tags=122,102,123]
     Has 122,102 and 103 [memb_contact fields="FirstName"]
[else]
     Has Nothing. Is sad.
[/memb_switch]

In this example, “Foo” would not be displayed because there is no [case] test in front of it.

“Has Bar Tag” would be displayed only if the currently logged in user had the tag named “bar”.

“Has 122,102 and 103” would be displayed only if the user had all 3 tags 122, 102, and 123.

“Has Nothing. Is sad.” would only be displayed if all the previous tests were false.

Shortcode Parameters

any_tagChecks if the user has any of the tags specified before displaying content. This attribute is required to evaluate the condition.
all_tagsChecks if the user has all the tags specified before displaying content. This attribute is required to evaluate the condition.

Shortcode Attributes

ConditionalYes
NestableNo
Accepts formattingYes
CapturableYes