Skip to main content
  1. Home
  2. Knowledge Base
  3. eLearning Magic Toolkit - Save and Recall Variables (User Profile)
  4. Displaying A Stored Variable On A WordPress Post/Page (Using A Shortcode)

Displaying A Stored Variable On A WordPress Post/Page (Using A Shortcode)

Displaying A Stored Variable On A WordPress Post/Page (Using A Shortcode)

eLearning Magic Toolkit makes it easy to display any stored variable from Articulate Storyline on your WordPress site using a handy shortcode.

Displaying the variable of the visitor

Just type the following shortcode anywhere in your text editor for the page you wish to display the stored variable on:

[ storyline_user_data options="VARIABLE_NAME" ]

(Remove spaces between the opening/closing square brackets!)

Replace VARIABLE_NAME in the shortcode above with the specific Storyline variable name you want to display. Anyone viewing the page will then see the variable value that is stored in their own user profile.

Displaying the variable of a specific user

To display the variable of a specific user, include the following additional selector to your shortcode:

user="USERNAME"

Enter the username for any specific profile held on your platform in order to display the variable value for that user to all visitors (including logged out guests) who visit the page containing your shortcode.

Using the ‘My Favourite Things’ activity as an example, to display the favourite colour of username adam.smith on the page, you could use the following shortcode:

[ storyline_user_data user="adam.smith" options="SL01_FavColour" ]

(Remove spaces between the opening/closing square brackets!)

Read the rest of our Knowledge Base pages to make the most of eLearning Magic Toolkit.

Was this article helpful?

Related Articles

2 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.