Back to blog
7 min read Content Sync

Sync LifterLMS Courses with Sections, Lessons and Quizzes Between Sites

“Latte Art at Home” is a LifterLMS course with two sections, Milk and Pouring, four lessons and a quiz at the end of the last lesson. The barista who wrote it worked on the staging site for two weeks, and the live academy kept selling other courses the whole time. The course has to go live without the enrollments, orders and quiz results that piled up on the live site in those two weeks being touched. We pushed it from staging with Content Sync and checked what arrived.

PRO: pushing courses and other custom post types is part of PRO. Tested with Import Export by RockStarLab 2.2.46 and PRO 2.1.42, LifterLMS 11.1.0, WordPress 7.1.5.

Short Answer

Connect staging and live in Content Sync. On staging open Courses, tick the course, click Sync Content, choose the live site, click Push to Site and then Confirm & Sync. Its sections, lessons, quiz and quiz questions with their choices are created on the live site, under the copy of the course. Push again after you change the course: the copied parts are updated and parts you deleted on staging go to the trash on the live site. Access plans and pictures in lessons come along, and a pull from the other site brings the same.

In LifterLMS each section, lesson, quiz and question is its own post, and they are tied together by IDs saved in custom fields: a lesson stores the ID of its course and of its section, the lesson stores the ID of its quiz, the quiz stores the ID of its lesson, a question stores the ID of its quiz. On another site every one of those IDs belongs to something else. A plain copy of the posts gives lessons that point at nothing, or worse, at another course.

When PRO pushes a LifterLMS course, it sends the course post first, then all its parts, and rewrites each of those IDs to the new posts on the live site:

Part Linked by After the push
Section course ID, order under the live course, same order
Lesson course ID, section ID, order in the right section, same order
Quiz lesson ID (and the lesson points back to it) attached to the same lesson
Question quiz ID in the quiz, with all choices and the correct one marked
Access plan course ID on the live course, with its price and options
Picture or file attachment ID and address copied to the live media library; lessons and choices point to the copy

Course settings that live in the course post, such as the length “2 hours” in our course, come with the course itself.

Step 1: Select the Course

LifterLMS uses the standard WordPress list for courses, so the Sync Content button is right there. Tick the course:

LifterLMS Courses list with Latte Art at Home ticked and the Sync Content button
Tick the course and click Sync Content.

Step 2: Push It

Choose the live site, click Push to Site, keep Create New Post in Map Posts for Sync and click Confirm & Sync:

Map Posts for Sync: Latte Art at Home, Remote Site Action Create New Post, Confirm & Sync button
Create the course on the live site.

The first push created nine parts: two sections, four lessons, one quiz and two questions. The message counts them. Later we added an access plan, “Full course” for 29, on staging and pushed again; the plan was created and the other nine parts were updated:

Successfully pushed 1 post to the remote site. Course "Latte Art at Home": sections, lessons, quizzes and access plans created: 1, updated: 9, moved to trash: 0, quiz questions: 2, files: 0.

The live course then offered the same plan at the same price. A plan for members only keeps its memberships when the live site has memberships with the same slugs.

Step 3: Check the Syllabus on the Live Site

The course page on the live site shows both sections with their lessons in order, and the quiz on the last lesson:

Syllabus on the live site: section Milk with Choosing milk and Steaming to 60 °C, section Pouring with The heart in three moves and The tulip, which has a quiz
Sections, lessons and the quiz on the live site.

The quiz had both questions. The first one had its three choices with “60 °C” marked as correct, and each choice belonged to the question on the live site, not to the staging ID.

Updating the Course

We renamed the lesson “The heart” to “The heart in three moves” on staging and pushed the course again. The message said 0 created and 9 updated. The lesson had its new name on the live site and nothing was duplicated.

Each part created by the push remembers the staging item it came from, so it is found again even when its slug differs on the live site. Parts made by hand on the live site are matched by slug or title.

We also added a lesson on staging, pushed, deleted it again and pushed once more:

Successfully pushed 1 post to the remote site. Course "Latte Art at Home": sections, lessons, quizzes and access plans created: 0, updated: 10, moved to trash: 1, quiz questions: 2, files: 0.

The lesson was in the trash on the live site, where it can still be restored. Only parts that came from staging are moved there; parts created on the live site stay.

Pictures in Lessons

We put a picture into the lesson “The heart in three moves” and pushed. The message said files: 1: the file was copied to the live media library, and the lesson on the live site shows the live copy, with the image block pointing to the live attachment ID. Image choices of quiz questions are copied the same way.

Pulling a Course

Content Sync can also pull: on the site that should receive the course, pull it from the other site, and sections, lessons, quiz, questions, access plans and files come along in the same way. Our pull of the course reported:

Updated 1 post. Course "Latte Art at Home": sections, lessons, quizzes and access plans created: 0, updated: 10, moved to trash: 0, quiz questions: 2, files: 0.

With WP-CLI or an AI Agent

The same push runs from WP-CLI. site_id is the connection to the live site, post_type is LifterLMS’s course, and the course ID is enough: the plugin finds the sections, lessons, quizzes, questions and access plans by itself.

wp rsl-ie ability rsl-ie/connection-list '{}' --user=admin
wp rsl-ie ability rsl-ie-pro/sync-push '{"site_id":1,"post_type":"course","post_ids":[156408]}' --user=admin

We built a fresh course on our test site, “Latte Art at Home”, with two sections, four lessons and a quiz with a true or false question, and pushed it with Import Export by RockStarLab 2.2.64, PRO 2.1.57 and LifterLMS 11.1.1:

Successfully pushed 1 post to the remote site. Course "Latte Art at Home": sections, lessons, quizzes and access plans created: 8, updated: 0, moved to trash: 0, quiz questions: 1, files: 0.

On the other site the syllabus showed both sections with their lessons in the staging order, and the last lesson had its quiz with the question and both choices.

An AI agent connected through the WordPress MCP Adapter does this from a request. Without the plugin, WordPress 7.1.5 gives the agent only three read-only abilities for site, user and environment information, so it cannot create a single post on another site. Pushing the course with its whole syllabus is an ability of the plugin:

With Import Export by RockStarLab, push the LifterLMS course "Latte Art at Home" to the live site with its sections, lessons, quizzes and access plans, then tell me how many items were created and updated.

The agent pushes only the course you name, and students, enrollments and quiz attempts are never part of a push.

What Stays on the Live Site

Students, enrollments, progress, quiz attempts, certificates and orders are not part of a push. The live site keeps its own.

FAQ

Can I copy a LifterLMS course to another site?

Yes. With Import Export by RockStarLab PRO, push the course from the Courses list with Sync Content. Sections, lessons, the quiz and its questions are created under the copied course, with their links rewritten.

Are quiz questions and choices copied?

Yes. Each question arrives with its choices and the correct answer, linked to the quiz on the receiving site.

Are enrollments or orders overwritten?

No. Students, enrollments, progress, quiz attempts and orders are not part of the push.

Are access plans copied?

Yes. The access plans of the course come with it, with their prices and options, and are updated on the next push.

Can an AI agent copy a LifterLMS course?

Yes. With Import Export by RockStarLab connected through the WordPress MCP Adapter, an agent pushes the course you name to the other site with its sections, lessons, quizzes and access plans.

Get the free plugin on WordPress.org. Course sync is part of PRO.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE