[lcw_has_any_tags]
đź”– Shortcode: [lcw_has_any_tags]
Description
The [lcw_has_any_tags] shortcode allows you to show or hide specific content based on a user’s
GoHighLevel (GHL) tags.
If a user has at least one of the allowed tags, they’ll be able to see the content inside the shortcode.
Otherwise, the content will remain hidden.
✨ Why Use It
This shortcode is perfect for controlling visibility of text, images, or any content for specific people — for example:
- Show premium sections to users with membership tags like
ProorVIP. - Hide lessons, downloads, or links from users without the required tags.
- Create dynamic experiences inside Elementor or Gutenberg based on user segments.
đź§© Usage
Place the shortcode around your protected content, and specify one or more tags:
[lcw_has_any_tags tags="Level 1, Level 2"]
<h3>Welcome, Premium Member!</h3>
<p>You have access to this exclusive content because you have one of the required tags.</p>
[/lcw_has_any_tags]
Example 2: Show image only for users with “Gold” tag
[lcw_has_any_tags tags="Gold"]
<img src="https://example.com/gold-member-banner.jpg" alt="Gold Member Banner">
[/lcw_has_any_tags]
⚙️ Attributes
tags– (required) Comma-separated list of allowed tag names.
Example:tags="Level 1, Level 2, Gold"
âś… When It Displays Content
The content inside the shortcode will be visible only if the logged-in user has at least one matching tag from the list.
đźš« When It Hides Content
If the user is not logged in or does not have any of the allowed tags, the enclosed content will not be displayed.
