Last active
February 3, 2021 11:42
-
-
Save zgordon/1e3544821ad955c277f96dd5c7d0d603 to your computer and use it in GitHub Desktop.
This snippets lets you get the lesson for a topic in your topic.php file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$parent_lesson_id = learndash_get_setting( $post, 'lesson' ); | |
$parent_lesson = get_post( $parent_lesson_id ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this Zac. Super helpful for a project I'm working on.