TutorLMS Lesson custom post type - Discourse linked post not saved [solved]

Hey guys

I found this thread with similar issue like the one I am experiencing: Discourse Publishing Link for Custom Post Type Disappears

I am using TutorLMS WP plugin which registers its lesson Custom post type

I can connect a Lesson post to an existing topic and post the content to Discourse. But after reloading the wp editor, the topic is not linked anymore.

@angus if necessary, I can give you access to our Staging to reproduce the issue.

Solved it via


function add_custom_fields_support_to_lesson() {
    add_post_type_support('lesson', 'custom-fields');
}
add_action('init', 'add_custom_fields_support_to_lesson', 11);

3 Likes