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.
Every tag is lowercase

Since 1.7.9 the key is [le-sections-id]. The former [le-sections-ID] still renders but is deprecated; see Shortcodes.

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.