1. Home
  2. Knowledge Base
  3. Existing Clients
  4. Learndash Shortcodes

Introduction

This list of shortcodes was created for users of our Uncanny LP LearnDash system to provide easy access to available LearnDash shortcodes. While other LearnDash users can use the shortcodes listed in the Course and Certificate sections, please note that all shortcodes in the Group Shortcodes section require our Uncanny LearnDash Groups plugin on sites that are not using our LP product.

Course Shortcodes

Shortcode & AttributeDescription
[visitor] content [/visitor]Shows content within the shortcodes to only users that have not yet enrolled into the current course
[student ] content [/student]Shows content within the shortcodes to only users that are enrolled in the current course
[course_content]Displays the list of lessons, topics, and quizzes of the current course
[course_content course_id="123"]Displays the list of lessons, topics, and quizzes of the specified course
[ld_profile ]Displays the user’s enrolled courses, course progress, quiz scores, and achieved certificates
[ld_course_list]Shows the list of courses. You can use this shortcode on any page if you dont want to use the default /courses page.
[ld_course_list num=”10″]Limits the number of courses displayed
[ld_course_list order=”ASC”]Lists courses in ascending or descending order
[ld_course_list orderby=”title”]Sets order of courses
See the full list of available orderby options
[ld_course_list tag=”math”]Shows courses with the specified tag
[ld_course_list tag_id=”30″]Shows courses with the specified tag ID
[ld_course_list cat=”10″]Shows courses with the specified category ID
[ld_course_list category_name=”math”]Shows courses with the specified category slug
[ld_course_list mycourses=”true”]Shows courses that the current user has access to
[ld_lesson_list ]Shows list of lessons. You can use this shortcode on any page.
[ld_lesson_list num=”10″]Limits the number of lessons displayed
[ld_lesson_list order=”ASC”]Lists lessons in ascending or descending order
[ld_lesson_list orderby=”title”]Sets order of lessons
See the full list of available orderby options
[ld_lesson_list tag=”math”]Shows lessons with the specified tag
[ld_lesson_list tag_id=”30″]Shows lessons with the specified tag ID
[ld_lesson_list cat=”10″]Shows lessons with the specified category ID
[ld_lesson_list category_name=”math”]Shows lessons with the specified category slug
[ld_quiz_list ]Shows list of quizzes. You can use this shortcode on any page.
[ld_quiz_list num=”10″]Limits the number of quizzes displayed
[ld_quiz_list order=”ASC”]Lists quizzes in ascending or descending order
[ld_quiz_list orderby=”title”]Sets order of quizzes
See the full list of available orderby options
[ld_quiz_list tag=”math”]Shows quizzes with the specified tag
[ld_quiz_list tag_id=”30″]Shows quizzes with the specified tag ID
[ld_quiz_list cat=”10″]Shows quizzes with the specified category ID
[ld_quiz_list category_name=”math”]Shows quizzes with the specified category slug
[learndash_course_progress ]Displays the current user's progress for the current course. You can use this shortcode on any course/lesson/quiz page.
[ld_course_expire_status ]Displays the current user's course access expiry date
[ld_course_expire_status course_id=”111″]Displays the specified course's access expiry date
[ld_course_expire_status user_id=”222″]Displays the specified user's course access expiry date
[ld_course_expire_status label_before=”Your access to this course will expire on:”]Displays the label before the access expires. Default label is “Course access will expire on:”
[ld_course_expire_status label_after=”Your access to this course expired on:”]Displays the label after access has expired. Default label is “Course access expired on:”
[ld_course_expire_status format=”F j, Y g:i a”]Sets the format of date/time of the expiry date. If not provided, the date/time format from your WordPress system will be used.
[course_complete ] content [/course_complete]Shows content within the shortcodes if the user has completed the current course

Group Shortcodes

ShortcodeDescription
[uo_groups_redemption_form]Adds a single field redemption form for enrollment keys, to be used on pages or in widgets, with existing users.
[uo_groups]The Group Management page provides all the functionality for Group Leaders to manage their own groups.
[uo_groups_course_report]The Group Leader Report (which can also be accessed from the Group Management page) allows Group Leaders to view progress reports of their group members.
[uo_groups_registration_form]The Groups Registration page is a custom registration page you can use when inviting users to join a group and redeem an enrollment code.
[uo_groups_quiz_report]The Group Leader Quiz Report allows Group Leaders to view quiz reports of their group members.
[uo_groups_buy_courses]The Buy Courses page allows Group Leaders and new customers to purchase courses and create new groups directly. This page is only auto-generated if you activate the plugin after WooCommerce is installed and active.
[uo_groups_restrict_content]Allows for the creation of targeted messaging for logged in group members on pages and posts, based on group id.
[uo_groups_url text="Button Text"]Adds a button to the front end display for logged in Group Leaders and links them to the Group Management page. By default the button text will be Group Management. You can set the button text using the text attribute.

Certificate Shortcodes

Shortcode & AttributeDescription
[usermeta field=””]Displays the value of the specified user meta field.
Example:
[quizinfo show=""]Displays information regarding quiz attempts. This shortcode can be used with the following attributes:
score
count
pass
rank
timestamp
points (only valid for the Advanced Quiz)
total_points (only valid for the Advanced Quiz)
percentage
quiz_title
course_title
timespent (only valid for the Advanced Quiz)
Example: shows the percentage score of the user in the quiz
[quizinfo show=”timestamp” format=””]Default: “F j, Y, g:i a” shows as March 10, 2001, 5:16 pm.
will show as 2001-03-10 17:16:18
See the full list of available date formats
[courseinfo show=""]Displays course related information. This shortcode can be used with the following attributes:
course_title
completed_on
cumulative_score
cumulative_points
cumulative_total_points
cumulative_percentage
cumulative_timespent
aggregate_percentage
aggregate_score
aggregate_points
aggregate_total_points
aggregate_timespentv
Note:
- "cumulative" is average for all quizzes of the course.
- "aggregate" is sum for all quizzes of the course.
Example: shows average points scored across all quizzes on the course.
[courseinfo show=”completed_on” format=””]Default: “F j, Y, g:i a” shows as March 10, 2001, 5:16 pm.
will show as 2001-03-10 17:16:18
See the full list of available date formats

Was this article helpful?

14 replies
  1. Gianluca Tordi
    Gianluca Tordi says:

    Is there a shortcode to be used in user page to show progress deails of each course, like for example each lesson, topic and so on.. from when for example they can click and see again one topic …

    Reply
    • Ken Young
      Ken Young says:

      There is currently no front-end management of assignments available in LearnDash or in any of our plugins. It is something we’ve considered adding to the Uncanny LearnDash Groups plugin, but the feature isn’t in our near-term roadmap.

      Reply
    • David Chambo
      David Chambo says:

      Hello Jose,

      It is possible to hide elements of the LearnDash profile by using css. In order to remove the User Profile info so that only the Course List remains add this css to either your main style sheet or to the “Additional CSS” tab found in Appearance > Customize:

      /** Hide user profile info **/
      #learndash_profile .profile_info {
      display: none !important;
      }

      /** Hide user profile heading text **/
      .learndash_profile_heading span {
      display: none !important;
      }

      /** Show learndash profile heading text **/
      span.ld_profile_course, span.ld_profile_status, span.ld_profile_certificate {
      display: inline-block;
      }

      Reply
    • Ryan
      Ryan says:

      There is no shortcode per se, but for Group Leaders there are options like ProPanel from LearnDash, which can list users in a course in the front end, and certainly in our Uncanny LearnDash Groups plugin there’s a shortcode that can list all users in a course using a report table.

      Reply
    • Ryan
      Ryan says:

      Please note that we are not affiliated with LearnDash and that it’s their demo site. If you’re having issues with 404s, I would reach out to LearnDash directly if you’re having issues with their plugins. (You might try resaving permalinks from Settings > Permalinks though just in case there’s a permalink issue.)

      Reply

Comments/Questions

Please note that this is not an official support channel and questions/comments may go unanswered.
To request support, log in to your account and click Submit a Request.

Leave a Reply

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