Support » Plugin: Lazy Social Comments » Custom Post Type Support

  • Resolved Kieran

    (@mywebink)


    Hi @joelcj91,

    I’ve found that this plugin isn’t called for custom post types where comments are enabled. Is there any chance of an update being pushed to support post types other than posts/page or a snippet I can add?

    Thanks for your work on this plugin,

    Kieran

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

    Check this ticket and let me know if you achieve it please. I am also trying to place this plugin on my custom posts, but did not work.

    https://wordpress.org/support/topic/shortcode-452/

    Is it working on pages for you? I am just able to view it on wordpress regular posts.

    Regards

    Thread Starter Kieran

    (@mywebink)

    Hi there,

    I wasn’t aware of this topic, thank you for sharing. I did already try to edit this line but it doesn’t work unfortunately.

    Kieran

    Plugin Author Joel James

    (@joelcj91)

    Hi all,

    There was a bug which is fixed in the latest version. You can now use the lfc_supported_post_types filter to add custom post support.

    add_filter( 'lfc_supported_post_types', 'mycustom_add_lfc_cpt_support', 5 );
    
    function mycustom_add_lfc_cpt_support( $post_types ) {
        // Here mycpt is your custom post type name.
        $post_types[] = 'mycpt';
    
        return $post_types;
    }
    Thread Starter Kieran

    (@mywebink)

    Hi @joelcj91,

    Just wanted to say thanks so much for getting back to me and that your solution works a treat. I’ll mark this as resolved, and again, thank you very much for your time and effort with this plugin.

    All the very best,

    Kieran

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Post Type Support’ is closed to new replies.