Skip to main content

Section Shortcodes

Section Shortcodes

A LifterLMS section is the grouping of lessons inside a course. These two shortcodes read from the current section, which is resolved as follows:

PageCurrent section
A lesson pageThe section that lesson belongs to.
A course page, logged-in studentThe section containing the student's next incomplete lesson.
A course page, logged-out visitorNone — the shortcodes output nothing.
Shortcode keys are case-sensitive

[le-sections-ID] uses upper case; [le-sections-id] does not work.

Section Title

Returns the current section's title.

Key: le-sections-title · Output: plain text

[le-sections-title]

Use it when — a lesson layout built outside Elementor should show where the learner is in the course ("Module 2: Second Milestone"), or a course page for a logged-in student should name the section they will land in next ("Continue with [le-sections-title]").

Section ID

Returns the current section's post ID.

Key: le-sections-ID · Output: number

[le-sections-ID]

Use it when — a developer snippet needs the section to look up its lessons or metadata; it has no display use on its own.

Notes

  • The Section Title dynamic tag is the Elementor equivalent of le-sections-title.
  • The full list of registered shortcodes is also shown in your WordPress admin under Settings > Lifter Elements > Documentation.