Memberium Shortcodes

Contact Shortcodes

[memb_contact]

This shortcode pulls up any piece of information (contact details, custom fields, etc.) from the member’s ActiveCampaign contact record.

[memb_update_form]

This shortcode provides a safe and secure way to enable your members to update their ActiveCampaign contact fields.

[memb_user_levels]

Displays the membership and tag information for the logged in user.

Content / Display Shortcodes

[memb_include_post / memb_include_page / memb_include_partial]

Allows you to insert content or metadata from a page, post or partial into the current position of the shortcode. The shortcodes are synonymous and have no real difference. You can identify the content by post id, or by title.

[memb_license_status]

This shortcode displays the Memberium License Status for site.

[memb_quotd]

Pulls a random quote from Remote – brainquote.

[memb_request]

This shortcode displays the requested GET variable from a URL.

[memb_server]

Displays server information of logged in user.

[memb_session]

Shortcode function to display data from the current login session.

[memb_showfield]

Shows a designated contact field.

[memb_show_form]

This shortcode is used to embed an ActiveCampaign form on the site.

[memb_tag_name]

Lists tag names specified.

[memb_version]

Displays the version number of the currently installed copy of Memberium.

Access Control Shortcodes

[memb_can_view_post]

This shortcode displays content based on the permissions of the specified post or page.

[memb_compare / memb_if]

This shortcode lets you compare two pieces of information so that you can make decisions about what to display on the page.

[memb_count_my_tags]

This shortcode measures how many of the tags the current visitor has completed, and displays the result as a total, or as a percentage.

[memb_default_excerpt]

Displays the Memberium Default Excerpt as defined by the Administrator.

[memb_expires]

Display content if date hasn’t arrived yet.

[memb_has_all_roles]

Conditional shortcode to control access to portions of a post, page or widget based on the logged in user’s roles.

[memb_has_all_tags]

Conditional shortcode to control access to portions of a post, page or widget based on the logged in user’s tags.

[memb_has_any_role]

Conditional shortcode to control access to portions of a post, page or widget based on the logged in user’s tags.

[memb_has_any_tag]

Conditional shortcode to control access to portions of a post, page or widget based on the logged in user’s tags.

[memb_has_membership]

Conditional shortcode to control access to portions of a post, page or widget based on the logged in user’s membership level.

[memb_has_payf]

This shortcode displays a message to a user with a failed payment.

[memb_hide]

Does not display or process shortcode or contents inside of shortcode. Useful for hiding or “commenting out” a chunk of code from the page without deleting it.

[memb_hide_from]

Hides content from users with specified tags.

[memb_if_cookie]

Displays content to a user based on their cookies.

[memb_if_get]

Compares specified variables within a URL.

[memb_if_lang]

Enables you to provide multiple language support on your pages.

[memb_if_post]

This shortcode posts the specified variables within a URL and displays a message accordingly.

[memb_if_request]

This shortcode requests for a specified information within a URL and displays a message accordingly.

[memb_if_user_counter]

This is a conditional shortcode that shows content based on the value of a custom counter.

[memb_include_post / memb_include_page / memb_include_partial]

Allows you to insert content or metadata from a page, post or partial into the current position of the shortcode. The shortcodes are synonymous and have no real difference. You can identify the content by post id, or by title.

[memb_is_admin]

This shortcode is conditional and displays information based on whether or not the logged in user is an admin.

[memb_is_app_connected]

This shortcode displays content based on whether or not a user is connected to ActiveCampaign.

[memb_is_logged_in]

Only shows content wrapped in shortcode if a member is logged in. Can be set to display alternate content if not logged in.

[memb_is_macie]

This shortcode displays content to users based on whether a Mac Internet explorer or any other browser is used.

[memb_is_mobile]

This conditional shortcode checks if the user is visiting using a mobile device.

[memb_s3_link]

This shortcode generates secure, expiring Amazon S3 links, with additional features, automation integration, and unique security enhancements.

[memb_set_prohibited_action]

This shortcode will allow you to temporarily override Memberium protections to display protected content.

[memb_show_after]

Designates content to be shown to a member after a certain period has passed.

[memb_show_until]

This shortcode displays the content for a specifed time limit.

[memb_switch]

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

[memb_user_counter]

This shortcode includes a counter of how many times a user has viewed a specific page or post.

Login / Logout Shortcodes

[memb_loginform]

This shortcode uses the built-in WordPress login form function to display a simple login form. You can style the login form using the standard WordPress CSS classes.

[memb_logout_link]

Adds a log out link to your membership site. Option to include redirect upon log out.

Browser Detection Shortcodes

[memb_is_browser]

This shortcode displays content to the users depending on which device or operating system is used.

[memb_is_chrome]

This shortcode displays a specific message to the users depending on whether they have logged in through a Google Chrome or any other browser.

[memb_is_facebook_crawler]

Shows specific content wrapped in shortcode to facebook crawlers, or traffic from facebook only.

[memb_is_feed]

This shortcode allows you to control the display of your content, depending upon whether or not it is being accessed through a feed or on a regular web page.

[memb_is_gecko]

This shortcode displays content to the users based on whether the browser supports the Gecko layout engine. Please refer to the additional shortcode information below to find out the browsers gecko supports.

[memb_is_google1stclick]

Conditionally displays output if the viewer is on their google 1st click page view.

[memb_is_googlebot]

This shortcode displays content based on whether or not a user is a googlebot.

[memb_is_ie]

This shortcode displays a specific message to the users depending on whether an Internet Explorer or any other browser is used.

[memb_is_iphone]

This shortcode displays specific content to user, if logged in through an iPhone.

[memb_is_lynx]

This shortcode displays content to users based on whether they are using Lynx or any other browser.

[memb_is_macie]

This shortcode displays content to users based on whether a Mac Internet explorer or any other browser is used.

[memb_is_mobile]

This conditional shortcode checks if the user is visiting using a mobile device.

[memb_is_ns4]

This shortcode displays content based on whether a user is using a Netscape Communicator 4.0 or any other browser.

[memb_is_opera]

This shortcode displays content to the user based on whether an Opera or any other browser is used.

[memb_is_safari]

This shortcode displays a specific message to the users depending on whether a Safari or any other browser is used.

[memb_is_winie]

This shortcode displays a specific message to the users based on whether a Windows Internet Explorer or any other browser is used.

WordPress Shortcodes

[memb_cookie]

Displays the results of a cookie

[memb_date]

Displays today’s date.

[memb_echo]

This shortcode displays information

[memb_feedurl]

This shortcode displays a link to the RSS feed that the user can use to access RSS Feed. This link will allow particular user to be able to view RSS Feed without the need to be logged in. Please note that you should turn “Disable RSS Feeds” option to “NO” inside Memberium => Settings => Site Security in order for this to work properly.

[memb_getfield]

Manually designates a GET varibale.

[memb_get]

This shortcode gets the variable from a URL and displays the output accordingly.

[memb_get_permalink]

This shortcode displays the permalink of a particular page or a post.

[memb_gravatar]

This shortcode displays a gravatar image for the logged in user based on their email address.

[memb_include_post / memb_include_page / memb_include_partial]

Allows you to insert content or metadata from a page, post or partial into the current position of the shortcode. The shortcodes are synonymous and have no real difference. You can identify the content by post id, or by title.

[memb_license_status]

This shortcode displays the Memberium License Status for site.

[memb_post_meta]

This shortcode will allow you to pull information about the post into your content.

[memb_redirect]

Redirects the viewer to a new page

[memb_reset_feedurl]

This shortcode displays a button or an image button which allows users to reset their RSS Feed URL generated by [memb_feedurl] shortcode.

[memb_set_cookie]

This shortcode is used to manually set the values in a cookie.

[memb_version]

Displays the version number of the currently installed copy of Memberium.

[memb_wp_user]

This shortcode displays the content of a WordPress user or user meta field.

Automation Shortcodes

[memb_appname]

Displays the application name that this installation of Memberium is connected to.

[memb_automation]

This shortcode enables you to run an Automation for the currently logged in user, and activates the next step the sequence.

[memb_automation_button]

This shortcode will create a button to run an Automation for the currently logged in user.

[memb_automation_link]

This shortcode will create a link to run an Automation for the currently logged in user.

[memb_change_password]

The change password form will ONLY display to logged users that are mapped to ActiveCampaign contacts. It will not display for admins, or for local users. Please note that the password won’t be updated in selected ActiveCampaign password field due to security reasons, instead it’s saved in WordPress only.

[memb_days_difference]

This shortcode displays the number of days from now to another date.

[memb_fade]

This shortcode allows you to easily fade content in and out without knowing how to program in jQuery or JavaScript.

[memb_is_first_login]

This conditional shortcode allows you to display content depending on whether or not this is the user’s first login.

[memb_lost_password]

This shortcode displays a form that allows a visitor of your site to request that their password be sent to them by mail.

[memb_registration_form]

This shortcode provides a safe and secure way to enable new user signups and allow them to securely choose their own passwords. The form only appears to visitors who are not logged in.

[memb_set_tag]

When the shortcode loads, it applies or removes the specified Tag Ids to a logged in users record.

Integration Shortcodes

[memb_geoip]

The geoip shortcode detects and displays information about the visitor’s current location based on IP address.

[memb_learndash_course_enroll]

Enroll the current user in a LearnDash course.

[memb_learndash_course_unenroll]

Remove the member from a LearnDash course.

[memb_list_achievements]

This shortcode displays a list of achievements of the logged in user.

[memb_php_include, memb_php_include_once]

This shortcode displays the contents of the specified PHP file within a website.