Your Uncommonly Amazing WordPress Tech Partner
Membership plugins

A primer on Memberoni shortcodes

memberoni shortcodes

[et_pb_section fb_built=”1″ _builder_version=”3.23.3″ custom_padding=”4px|||||” fb_built=”1″ _i=”0″ _address=”0″][et_pb_row _builder_version=”3.25″ _i=”0″ _address=”0.0″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.0.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.0.0.0″]

Introduction

Memberoni is a very nice WordPress theme made by the fine folks at the Member Site Academy.

Here's what it looks like (the main Dashboard and the Course Library):

[/et_pb_text][et_pb_toggle title=”Memberoni – Members Area & Course Library” open=”on” _builder_version=”3.23.3″ _i=”1″ _address=”0.0.0.1″]

 

Screen252520Recording2525202019 06 01252520at25252011.15252520PM - A primer on Memberoni shortcodes

[/et_pb_toggle][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”1″ _address=”0.1″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.1.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.1.0.0″]

If you've been living under a rock, the Member Site Academy is THE community for membership site owners of all skill levels. In fact, we're members! And the Memberoni theme is available ONLY to MSA members.

Why Memberoni?

While there are a lot of WordPress themes out there in the wild you could use, the Memberoni theme was specifically created with the goal to help display and organize the content a membership site members area would have.

The Memberoni theme includes by default a lot of things that usually you would setup using a plugin, like a layout for a dashboard, a layout for a course library, specific layouts for login and logout pages, specific ways to displays text to logged in and logged out users and various other things. Having these available by default makes your life much easier when setting up your site and will also improve the performance of it since you'll be using less plugins.

One of the features that makes Memberoni very powerful is the ability to use its specific shortcodes to customize the display and layout in great detail.

My goal with this article is to give you an introduction to some of the various Memberoni shortcodes that can help you upgrade the design of your site.

Basic Memberoni shortcodes

Highlight shortcode

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”2″ _address=”0.2″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.2.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.2.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.2.0.1″] [highlight]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/highlight] [/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”3″ _address=”0.3″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.3.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.3.0.0″]

This shortcode will easily allow you to highlight an important message so it can jump in front of your members easily. 

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”4″ _address=”0.4″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.4.0″ custom_padding__hover=”|||”][et_pb_image src=”https://memberfix.rocks/wp-content/uploads/2019/05/highlightb.png” _builder_version=”3.23.3″ _i=”0″ _address=”0.4.0.0″][/et_pb_image][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”5″ _address=”0.5″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.5.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.5.0.0″]

Button Link shortcode

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”6″ _address=”0.6″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.6.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.6.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.6.0.1″] [[button url='https://memberfix.rocks']Button link text[/button]] [/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”7″ _address=”0.7″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.7.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.7.0.0″]

This shortcode allows you to easily add link buttons.

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”8″ _address=”0.8″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.8.0″ custom_padding__hover=”|||”][et_pb_image src=”https://memberfix.rocks/wp-content/uploads/2019/05/buttonb.png” _builder_version=”3.23.3″ _i=”0″ _address=”0.8.0.0″][/et_pb_image][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”9″ _address=”0.9″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.9.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.9.0.0″]

Columns

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”10″ _address=”0.10″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.10.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.10.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.10.0.1″]
[column size='half' float='l']Nam id volutpat nulla, id tristique eros. Fusce ex mauris, aliquet ut ultrices aliquet, condimentum at sapien. Mauris hendrerit maximus neque et dapibus. Integer tincidunt nibh eget risus congue rhoncus. Pellentesque eget magna bibendum, mattis sem sed, pharetra leo. Vivamus dapibus ac felis quis aliquet.[/column]

 

[column size='half' float='l']Nam id volutpat nulla, id tristique eros. Fusce ex mauris, aliquet ut ultrices aliquet, condimentum at sapien. Mauris hendrerit maximus neque et dapibus. Integer tincidunt nibh eget risus congue rhoncus. Pellentesque eget magna bibendum, mattis sem sed, pharetra leo. Vivamus dapibus ac felis quis aliquet.[/column] [/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”11″ _address=”0.11″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.11.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.11.0.0″]

This shortcode will allow you to easily split a text paragraph into colums. The size parameter will set the width of the colums and it can be ‘half' ‘quarter' ‘twothird' or ‘threequarter'. You can float the colums to left using ‘l' or to right using ‘r' Adding [clear] after the last column or text will make sure the next paragraph will be on a new line and not after the column

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”12″ _address=”0.12″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.12.0″ custom_padding__hover=”|||”][et_pb_image src=”https://memberfix.rocks/wp-content/uploads/2019/05/columnb.png” _builder_version=”3.23.3″ _i=”0″ _address=”0.12.0.0″][/et_pb_image][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”13″ _address=”0.13″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.13.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.13.0.0″]

Show content to logged in users only

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”14″ _address=”0.14″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.14.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.14.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.14.0.1″]
[is_loggedin]You are logged in[/is_loggedin]
[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”15″ _address=”0.15″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.15.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.15.0.0″]

This small line of text can only be viewed by a user that is logged in so in this way you can easily customize your pages for specific audiences

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”16″ _address=”0.16″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.16.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.16.0.0″]

Show content to logged out visitors only

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”17″ _address=”0.17″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.17.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.17.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.17.0.1″]
[is_loggedout]You are not logged in[/is_loggedout]
[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”18″ _address=”0.18″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.18.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.18.0.0″]

This small line of text can only be viewed by a user that is logged out so in this way you can easily customize your pages for specific audiences

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”19″ _address=”0.19″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.19.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.19.0.0″]

Show link to last viewed content

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”20″ _address=”0.20″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.20.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.20.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.20.0.1″]
[lastviewed label='Continue with your last lesson:']
[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”21″ _address=”0.21″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.21.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.21.0.0″]

Memberoni allows you to add a specific link to the last lesson the member worked on so they can quickly jump back in into the course.

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ min_height=”58px” custom_padding=”||2px|||” _i=”22″ _address=”0.22″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.22.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ custom_margin=”||-6px|||” custom_padding=”||1px|||” _i=”0″ _address=”0.22.0.0″]

Advanced Memberoni shortcodes

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ custom_padding=”4px|||||” _i=”23″ _address=”0.23″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.23.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.23.0.0″]

Show content based on whether member has completed a specific course

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”24″ _address=”0.24″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.24.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.24.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.24.0.1″]
[hascompleted course='1,2,3' check='1']Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/hascompleted]
[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”25″ _address=”0.25″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.25.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.25.0.0″]

Using this shortcode you're able to show a member a specific piece of content based on the completion of a course, or multiple courses. The ‘course' parameter will take the ID/IDs of the course you will want to check if they are completed. If you want to NOT show specific content if the courses are completed you can change the ‘check' parameter to ‘0', this way you can hide a piece of content for the specific user that completed those courses

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ custom_padding=”||5px|||” _i=”26″ _address=”0.26″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.26.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.26.0.0″]

Add a custom meta value

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”27″ _address=”0.27″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.27.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.27.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.27.0.1″]
[membermeta action='add' key='specific-course' value='viewed'][/membermeta]
[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”28″ _address=”0.28″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.28.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.28.0.0″]

Using this shortcode you can add custom metadata to a specific user. In this specific example, we would add this shortcode to a courses page and track if the user viewed the course using metadata

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ custom_padding=”||4px|||” _i=”29″ _address=”0.29″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.29.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.29.0.0″]

Display a user meta value

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”30″ _address=”0.30″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.30.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.30.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.30.0.1″]
[membermeta action='show' key='specific-course'][/membermeta]
[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”31″ _address=”0.31″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.31.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.31.0.0″]

We can show the custom metadata we added to a user using the same membermeta shortcode, in this example we get the value of the ‘specific-course' key and we display it. The actions parameter can also be ‘check' if you just want to check the value of a specific metadata key and you don't want to show it to the member. Here's an example

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”32″ _address=”0.32″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.32.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.32.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.32.0.1″]
[membermeta action='check' key='specific-course' value='viewed']Thanks for viewing the course![/membermeta]
[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ _i=”33″ _address=”0.33″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.33.0″ custom_padding__hover=”|||”][et_pb_text _builder_version=”3.27.4″ _i=”0″ _address=”0.33.0.0″]

We can do the opposite too, display content if the user did NOT view a course, using the ‘istrue' parameter. 

[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”3.25″ z_index_tablet=”500″ _i=”34″ _address=”0.34″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” _i=”0″ _address=”0.34.0″ custom_padding__hover=”|||”][et_pb_blurb title=”html” use_icon=”on” font_icon=”%%208%%” icon_color=”#cc3399″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”3.22.5″ header_text_color=”#ffffff” header_font_size=”16″ header_line_height=”1.3em” background_color=”#000000″ width=”100px” custom_margin=”||-42px|-50px” custom_padding=”10px|15px|2px|15px” z_index_tablet=”500″ _i=”0″ _address=”0.34.0.0″][/et_pb_blurb][et_pb_text module_class=”mfcodes” _builder_version=”3.27.4″ text_font=”Source Code Pro||||||||” text_font_size=”15px” background_color=”#eff0f4″ border_width_top=”7px” border_color_top=”#cc3399″ custom_margin=”|||60px” custom_padding=”3%|3%|3%|3%” z_index_tablet=”500″ border_width_top_tablet=”7px” border_width_top_phone=”7px” box_shadow_horizontal_tablet=”0px” box_shadow_vertical_tablet=”0px” box_shadow_blur_tablet=”40px” box_shadow_spread_tablet=”0px” _i=”1″ _address=”0.34.0.1″]
[membermeta action='check' key='livetraining' value='attended' istrue='0']You're missing out on this course![/membermeta]
[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]

You may also enjoy...

WordPress based membership sites have certain requirements, and make use of certain applications that, in my experience, makes most of the popular hosting providers a poor choice.
Learn how to migrate non-recurring memberships from MemberPress to WooCommerce.
Learn how to automatically calculate payroll using Airtable.
Learn how to control the visibility of your Table of Contents (TOC) on a post by post basis using our crafty tutorial!

Leave a Reply

Your email address will not be published. Required fields are marked *