ea_ld_course_grid
This shortcode shows the LearnDash courses on the site in different styles depending on the templates, as well as with different extra functionalities. It can take multiple parameters, as follows:
If a course has a product_id pointing to a correct WC product, then the price of that product will be used on the course grid to show the price of the course. If not, then it will show the price of the course in the Learndash course settings.
ea_ld_course_grid template="1"
ea_ld_course_grid template="1" featured_courses="true"
ea_ld_course_grid template="2"
ea_ld_course_grid template="3"
ea_ld_course_grid template="4"
ea_ld_course_grid template="6"
This shortcode displays this list of courses in a small vertical format, very similar to how “related courses” appear on a Udemy course page.
Parameters:
ea_ld_mini_course_grid
This shortcode displays the course categories in a grid with images. Images in course categories are NOT part of LearnDash, this is new functionality added by this plugin. Meaning a user when creating/editing a LearnDash course category can now add a featured image like in post/pages/products.
Additional parameters:
ea_ld_course_categories with_links="true"
These shortcodes are meant to just display information about the site in a simple way.
ea_author id="post id"
Self-explanatory. Displays the name of the author of the post/page.
ea_current_year
Displays the current year.
ea_site_title
Displays the name of the site.
These shortcodes are meant to break existing LearnDash shortcodes into small bits.
ea_ld_stats_points id="x"
Render a simple text with the number of points the user has. Current logged-in user by default.
ea_ld_stats_certificates id="x"
Render a simple text with the number of certificates the user has. Current logged-in user by default.
ea_ld_stats_enrolled id="x"
Renders a simple text with the number of enrolled courses the user is in. Current logged-in user by default.
ea_ld_stats_completed id="x"
Renders a simple text with the number of courses the user has completed. Current logged-in user by default.
ea_ld_stats_course_progress id="X" course_id="Y" type='percentage'
Renders a simple text with the % of completion a user has with a course by course_id. The Type parameter by default is ‘percentage’, any other value will render “An out of B steps”. See examples below.
ea_ld_user_avatar id="X" type="horizontal" size="medium"
Renders a the avatar with the name of a user by id.
Type can be ‘horizontal’ or ‘vertical’ (default). Size can be ‘tiny’, ‘small’ or ‘medium’ (default).
ea_ld_stats_questions global="true" course_id="x" user_id="y"
Display the total number of questions of quizzes with some parameters:
ea_ld_quiz_last_attempt quiz_id="x" user_id="y"
Display the date of the last attempt by the user on a specific quiz.
ea_ld_quiz_average course_id="x" user_id="y" type="percentage"
Display the average score by ‘type’ of attempted quizzes by the user_id in a course_id or globally:
ea_ld_quiz_last_score user_id='' quiz_id='' course_id='' type='percentage'
Display the last score (points or percentage) of the last attempted quiz by a user.
This shortcode displays the content (lessons, topics, etc) of a course depending on a template style. It only has two parameters: course_id and template.
ea_ld_course_content
This shortcode displays the price of a LearnDash course. Some things to consider:
ea_ld_course_price course_id="53"
This shortcode displays the price of a LearnDash course with a manual discount attached to it if the user wants it, alongside a button.
Things to consider:
ea_ld_course_price_discount course_id="53" discount="10"
This shortcode displays the star rating of a WooCommerce product with a bunch of parameters:
ea_wc_star_rating product_id="360"
The following shortcodes are part of the Course Reviews for LearnDash plugin.
ea_ld_reviews
By default this shortcode renders three sections: 1) A review submit form only for logged-in users 2) a Summary displaying average rating and progress bars and 3) a List of reviews with pagination.
Parameters:
ea_ld_reviews_list id="118" stars="5" columns="2"
Additional parameters:
ea_ld_reviews_summary id="118"
ea_ld_review_form id="118"
NOTE: ea_ld_review_form can not be used on the same page as ea_ld_reviews.