4.4 Basic Usage: Shortcodes
4. Basic Usage: Shortcodes
A shortcode is a small piece of code that makes it easy to add various functions or display content on your website without needing to write complex code. By adding a shortcode to a page, post, or widget area, you can embed content like images, videos, or other dynamic information directly into your site.
Lifter Elements offers a range of shortcodes that extend the functionality and design capabilities of LifterLMS when used with Elementor. These shortcodes provide greater flexibility in customizing your course content and design. They are also compatible outside of Elementor, allowing you to use them with Gutenberg or anywhere else on your website.
A shortcode looks something like this: [le-courses-audio-url]
Want to learn more about shortcodes? Check out some other resources below:
- Official WordPress shortcodes and definitions
- Official WordPress.org shortcode API information
- LifterLMS shortcodes
i. Adding Lifter Elements Shortcodes
ii. Lifter Elements Shortcodes Overview
Course Shortcodes
Lifter Elements comes with a list of Course Shortcodes that can be found under Settings > Lifter Elements while logged into the WordPress dashboard.
Audio
- [le-courses-audio-url]
Content
- [le-courses-content]
Difficulty
- [le-courses-difficulty]
Estimated Time
- [le-courses-estimated-time]
Featured Image
- [le-courses-featured-image-url]
Featured Plan
- [le-courses-featured-plan-enroll-text]
- [le-courses-featured-plan-frequency]
- [le-courses-featured-plan-ID]
- [le-courses-featured-plan-name]
- [le-courses-featured-plan-price]
- [le-courses-featured-plan-URL]
Progress
- [le-courses-progress-percent]
- [le-courses-progress-percent-number]
Plan
- [le-courses-plan-enroll-text]
- [le-courses-plan-frequency]
- [le-courses-plan-ID]
- [le-courses-plan-name]
- [le-courses-plan-price]
- [le-courses-plan-URL]
Title
- [le-courses-title]
Tracks
- [le-courses-tracks]
Video
- [le-courses-video-url]
Lesson Shortcodes
Lifter Elements comes with a list of Lesson Shortcodes that can be found under Settings > Lifter Elements while logged into the WordPress dashboard.
Audio
- [le-lessons-audio-url]
Content
- [le-lessons-content]
Next
- [le-lessons-next-ID]
- [le-lessons-next-URL]
Previous
- [le-lessons-previous-ID]
- [le-lessons-previous-URL]
Video
- [le-lessons-video-url]
Section Shortcodes
Lifter Elements comes with a list of Section Shortcodes that can be found under Settings > Lifter Elements while logged into the WordPress dashboard.
ID
- [le-sections-ID]
Title
- [le-sections-title]