If you want to show each student of your course what the last lesson they completed was or what the next lesson is (the one after the last they completed), you can use these shortcodes on pages like your dashboard, to let them know where to pick up where they left off.
To show the last lesson they finished, use:
[wpc_last_completed]
To limit it to just a single course, use:
[wpc_last_completed course="Name-of-Course"]
You can also add options like text before the lesson name or after (prepended or appended). And if they haven’t started the course (i.e. they’ve not completed any lessons) you can use the option to add text for no completed lessons found.
[wpc_last_completed prepend="Before text: " append=" (After text)" not_found="Get started!"]
To show the next lesson, after the last lesson they finished, use:
[wpc_next_to_complete]
To limit it to just a single course, use:
[wpc_next_to_complete course="Name-of-Course"]
For this shortcode, you must ensure the order is correct by adding ASC or DESC (depending on how you ordered your lessons), for example:
[wpc_next_to_complete prepend="Before text: " append=" (After text)" not_found="All done!" order="ASC"]
You can change the text for the next to complete link by using button_text:
[wpc_next_to_complete button_text="New name for link"]