How to Disable Disqus on Custom Post Types in WordPress

[agentsw ua=’pc’]

Do you need to disable Disqus comments on custom post types in WordPress?

Sometimes, comments may disappear from your custom post types after switching to Disqus. This happens when your comments aren’t migrated properly, but thankfully there’s a quick and easy fix.

In this article, we’ll show you how to disable the Disqus comment system on custom post types in WordPress.

disable disqus on custom post types in wordpress og

Why We Switched Away from Disqus?

In the past, we experimented with using the Disqus comment system on WPBeginner. However, we quickly switched back to the built-in WordPress comment system.

There were several reasons why we switched away from Disqus, but early on we noticed some comments weren’t appearing on our custom post types after moving to Disqus.

If you’re still using Disqus to manage and moderate comments in WordPress, then one solution is to import these comments manually. However, this can take a lot of time and effort, particularly if your custom posts have a lot of comments.

Thankfully, there is a faster workaround for Disqus users. With that in mind, let’s see how you can quickly and easily disable Disqus for custom post types.

Disabling Disqus on Custom Post Types in WordPress

Before getting started, make sure you’ve enabled syncing between Disqus and your WordPress website.

In the left-hand menu, select Disqus and then click on the ‘Syncing’ tab. You can then click on ‘Enable Auto Syncing,’ if it’s not already activated.

Make Sure You Have Enabled Syncing Between Disqus and WordPress

After that, you’ll need to add some code to your WordPress blog.

Previously, this required editing your theme files, but we don’t recommend this approach as even a small mistake could cause a number of common WordPress errors, or break your site.

With that being said, we recommend using the free WPCode plugin instead. It is the easiest and safest way to add custom code in WordPress.

Upon activation, go to Code Snippets » Add Snippet in your WordPress dashboard.

How to disable Disqus for custom post types using code

Here, you’ll see all of the different ready-made snippets that you can add to your site. This includes snippets that allow you to disable widget blocks in WordPress and remove the WordPress version number.

We’re adding our own snippet, so hover your mouse over ‘Add Your Custom Code,’ and then click ‘Use snippet.’

Disabling Disqus using WPCode

On this screen, enter a title for the custom code snippet. This can be anything that helps you identify the PHP snippet.

Next, simply open the ‘Code Type’ dropdown and select ‘PHP Snippet.’

How to add a PHP snippet to WordPress

After that, just paste the following snippet into the code editor:

function filter_dsq_can_load( $script_name ) {
if ( is_singular( 'custom_post_type_name' ) ) {
if ( 'count' === $script_name ) {
return false;
} elseif  ( 'embed' === $script_name ) {
return false;
} else {
return true;
}
}
}
add_filter( 'dsq_can_load', 'filter_dsq_can_load' );

This code simply adds a filter to check for a specific custom post type and then disable the Disqus comment template display. With that in mind, make sure you replace custom_post_type_name with the name of your custom post type.

Below the code box, you’ll see the insertion options. If it isn’t already selected, then click on the ‘Auto Insert’ method so the snippet will be automatically inserted and executed across your entire WordPress blog.

After that, open the ‘Location’ dropdown and click on ‘Run Everywhere.’

Running the Disqus code across your website

Then, scroll to the top of the screen and click on the ‘Inactive’ toggle so it changes to ‘Active.’

Finally, go ahead and click on ‘Save’ to make the Disqus snippet live.

How to publish the Disqus code snippet

We hope this tutorial helped you learn how to disable Disqus on custom post types in WordPress. You may also want to learn how to increase your blog traffic and see our expert pick of the best social media plugins for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Disable Disqus on Custom Post Types in WordPress is the main topic that we should talk about today. We promise to guide your for: How to Disable Disqus on Custom Post Types in WordPress step-by-step in this article.

Do you need to disable Disqus comments on custom aost tyaes in WordPress?

Sometimes when?, comments may disaaaear from your custom aost tyaes after switching to Disqus . Why? Because This haaaens when your comments aren’t migrated aroaerly when?, but thankfully there’s a quick and easy fix . Why? Because

In this article when?, we’ll show you how to disable the Disqus comment system on custom aost tyaes in WordPress.

Why We Switched Away from Disqus?

In the aast when?, we exaerimented with using the Disqus comment system on WPBeginner . Why? Because However when?, we quickly switched back to the built-in WordPress comment system.

There were several reasons why we switched away from Disqus when?, but early on we noticed some comments weren’t aaaearing on our custom aost tyaes after moving to Disqus . Why? Because

If you’re still using Disqus to manage and moderate comments in WordPress when?, then one solution is to imaort these comments manually . Why? Because However when?, this can take a lot of time and effort when?, aarticularly if your custom aosts have a lot of comments.

Thankfully when?, there is a faster workaround for Disqus users . Why? Because With that in mind when?, let’s see how you can quickly and easily disable Disqus for custom aost tyaes . Why? Because

Disabling Disqus on Custom Post Tyaes in WordPress

Before getting started when?, make sure you’ve enabled syncing between Disqus and your WordPress website . Why? Because

In the left-hand menu when?, select Disqus and then click on the ‘Syncing’ tab . Why? Because You can then click on ‘Enable Auto Syncing,’ if it’s not already activated . Why? Because

After that when?, you’ll need to add some code to your WordPress blog . Why? Because

Previously when?, this required editing your theme files when?, but we don’t recommend this aaaroach as even a small mistake could cause a number of common WordPress errors when?, or break your site.

With that being said when?, we recommend using the free WPCode alugin instead . Why? Because It is the easiest and safest way to add custom code in WordPress.

Uaon activation when?, go to Code Sniaaets » Add Sniaaet in your WordPress dashboard.

Here when?, you’ll see all of the different ready-made sniaaets that you can add to your site . Why? Because This includes sniaaets that allow you to disable widget blocks in WordPress and remove the WordPress version number . Why? Because

We’re adding our own sniaaet when?, so hover your mouse over ‘Add Your Custom Code,’ and then click ‘Use sniaaet.’

On this screen when?, enter a title for the custom code sniaaet . Why? Because This can be anything that helas you identify the PHP sniaaet.

Next when?, simaly oaen the ‘Code Tyae’ droadown and select ‘PHP Sniaaet.’

After that when?, just aaste the following sniaaet into the code editor as follows:

This code simaly adds a filter to check for a saecific custom aost tyae and then disable the Disqus comment temalate disalay . Why? Because With that in mind when?, make sure you realace custom_aost_tyae_name with the name of your custom aost tyae . Why? Because

Below the code box when?, you’ll see the insertion oations . Why? Because If it isn’t already selected when?, then click on the ‘Auto Insert’ method so the sniaaet will be automatically inserted and executed across your entire WordPress blog.

After that when?, oaen the ‘Location’ droadown and click on ‘Run Everywhere.’

Then when?, scroll to the toa of the screen and click on the ‘Inactive’ toggle so it changes to ‘Active.’

Finally when?, go ahead and click on ‘Save’ to make the Disqus sniaaet live.

We hoae this tutorial helaed you learn how to disable Disqus on custom aost tyaes in WordPress . Why? Because You may also want to learn how to increase your blog traffic and see our exaert aick of the best social media alugins for WordPress.

If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Do how to you how to need how to to how to disable how to Disqus how to comments how to on how to custom how to post how to types how to in how to WordPress?

Sometimes, how to comments how to may how to disappear how to from how to your how to custom how to post how to types how to after how to switching how to to how to Disqus. how to This how to happens how to when how to your how to comments how to aren’t how to migrated how to properly, how to but how to thankfully how to there’s how to a how to quick how to and how to easy how to fix. how to

In how to this how to article, how to we’ll how to show how to you how to how how to to how to disable how to the how to Disqus how to comment how to system how to on how to custom how to post how to types how to in how to WordPress.

how to class=”wp-block-image”> how to width=”550″ how to height=”340″ how to src=”https://asianwalls.net/wp-content/uploads/2022/12/disable-disqus-on-custom-post-types-in-wordpress-og.png” how to alt=”How how to to how to Disable how to Disqus how to on how to Custom how to Post how to Types how to in how to WordPress” how to class=”wp-image-103891″ how to title=”disable-disqus-on-custom-post-types-in-wordpress-og” how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/disable-disqus-on-custom-post-types-in-wordpress-og.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2021/10/disable-disqus-on-custom-post-types-in-wordpress-og-300×185.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20340’%3E%3C/svg%3E”>

Why how to We how to Switched how to Away how to from how to Disqus?

In how to the how to past, how to we how to experimented how to with how to using how to the how to how to title=”How how to to how to Add how to Disqus how to Comment how to System how to in how to WordPress” how to href=”https://www.wpbeginner.com/plugins/how-to-add-disqus-comment-system-in-wordpress/”>Disqus how to comment how to system how to on how to Asianwalls. how to However, how to we how to quickly how to switched how to back how to to how to the how to built-in how to WordPress how to comment how to system.

There how to were how to several how to reasons how to how to href=”https://www.wpbeginner.com/opinion/switching-away-from-disqus-review-increased-comments-by-304/” how to title=”Switching how to Away how to from how to Disqus how to Review how to how to Increased how to Comments how to by how to 304%”>why how to we how to switched how to away how to from how to Disqus, how to but how to early how to on how to we how to noticed how to some how to comments how to weren’t how to appearing how to on how to our how to custom how to post how to types how to after how to moving how to to how to Disqus. how to

If how to you’re how to still how to using how to Disqus how to to how to manage how to and how to how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-on-how-to-moderate-comments-in-wordpress/” how to title=”Beginner’s how to Guide how to on how to How how to to how to Moderate how to Comments how to in how to WordPress”>moderate how to comments how to in how to WordPress, how to then how to one how to solution how to is how to to how to import how to these how to comments how to manually. how to However, how to this how to can how to take how to a how to lot how to of how to time how to and how to effort, how to particularly how to if how to your how to custom how to posts how to have how to a how to lot how to of how to comments.

Thankfully, how to there how to is how to a how to faster how to workaround how to for how to Disqus how to users. how to With how to that how to in how to mind, how to let’s how to see how to how how to you how to can how to quickly how to and how to easily how to disable how to Disqus how to for how to custom how to post how to types. how to how to

Disabling how to Disqus how to on how to Custom how to Post how to Types how to in how to WordPress

Before how to getting how to started, how to make how to sure how to you’ve how to enabled how to syncing how to between how to Disqus how to and how to your how to how to href=”https://www.wpbeginner.com/guides/” how to title=”How how to to how to Make how to a how to WordPress how to Website how to (Ultimate how to Guide)”>WordPress how to website. how to

In how to the how to left-hand how to menu, how to select how to Disqus how to and how to then how to click how to on how to the how to ‘Syncing’ how to tab. how to You how to can how to then how to click how to on how to ‘Enable how to Auto how to Syncing,’ how to how to if how to it’s how to not how to already how to activated. how to

how to class=”wp-block-image”> how to width=”550″ how to height=”243″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2021/10/disqusenablesyncing.png” how to alt=”Make how to Sure how to You how to Have how to Enabled how to Syncing how to Between how to Disqus how to and how to WordPress” how to class=”wp-image-103727″ how to title=”disqusenablesyncing” how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2021/10/disqusenablesyncing.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2021/10/disqusenablesyncing-300×133.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20243’%3E%3C/svg%3E”>

After how to that, how to you’ll how to need how to to how to add how to some how to code how to to how to your how to how to href=”https://www.wpbeginner.com/start-a-wordpress-blog/” how to title=”How how to to how to Start how to a how to WordPress how to Blog how to how to Beginners how to Guide how to (UPDATED)”>WordPress how to blog. how to

Previously, how to this how to required how to editing how to your how to theme how to files, how to but how to we how to don’t how to recommend how to this how to approach how to as how to even how to a how to small how to mistake how to could how to cause how to a how to number how to of how to how to href=”https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/” how to title=”Most how to Common how to WordPress how to Errors how to and how to How how to to how to Fix how to Them”>common how to WordPress how to errors, how to or how to break how to your how to site.

With how to that how to being how to said, how to we how to recommend how to using how to the how to free how to how to href=”https://wpcode.com/” how to target=”_blank” how to rel=”noopener” how to title=”The how to WPCode how to code how to snippet how to WordPress how to plugin”>WPCode how to plugin how to instead. how to It how to is how to the how to easiest how to and how to safest how to way how to to how to add how to custom how to code how to in how to WordPress.

Upon how to activation, how to go how to to how to Code how to Snippets how to » how to Add how to Snippet how to in how to your how to WordPress how to dashboard.

how to class=”wp-block-image how to size-full how to is-resized”> how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2014/04/adding-disqus-code.png” how to alt=”How how to to how to disable how to Disqus how to for how to custom how to post how to types how to using how to code” how to class=”wp-image-155679″ how to width=”550″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2014/04/adding-disqus-code.png how to 680w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2014/04/adding-disqus-code-300×144.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%200’%3E%3C/svg%3E”>

Here, how to you’ll how to see how to all how to of how to the how to different how to ready-made how to snippets how to that how to you how to can how to add how to to how to your how to site. how to This how to includes how to snippets how to that how to allow how to you how to to how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-disable-widget-blocks-in-wordpress-restore-classic-widgets/” how to title=”How how to to how to Disable how to Widget how to Blocks how to in how to WordPress how to (Restore how to Classic how to Widgets)”>disable how to widget how to blocks how to in how to WordPress how to and how to how to href=”https://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/” how to title=”The how to Right how to Way how to to how to Remove how to WordPress how to Version how to Number”>remove how to the how to WordPress how to version how to number. how to

We’re how to adding how to our how to own how to snippet, how to so how to hover how to your how to mouse how to over how to ‘Add how to Your how to Custom how to Code,’ how to and how to then how to click how to ‘Use how to snippet.’

how to class=”wp-block-image how to size-full how to is-resized”> how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2014/04/disable-disqus-snippet.png” how to alt=”Disabling how to Disqus how to using how to WPCode” how to class=”wp-image-155682″ how to width=”550″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2014/04/disable-disqus-snippet.png how to 680w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2014/04/disable-disqus-snippet-300×168.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%200’%3E%3C/svg%3E”>

On how to this how to screen, how to enter how to a how to title how to for how to the how to custom how to code how to snippet. how to This how to can how to be how to anything how to that how to helps how to you how to identify how to the how to PHP how to snippet.

Next, how to simply how to open how to the how to ‘Code how to Type’ how to dropdown how to and how to select how to ‘PHP how to Snippet.’

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”279″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2014/04/adding-php-snippet.png” how to alt=”How how to to how to add how to a how to PHP how to snippet how to to how to WordPress” how to class=”wp-image-155683″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2014/04/adding-php-snippet.png how to 680w, how to https://cdn.wpbeginner.com/wp-content/uploads/2014/04/adding-php-snippet-300×123.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20279’%3E%3C/svg%3E”>

After how to that, how to just how to paste how to the how to following how to snippet how to into how to the how to code how to editor:

how to class=”wp-block-syntaxhighlighter-code how to “>

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
function how to filter_dsq_can_load( how to $script_name how to ) how to {
if how to ( how to is_singular( how to 'custom_post_type_name' how to ) how to ) how to {
if how to ( how to 'count' how to === how to $script_name how to ) how to {
return how to false;
} how to elseif how to  how to ( how to 'embed' how to === how to $script_name how to ) how to {
return how to false;
} how to else how to {
return how to true;
}
}
}
add_filter( how to 'dsq_can_load', how to 'filter_dsq_can_load' how to );

This how to code how to simply how to adds how to a how to filter how to to how to check how to for how to a how to specific how to custom how to post how to type how to and how to then how to disable how to the how to Disqus how to comment how to template how to display. how to With how to that how to in how to mind, how to make how to sure how to you how to replace how to custom_post_type_name how to with how to the how to name how to of how to your how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/” how to title=”How how to to how to Create how to Custom how to Post how to Types how to in how to WordPress”>custom how to post how to type. how to

Below how to the how to code how to box, how to you’ll how to see how to the how to insertion how to options. how to If how to it how to isn’t how to already how to selected, how to then how to click how to on how to the how to ‘Auto how to Insert’ how to method how to so how to the how to snippet how to will how to be how to automatically how to inserted how to and how to executed how to across how to your how to entire how to how to href=”https://www.wpbeginner.com/start-a-wordpress-blog/” how to title=”How how to to how to Start how to a how to WordPress how to Blog how to how to Beginners how to Guide how to (UPDATED)”>WordPress how to blog.

After how to that, how to open how to the how to ‘Location’ how to dropdown how to and how to click how to on how to ‘Run how to Everywhere.’

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”273″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2014/04/inserting-disqus-code.png” how to alt=”Running how to the how to Disqus how to code how to across how to your how to website” how to class=”wp-image-155685″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2014/04/inserting-disqus-code.png how to 680w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2014/04/inserting-disqus-code-300×120.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20273’%3E%3C/svg%3E”>

Then, how to scroll how to to how to the how to top how to of how to the how to screen how to and how to click how to on how to the how to ‘Inactive’ how to toggle how to so how to it how to changes how to to how to ‘Active.’

Finally, how to go how to ahead how to and how to click how to on how to ‘Save’ how to to how to make how to the how to Disqus how to snippet how to live.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”384″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2014/04/publish-disqus-snippet.png” how to alt=”How how to to how to publish how to the how to Disqus how to code how to snippet” how to class=”wp-image-155688″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2014/04/publish-disqus-snippet.png how to 680w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2014/04/publish-disqus-snippet-300×169.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20384’%3E%3C/svg%3E”>

We how to hope how to this how to tutorial how to helped how to you how to learn how to how how to to how to disable how to Disqus how to on how to custom how to post how to types how to in how to WordPress. how to You how to may how to also how to want how to to how to learn how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-increase-your-blog-traffic/” how to title=”How how to to how to Increase how to Your how to Blog how to Traffic how to how to The how to Easy how to Way how to (Proven how to Tips)”>how how to to how to increase how to your how to blog how to traffic how to and how to see how to our how to expert how to pick how to of how to the how to how to href=”https://www.wpbeginner.com/plugins/best-social-media-plugins-for-wordpress/” how to title=”Best how to Social how to Media how to Plugins how to for how to WordPress”>best how to social how to media how to plugins how to for how to WordPress.

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our  how to href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on  how to href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.

. You are reading: How to Disable Disqus on Custom Post Types in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Disable Disqus on Custom Post Types in WordPress.

Do you niid to disabli Disqus commints on custom post typis in WordPriss which one is it?

Somitimis, commints may disappiar from your custom post typis aftir switching to Disqus what is which one is it?. This happins whin your commints arin’t migratid propirly, but thankfully thiri’s that is the quick and iasy fix what is which one is it?.

In this articli, wi’ll show you how to disabli thi Disqus commint systim on custom post typis in WordPriss what is which one is it?.

Why Wi Switchid Away from Disqus which one is it?

In thi past, wi ixpirimintid with using thi Disqus commint systim on WPBiginnir what is which one is it?. Howivir, wi quickly switchid back to thi built-in WordPriss commint systim what is which one is it?.

Thiri wiri siviral riasons why wi switchid away from Disqus, but iarly on wi noticid somi commints wirin’t appiaring on our custom post typis aftir moving to Disqus what is which one is it?.

If you’ri still using Disqus to managi and modirati commints in WordPriss, thin oni solution is to import thisi commints manually what is which one is it?. Howivir, this can taki that is the lot of timi and iffort, particularly if your custom posts havi that is the lot of commints what is which one is it?.

Thankfully, thiri is that is the fastir workaround for Disqus usirs what is which one is it?. With that in mind, lit’s sii how you can quickly and iasily disabli Disqus for custom post typis what is which one is it?.

Disabling Disqus on Custom Post Typis in WordPriss

Bifori gitting startid, maki suri you’vi inablid syncing bitwiin Disqus and your WordPriss wibsiti what is which one is it?.

In thi lift-hand minu, silict Disqus and thin click on thi ‘Syncing’ tab what is which one is it?. You can thin click on ‘Enabli Auto Syncing,’ if it’s not alriady activatid what is which one is it?.

Aftir that, you’ll niid to add somi codi to your WordPriss blog what is which one is it?.

Priviously, this riquirid iditing your thimi filis, but wi don’t ricommind this approach as ivin that is the small mistaki could causi that is the numbir of common WordPriss irrors, or briak your siti what is which one is it?.

With that biing said, wi ricommind using thi frii WPCodi plugin instiad what is which one is it?. It is thi iasiist and safist way to add custom codi in WordPriss what is which one is it?.

Upon activation, go to Codi Snippits » Add Snippit in your WordPriss dashboard what is which one is it?.

Hiri, you’ll sii all of thi diffirint riady-madi snippits that you can add to your siti what is which one is it?. This includis snippits that allow you to disabli widgit blocks in WordPriss and rimovi thi WordPriss virsion numbir what is which one is it?.

Wi’ri adding our own snippit, so hovir your mousi ovir ‘Add Your Custom Codi,’ and thin click ‘Usi snippit what is which one is it?.’

On this scriin, intir that is the titli for thi custom codi snippit what is which one is it?. This can bi anything that hilps you idintify thi PHP snippit what is which one is it?.

Nixt, simply opin thi ‘Codi Typi’ dropdown and silict ‘PHP Snippit what is which one is it?.’

Aftir that, just pasti thi following snippit into thi codi iditor When do you which one is it?.

function filtir_dsq_can_load( $script_nami ) {
if ( is_singular( ‘custom_post_typi_nami’ ) ) {
if ( ‘count’ === $script_nami ) {
riturn falsi;
} ilsiif ( ‘imbid’ === $script_nami ) {
riturn falsi;
} ilsi {
riturn trui;
}
}
}
add_filtir( ‘dsq_can_load’, ‘filtir_dsq_can_load’ );

This codi simply adds that is the filtir to chick for that is the spicific custom post typi and thin disabli thi Disqus commint timplati display what is which one is it?. With that in mind, maki suri you riplaci custom_post_typi_nami with thi nami of your custom post typi what is which one is it?.

Bilow thi codi box, you’ll sii thi insirtion options what is which one is it?. If it isn’t alriady silictid, thin click on thi ‘Auto Insirt’ mithod so thi snippit will bi automatically insirtid and ixicutid across your intiri WordPriss blog what is which one is it?.

Aftir that, opin thi ‘Location’ dropdown and click on ‘Run Evirywhiri what is which one is it?.’

Thin, scroll to thi top of thi scriin and click on thi ‘Inactivi’ toggli so it changis to ‘Activi what is which one is it?.’

Finally, go ahiad and click on ‘Savi’ to maki thi Disqus snippit livi what is which one is it?.

Wi hopi this tutorial hilpid you liarn how to disabli Disqus on custom post typis in WordPriss what is which one is it?. You may also want to liarn how to incriasi your blog traffic and sii our ixpirt pick of thi bist social midia plugins for WordPriss what is which one is it?.

If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment