Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This snippets lets you get the lesson for a topic in your topic.php file
$parent_lesson_id = learndash_get_setting( $post, 'lesson' );
$parent_lesson = get_post( $parent_lesson_id );

This comment has been minimized.

Copy link

@josephhinson josephhinson commented Jul 26, 2018

Thanks for this Zac. Super helpful for a project I'm working on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment