Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Disqus for Custom Post Type- Question #80

Open
dmayer5 opened this issue Mar 17, 2020 · 0 comments
Open

Disable Disqus for Custom Post Type- Question #80

dmayer5 opened this issue Mar 17, 2020 · 0 comments

Comments

@dmayer5
Copy link

dmayer5 commented Mar 17, 2020

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!

@dmayer5 dmayer5 changed the title Disable Disqus for Custom Post Type Disable Disqus for Custom Post Type- Question Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant