{"id":4438,"date":"2014-05-17T06:06:43","date_gmt":"2014-05-17T06:06:43","guid":{"rendered":"http:\/\/demo.momizat.net\/goodnews\/?p=49"},"modified":"2014-05-17T06:06:43","modified_gmt":"2014-05-17T06:06:43","slug":"disable-disqus-on-custom-post-types","status":"publish","type":"post","link":"https:\/\/bulandrashtrawadi.in\/?p=4438","title":{"rendered":"Disable Disqus on Custom Post Types in WordPress"},"content":{"rendered":"<p>We recently switched from WordPress comments to <a title=\"How to Add Disqus Comment System in WordPress\" href=\"http:\/\/www.wpbeginner.com\/plugins\/how-to-add-disqus-comment-system-in-wordpress\/\">Disqus comment system<\/a> on WPBeginner. One of our users pointed out that comments on our custom post types comments weren\u2019t migrated properly. For a temporary solution, we simply disabled Disqus on certain custom post types. In this article, we will show you how to disable Disqus on custom post types in WordPress.<\/p>\n<p>Disqus not showing comments on our custom post types was an error on our part. When importing comment to Disqus, we couldn\u2019t use the normal sync feature because of the size of our site. We had to generate an export file and send it to Disqus to pre-import the comments. This meant that we only did this for posts and not other post types. So when Disqus showed 0 comments on a custom post type item that had 50+ comments, it really was because Disqus didn\u2019t know that it had any comments because we didn\u2019t tell that to Disqus.<\/p>\n<p>So in other words, if you were going to disable Disqus on custom post types because it didn\u2019t work, then maybe you should check your import settings first. But if you want to disable Disqus on custom post types for some other reason, then follow along.<\/p>\n<h4>Video Tutorial<\/h4>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/yRnUvvJcS1s?feature=oembed\" width=\"500\" height=\"281\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>If you don\u2019t like the video or need more instructions, then continue reading.<\/p>\n<p>Before you make any changes make sure that you have enabled syncing between Disqus and WordPress. It is also recommended that you always make a <a title=\"Keep Your WordPress Content Safe With Backup Buddy\" href=\"http:\/\/www.wpbeginner.com\/plugins\/keep-your-wordpress-content-safe-with-backupbuddy\/\">complete WordPress backup<\/a> of your site before making any big changes.<\/p>\n<p>When you are ready, simply add this code in your theme\u2019s <a title=\"What is functions.php File in WordPress?\" href=\"http:\/\/www.wpbeginner.com\/glossary\/functions-php\/\">functions.php<\/a> file or a<a title=\"How to Create a Site-Specific WordPress Plugin\" href=\"http:\/\/www.wpbeginner.com\/beginners-guide\/what-why-and-how-tos-of-creating-a-site-specific-wordpress-plugin\/\">site-specific plugin<\/a>.<\/p>\n<div id=\"highlighter_987351\" class=\"syntaxhighlighter  \">\n<div class=\"lines\">\n<div class=\"line alt1\">Don\u2019t forget to replace custom_post_type_name with the name of your custom post type. This code simply adds a filter to check for a specific custom post type and disable Disqus comment template display.<\/div>\n<\/div>\n<\/div>\n<p>We hope this article helped you disable Disqus on custom post types in WordPress. Also check out how we <a title=\"How to Prevent Disqus From Overriding WordPress Comment Count\" href=\"http:\/\/www.wpbeginner.com\/wp-themes\/how-to-prevent-disqus-from-overriding-your-wordpress-comment-count\/\">prevented Disqus from overriding Comments count in WordPress<\/a>.<\/p>\n<p>If you liked this article, then subscribe to our <a title=\"WPBeginner on YouTube\" href=\"http:\/\/youtube.com\/wpbeginner\" target=\"_blank\" rel=\"nofollow noopener\">YouTube Channel<\/a> or join us on <a title=\"WPBeginner on Twitter\" href=\"http:\/\/twitter.com\/wpbeginner\" target=\"_blank\" rel=\"nofollow noopener\">Twitter<\/a>and <a title=\"WPBeginner on Google+\" href=\"https:\/\/plus.google.com\/101634180904808003404\/posts\" target=\"_blank\" rel=\"nofollow noopener\">Google+<\/a>.<\/p>\n<p>from :http:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-disable-disqus-on-custom-post-types-in-wordpress\/<\/p>\n<blockquote class=\"mom_quote \" style=\"font-family:verdana;font-size:14px;font-style:italic;border-left-color:#dd9933; color:#474747; background-color:#F5F5F5; \"><span class=\"quote-arrow\" style=\"border-left-color:#dd9933;\"><\/span>This Demo Content Brought to you by <a href=\"http:\/\/momizat.com\/\" target=\"_blank\" rel=\"dofollow noopener\">Momizat Team<\/a> <\/blockquote>\n<h2>this is tags and keywords : wordpress themes momizat Tutorial wordpress \u00a0templates<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>We recently switched from WordPress comments to Disqus comment system on WPBeginner. One of our users pointed out that comments on our custom post types comments weren\u2019t migrated properly. For a temporary solution, we simply disabled Disqus on certain custom post types. In this article, we will show you how to disable Disqus on custom [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":50,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[20,25,75,36,78,79,80,83,53],"_links":{"self":[{"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/posts\/4438"}],"collection":[{"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4438"}],"version-history":[{"count":0,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/posts\/4438\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=\/wp\/v2\/media\/50"}],"wp:attachment":[{"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bulandrashtrawadi.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}