Title: Function to Disable for &#8216;Posts&#8217;
Last modified: March 13, 2020

---

# Function to Disable for ‘Posts’

 *  [dmayer5](https://wordpress.org/support/users/dmayer5/)
 * (@dmayer5)
 * [6 years ago](https://wordpress.org/support/topic/function-to-disable-for-posts/)
 * I am using this plugin for one of our custom post types, it’s a daily reading
   we have for our users. But, I don’t want this plugin enabled for our blog posts.
   I’ve been on a few websites all using this function:
 *     ```
       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;
   
       }
       ```
   
 * But it doesn’t seem to work any more? Any idea how we can achieve this?
 * Thank you!

The topic ‘Function to Disable for ‘Posts’’ is closed to new replies.

 * ![](https://ps.w.org/disqus-comment-system/assets/icon.svg?rev=1636350)
 * [Disqus Comment System](https://wordpress.org/plugins/disqus-comment-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disqus-comment-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disqus-comment-system/)
 * [Active Topics](https://wordpress.org/support/plugin/disqus-comment-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disqus-comment-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disqus-comment-system/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dmayer5](https://wordpress.org/support/users/dmayer5/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/function-to-disable-for-posts/)
 * Status: not resolved