Remove Post Info and Meta in Learn Dash Custom Post Types
Learn Dash for WordPRess has five custom post types; courses, lessons, quiz, topic and certificates – the custom post type registration names are sfwd-courses, sfwd-lessons, sfwd-quiz, sfwd-topic and sfwd-certificates respectively.
To remove the default post info and post meta data from these custom post types in a Genesis theme use the following snippet in your functions.php file…
You can streamline this buy doing it this way:
if ( is_singular( array( ‘sfwd-courses’, ‘sfwd-lessons’, ‘sfwd-topic’, ‘sfwd-quiz’, ‘sfwd-certificates’) ) {
remove_action( ‘genesis_entry_header’, ‘genesis_post_info’, 12 );
remove_action( ‘genesis_entry_footer’, ‘genesis_post_meta’ );
}
Very helpful – thank you!
LearnDash also has a sfwd-topic post type – might want to include that in the code as well.
Thanks for pointing that out Andrew