Welcome to our Knowledge Base
Categories
< All Topics
Print

Last completed

WPComplete includes shortcodes that let students quickly see their last completed lesson or the next lesson they should complete. These can be useful on a dashboard or profile page, giving learners an easy way to pick up where they left off.

Showing the Last Completed Lesson

To display the most recent lesson a student has finished:

[wpc_last_completed]

To limit the display to a specific course:

[wpc_last_completed course="Name-of-Course"]

Additional options allow text to be added before or after the lesson name, as well as text to display if no lessons have been completed:

[wpc_last_completed prepend="Before text: " append=" (After text)" not_found="Get started!"]

Showing the Next Lesson to Complete

To display the next lesson following the last one completed:

[wpc_next_to_complete]

To limit this to a single course:

[wpc_next_to_complete course="Name-of-Course"]

Because lesson order matters, this shortcode should include ASC or DESC depending on how lessons are ordered:

[wpc_next_to_complete prepend="Before text: " append=" (After text)" not_found="All done!" order="ASC"]

The text for the link can also be customized using the button_text attribute:

[wpc_next_to_complete button_text="New name for link"]

Conclusion

The [wpc_last_completed] and [wpc_next_to_complete] shortcodes give learners a personalized way to track their progress and continue through a course. By customizing attributes like course, prepend, append, not_found, and button_text, site owners can provide clear navigation that fits the flow of their learning experience.

Table of Contents