Browse: Home /

Snippets

Display a list of lessons, topics, or quizzes in a LearnDash course (without links)

Snippet: This code creates a shortcode [ld_course_steps_list] to display a list of lessons, topics, or quizzes in a LearnDash course (without links). Usage: All Steps: [ld_course_steps_list course_id=”123″ type=”all”] Lessons Only: [ld_course_steps_list course_id=”123″ type=”lessons”] Replace 123 with the course ID.

Display a list of lessons, topics, or quizzes in a LearnDash course (without links) Read More »

@package: LearnDash

Display Regular Price & Sale Price on Course using custom fields

Snippet: This allows you to display both regular and sale prices on LearnDash course pages. If a course has both prices set in the custom fields (regular_price and sale_price), it displays the regular price crossed out with the sale price highlighted. If only a regular price is set, it displays the regular price alone. Just a

Display Regular Price & Sale Price on Course using custom fields Read More »

Display Courses associated with WooCommerce Product on the Thank you page

Snippet: This snippet displays the list of LearnDash courses associated with WooCommerce products purchased by a user. The list is shown on the WooCommerce “Thank You” page after a successful purchase. For each associated course, it displays the course title as a clickable link leading to the course page.

Display Courses associated with WooCommerce Product on the Thank you page Read More »