• Resolved Artos90

    (@artos90)


    I am setting up a new course/training site using LifterLMS Pro plugin.

    I see there is a shortcode to display all courses/memberships on a page, however I want to display a specific course on a specific sales page.

    Is there a course shortcode which includes the course id?

    https://wordpress.org/plugins/lifterlms/

Viewing 4 replies - 1 through 4 (of 4 total)
  • @artos90,

    We don’t currently have an id parameter that can be passed to the shortcode in question.

    However you could use the Order attribute in combination with existing shortcode parameters to make this work.

    1) Set your course Order to something high like 9999.
    2) Use the shortcode to display one course, ordered by menu_order (the database key for “Order”, in descending order.

    [lifterlms_courses posts_per_page=”1″ order=”DESC” orderby=”menu_order”]

    I know it’s a workaround but it’ll work!

    Take care,

    @artos90,

    LifterLMS 2.7.5, just released, adds an “id” parameter to the shortcode in question. Have an update, review the documentation, and enjoy!

    Take care,

    Where would I locate the ID for a course?
    When I try using the ID=”course_slug” it just listed all courses.
    I can’t seem to locate a unique course ID. Please help.

    Found it!
    When I view the ‘courses’ page and hover over a specific course, my browser tells me the post number on the bottom of my browser window.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘shortcode for a specific course id’ is closed to new replies.