Enable Comments | WordPress.org

[ad_1]

Hi, Thank you for using the plugin.

Add the following code to the theme’s functions.php to support the comment function. After that, set whether or not to allow comments on each post.

function my_register_event_post_args( $args, $post_type ) {
	if ( 'xo_event' === $post_type ) {
		$args['supports'][] = 'comments';
	}
	return $args;
}
add_filter( 'register_post_type_args', 'my_register_event_post_args', 10, 2 );

Thread Starter
webvd

(@webvd)

Thank you! I have some other question. Do i need to start a new topic?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer