Black Friday Super Sale 2024 is Coming Soon

WIN AN iPAD, LIFETIME MEMBERSHIP
×

Search Divi Plus Documentation

Search for answers or browse our knowledge base.

All Topics
Print

How can enable comment support in the Divi Plus team member custom post type?

We do not have support for comments for this custom post type. However, you can add the code in the child theme’s functions.php file.

function dipl_ct_add_comments_support($args, $post_type){
 
    if ( 'dipl-team-member' === $post_type ){
        if ( ! empty( $args['supports] ) && is_array( $args['supports'] ) ){
            array_push( $args['supports'], 'comments' );
        }
    }
 
    return $args;
}
add_filter('register_post_type_args', 'dipl_ct_add_comments_support', 10, 2);
Table of Contents