function genesis_get_comments_template() { if ( ! post_type_supports( get_post_type(), 'comments' ) ) { return; } if ( is_singular() && ! in_array( get_post_type(), [ 'post', 'page' ], true ) ) { comments_template( '', true ); } elseif ( is_singular( 'post' ) && ( genesis_get_option( 'trackbacks_posts' ) || genesis_get_option( 'comments_posts' ) ) ) { comments_template( '', true ); } elseif ( is_singular( 'page' ) && ( genesis_get_option( 'trackbacks_pages' ) || genesis_get_option( 'comments_pages' ) ) ) { comments_template( '', true ); } }