How to Disable Disqus on Custom Post Types in WordPress: Easy Guide

How to Disable Disqus on Custom Post Types in Wordpress
How to Disable Disqus on Custom Post Types in WordPress

Disqus is a popular commenting system. It is used by many WordPress websites. But sometimes, you may want to disable Disqus on custom post types. This guide will help you do that. Follow these simple steps.

What is Disqus?

Disqus is a platform for comments. It helps users leave comments on your website. It is easy to use and very popular. Many WordPress sites use it for managing comments.

Why Disable Disqus on Custom Post Types?

Sometimes, you do not need comments on all posts. You may have custom post types. These can be portfolios, products, or other content. Disabling Disqus on these can keep your site clean. It can also improve user experience.

Steps to Disable Disqus on Custom Post Types

Follow these steps to disable Disqus on custom post types:

Step 1: Log In To Your WordPress Dashboard

First, log in to your WordPress admin area. This is where you can manage your site. You need to have admin access.

Step 2: Go To The Plugins Section

In the left menu, click on “Plugins”. This will open the plugins page. Here, you can see all installed plugins on your site.

Step 3: Find Disqus Plugin

Look for the Disqus plugin in the list. It may be called “Disqus Comment System”. Click on “Settings” under the Disqus plugin.

Step 4: Access Advanced Settings

In the settings page, find “Advanced Options”. Click on it to expand the section. Here, you will find more settings for Disqus.

Step 5: Disable Disqus On Custom Post Types

Find the option “Enable on custom post types”. Uncheck the custom post types you want to disable. This will turn off Disqus on those post types.

Step 6: Save Changes

Scroll down and click on “Save Changes”. This will update the settings. Disqus will now be disabled on the selected custom post types.

Checking the Changes

It is important to check if the changes worked. Visit the custom post types on your site. Make sure Disqus comments are no longer visible.

How to Disable Disqus on Custom Post Types in WordPress: Easy Guide

Credit: wparena.com

How to Disable Disqus on Custom Post Types in WordPress: Easy Guide

Credit: www.wpbeginner.com

Using Code to Disable Disqus on Custom Post Types

You can also use code to disable Disqus. This can be useful for advanced users. Here is how you can do it:

Step 1: Access Your Theme’s Functions.php File

Go to your WordPress dashboard. Click on “Appearance”, then “Theme Editor”. Find the “functions.php” file in the right menu.

Step 2: Add Code To Disable Disqus

Add the following code to the functions.php file:


    function remove_disqus_from_custom_post_types() {
        if ( is_singular('your_custom_post_type') ) {
            remove_filter('comments_template', 'dsq_comments_template');
        }
    }
    add_action('template_redirect', 'remove_disqus_from_custom_post_types');
    

Replace ‘your_custom_post_type’ with the name of your custom post type. Save the changes.

Step 3: Check The Changes

Visit your custom post types. Ensure Disqus is no longer visible. The code should work if added correctly.

Benefits of Disabling Disqus on Custom Post Types

There are several benefits to disabling Disqus on custom post types:

  • Improves site performance
  • Keeps content organized
  • Enhances user experience
  • Reduces unnecessary comments

These benefits can make your site better for users.

Frequently Asked Questions

How To Disable Disqus On Specific Post Types?

Go to your WordPress admin panel. Navigate to the Disqus plugin settings. Choose the post types to disable Disqus.

Can I Disable Disqus On Pages Only?

Yes. In the Disqus settings, you can select “Pages” to disable Disqus comments only on pages.

Is It Possible To Disable Disqus For Custom Post Types?

Yes. You can disable Disqus for custom post types in the plugin settings by unchecking the relevant options.

How Do I Disable Disqus Without Coding?

Use the Disqus plugin settings in your WordPress dashboard. No coding needed.

Conclusion

Disabling Disqus on custom post types is easy. You can do it through settings or by using code. Follow the steps in this guide. Your site will be more organized and user-friendly.

If you have any questions, feel free to ask. We are here to help you manage your WordPress site better.

Leave a Reply

Your email address will not be published. Required fields are marked *

Iqbal hossen Juel

A seasoned marketing professional with over a decade of experience in digital and traditional marketing. Currently serving as Digital Experience Lead at Starcom, He brings a unique blend of strategic marketing expertise and technical knowledge to the table. With a passion for programming and design, he offers a distinctive perspective that bridges the gap between marketing strategy and technical implementation.

Our Review Process:

We test and review software products based on an independent, multi-point methodology. If you use our links to purchase something, we earn a commission. Read our editorial process and disclosures.

Ultimate Collection Of

Business Tools

A collection of business related Tools and resources that every business owner should have!

Table of Contents

Related Posts

Best Ai Chatbot
Best Ai Chatbot: Revolutionizing Customer Engagement
Best AI Chatbot What is an AI Chatbot? An AI chatbot is a computer program. It talks with humans using...
Read More
Best Comic Making App
Best Comic Making App: Unleash Your Creativity Today!
Best Comic Making App Do you love comics? Do you want to make your own? Today, we will talk about the...
Read More
Content Optimization: Boost Your Rankings with Proven Strategies
Ever wonder why some pages skyrocket on Google while others flop? Content optimization is the secret...
Read More
Best Clothes Editor
Best Clothes Editor: Transform Your Wardrobe Instantly
Best Clothes Editor Editing clothes in photos can be fun. It can also be useful. Many apps and tools...
Read More