Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello theblueli,

    Just so we have a better understanding of the situation, could you elaborate a bit more on what a CPT is?

    Thanks

    Paul

    (@paulherrmann)

    CPT = Custom Post Type
    Sadly the answer apears to be “no”, as this is why I am coming here to look. The plugin does not load on my custom post type. (example: business listings)

    Thread Starter theblueli

    (@theblueli)

    Oh, Thanks Paul
    Sorry about that, total missed the reply from jssuppot @@

    Thread Starter theblueli

    (@theblueli)

    I found that in order to use this thing on CPT, you may need to add a snippet to enable comment for your CPT

    example

    <?php
    
    /**
     * Add commenting support for CPT.
     */
    add_post_type_support( 'cpt_name', 'comments' );
    
    add_filter( 'comments_open', 'my_comments_open', 10, 2 );
    
    function my_comments_open( $open, $post_id ) {
    	$post = get_post( $post_id );
    
    	return 'cpt_name' === $post->post_type;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can I use it for a CPT?’ is closed to new replies.