• Resolved webvd

    (@webvd)


    Hi, first of all thank you for this plugin. It suit my needs! We are using this to let our employees now where they need to work.

    How can we re-enable comments on single events?

    Thanks you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ishitaka

    (@ishitaka)

    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?

    Plugin Author ishitaka

    (@ishitaka)

    If it’s a new question, I would appreciate it if you could start a new topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Enable Comments’ is closed to new replies.