Skip to content

Disable Disqus for Custom Post Type- Question #80

@adct227

Description

@adct227

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions