Shortcodes provide you with additional ways to insert Simplylearn content into your courses, pages, posts and other custom post types. This article will list Simplylearn content you can add to your site, and explain how to do it with both a shortcode.
All shortcodes use square brackets ([ and ]), along with the name of the particular shortcode you’re using, and any parameters (options) you want to set.
Here’s a shortcode that displays a user’s Simplylearn profile information, in its default state, with no parameters:
There’s one other way to use a shortcode. You can check to see if a certain thing is true, and if it is, output the contents contained within the shortcode. Here’s an example that would check to see if someone is enrolled in the course, and if they are, display a message.
[student]Only a student enrolled in the course would see this.[/student]
You’ll notice this version has both an opening & a closing shortcode, with the closing shortcode being preceded with a forward slash (/).
Tell us your problem, and we will get back to you.