disqus-wordpress-plugin
disqus-wordpress-plugin copied to clipboard
Disable Disqus for Custom Post Type- Question
I've tried using a function to disable Disqus for one of our custom post types, this is one I've seen on multiple websites, but it doesn't seem to work anymore:
`add_filter( 'comments_template' , 'wpb_block_disqus', 1 ); function wpb_block_disqus($file) { if ( 'post' == get_post_type() ) remove_filter('comments_template', 'dsq_comments_template'); return $file;
}`
Any guidance on this would be great!