Disable Disqus on Custom Post Types in WordPress

675

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’t 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.

Disqus not showing comments on our custom post types was an error on our part. When importing comment to Disqus, we couldn’t 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’t know that it had any comments because we didn’t tell that to Disqus.

So in other words, if you were going to disable Disqus on custom post types because it didn’t 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.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

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 complete WordPress backup of your site before making any big changes.

When you are ready, simply add this code in your theme’s functions.php file or asite-specific plugin.

Don’t 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.

We hope this article helped you disable Disqus on custom post types in WordPress. Also check out how we prevented Disqus from overriding Comments count in WordPress.

If you liked this article, then subscribe to our YouTube Channel or join us on Twitterand Google+.

from :http://www.wpbeginner.com/wp-tutorials/how-to-disable-disqus-on-custom-post-types-in-wordpress/

[quote font=”verdana” font_size=”14″ font_style=”italic” color=”#474747″ bgcolor=”#F5F5F5″ bcolor=”#dd9933″ arrow=”yes” align=”centre”]This Demo Content Brought to you by Momizat Team [/quote]

this is tags and keywords : wordpress themes momizat Tutorial wordpress  templates

Compartilhar.

Autor

675 Comentários

  1. (D)reams are like that: they go in and out of memories and scenes, but they’re never real. They’re never real, and I hate them because they aren’t. ― Beth Revis, Across the Universe

  2. Every weekend i used to pay a visit this website, for the reason that i wish for
    enjoyment, for the reason that this this web page
    conations really nice funny information too.

  3. Pingback: cytotmeds.com

  4. Pingback: prednisone cost at walmart

  5. Pingback: list of doctors using hydroxychloroquine

  6. Pingback: dapoxetine citrate for sale

  7. Good day! I know this is kinda off topic however I’d
    figured I’d ask. Would you be interested in trading links or maybe
    guest authoring a blog article or vice-versa?
    My website addresses a lot of the same subjects as yours and I think we could greatly benefit from each
    other. If you’re interested feel free to send me an email.
    I look forward to hearing from you! Excellent blog by the way! http://hydroxychloroquined.online/

  8. Thank you for every other wonderful post. The place else could anybody get that type of info in such a perfect method
    of writing? I have a presentation next week, and I am on the look for such information.

  9. We stumbled over here from a different website and thought I
    might check things out. I like what I see so i am just following you.
    Look forward to going over your web page repeatedly.

  10. Pingback: free sex dating site

  11. I was curious if you ever considered changing the structure of
    your website? Its very well written; I love what youve got to
    say. But maybe you could a little more in the way of content
    so people could connect with it better. Youve got an awful lot of text
    for only having 1 or 2 images. Maybe you could space it out
    better?

  12. wonderful put up, very informative. I’m wondering why the other specialists of this sector do not notice this.
    You should proceed your writing. I’m sure, you have a great readers’ base already!

  13. I loved as much as you’ll receive carried out right
    here. The sketch is attractive, your authored subject matter stylish.
    nonetheless, you command get bought an shakiness
    over that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly a lot often inside case you shield this
    hike.

  14. Hey there! I’ve been following your web site for a long time now and finally got
    the bravery to go ahead and give you a shout out from Atascocita Tx!
    Just wanted to mention keep up the great job!

  15. When I originally commented I seem to have clicked on the -Notify me
    when new comments are added- checkbox and from now on each time a comment is
    added I receive four emails with the same comment. Perhaps there is a means you
    can remove me from that service? Appreciate it!

  16. I was suggested this blog by means of my cousin. I am no longer sure whether this put
    up is written via him as no one else recognize such unique about my trouble.
    You’re incredible! Thank you!

  17. Etkileşimi Arttırmak İçin Takipçi ve Beğeni Satın Almalısınız

    Özellikle yeni açılan sosyal medya hesaplarının en büyük
    sorunları arasında takipçi sayısının düşüklüğü ve paylaşımlarda
    etkileşim olmamasıdır. Beğeni ve yorumların gelmesi sosyal
    medya hesaplarının gelişimine katkı sağlamaktadır.

    Özellikle çok takipçisi bulunan ve paylaşımları beğenilerek
    yorum yapılan hesaplar ilgi çekmektedir. Takipçi Satın Al işlemleri sayesinde hızlı
    bir etkileşim sağlanabilmektedir. Ancak tüm
    hizmetlerde olduğu gibi bu hizmetlerinde farklı seçenekleri bulunmaktadır.

    https://rebrand.ly/takipci-satin-al

  18. instagram Takipçi Hilesi

    Bir numaralı sosyal medya yardımcınız olarak sizlere gerekli tüm işlemleri
    son derece kaliteli bir şekilde sağlıyoruz. Popüler olmak ve belirli bir kitleye hitap etmek ister
    misiniz, desteğimizle bu prosedürleri takip ederek güne
    ayak uydurarak popülaritenizi kolayca artırabilirsiniz.
    Herkes Instagram hilelerinin güvenilmez olduğuna dair bir algıya sahip ancak 2021
    yazında bu çalışmalar artık yüksek güvenilirlik ve kalite ile
    yapılıyor. En güvenilri şekilde hiç ücret ödemeden günlük limitli
    şekilde takiçilerinizi arttırabilirsiniz

    https://rebrand.ly/takipcibegenihilesi

  19. My partner and I stumbled over here from a different page and thought I
    might check things out. I like what I see so now i’m following you.
    Look forward to looking into your web page repeatedly.

  20. Instagram da Takipçi Satın Alarak Ek Gelir Sağlayabilirsin!

    İnstagram hesapları hem de önemli birer gelir kapısıdır.

    Özellikle reklam gelirleri biroldukça hesap sahibi için ek
    gelir oluşturmaktadır.
    şayet hesaplarınızda reklam alabilmek yahut Instagram üzerinden birşeyler satarak para kazanmaksa
    hedefiniz
    Türk gerçek takipçi paketlerini tercih etmelisiniz.

    Şayet bot yada bota benzer instagram takipçi satın alırsanız
    bunu gören hiç bir müşteri kitlesi size güvenmeyecektir.

    Hatta şunuda söylemekte fayda varki sizi takip etmek dahi istemeyebilirler.

    Bu sebepten sizleri kalitenin adresi olan takip201 e davet ediyoruz.

    En iyi Instagram takipçi satın alınabilir site.

    https://cutt.ly/instagramtakipcisatinal

  21. I was wondering if you ever thought of changing the structure of your website?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of
    content so people could connect with it better.
    Youve got an awful lot of text for only having one or 2 images.
    Maybe you could space it out better?

  22. Hello! I could have sworn I’ve been to this website before but after checking through some of the post
    I realized it’s new to me. Anyhow, I’m definitely glad I found it and I’ll be book-marking and checking back often!

  23. Attractive portion of content. I just stumbled upon your blog and in accession capital to assert that I get actually loved account your
    weblog posts. Anyway I will be subscribing in your feeds and even I achievement you get entry to constantly fast.

  24. Wonderful blog you have here but I was wondering
    if you knew of any community forums that cover the same
    topics talked about in this article? I’d really like to be a part of community where I can get responses from other knowledgeable
    people that share the same interest. If you have any recommendations, please let me know.
    Bless you!

  25. Pingback: best prices on dapoxetine generic

  26. Pingback: nebulizer albuterol prescription

  27. Pingback: hydroxychloroquine prices

  28. Incredible! This blog looks just like my old one!
    It’s on a completely different topic but it has pretty much the
    same page layout and design. Wonderful choice of colors!

  29. I have been surfing online more than 4 hours today, yet I never found
    any interesting article like yours. It is pretty worth enough for me.
    In my opinion, if all site owners and bloggers made good content
    as you did, the internet will be a lot more useful than ever before.

  30. Pingback: what is generic ivermectil

  31. It’s appropriate time to make some plans for the future and it’s time to be happy.
    I have read this post and if I could I desire to suggest you some interesting
    things or suggestions. Maybe you could write next articles referring to this article.
    I wish to read more things about it!

  32. It’s appropriate time to make some plans for the future and it is
    time to be happy. I’ve read this post and if I could I desire to suggest
    you few interesting things or suggestions. Maybe you can write next articles referring
    to this article. I want to read more things about it!

  33. It’s appropriate time to make some plans for the future and it
    is time to be happy. I have read this post and if I could I wish to suggest
    you some interesting things or advice. Perhaps you could write next articles referring to this article.
    I desire to read even more things about it!

  34. I will right away take hold of your rss as I can’t to
    find your e-mail subscription hyperlink or newsletter service.
    Do you’ve any? Kindly let me recognize in order that I may
    just subscribe. Thanks.

  35. I’ve been browsing on-line greater than 3 hours these days, yet I
    by no means found any interesting article like yours.
    It’s lovely price enough for me. Personally, if all webmasters
    and bloggers made excellent content material as you probably did, the web shall
    be a lot more useful than ever before.

  36. It’s perfect time to make some plans for the long run and it is time to be happy.

    I have learn this submit and if I may I want to recommend you some
    interesting things or tips. Maybe you could write next articles relating to this
    article. I wish to read even more issues approximately it!

  37. Viagra krem ağız yolu ile alınmadığından bilinen bir yan etkisi yoktur. Viagra krem anlık kan basıncını yükseltmediğinden kalp ve şeker hastaları tarafından da kullanılabilir. Viagra performans krem kullanıcı yorumlarını sayfamızdan inceleyebilirsiniz. 5 yıldır satışını yapmakta olduğumuz viagra performans krem kullanıcılarından neredeyse hiç olumsuz dönüş almadık.

  38. Pingback: priligy package insert fda

  39. I will right away grab your rss as I can not find your email subscription hyperlink or newsletter service.

    Do you have any? Please permit me recognise in order that I
    could subscribe. Thanks.

  40. Ahaa, its nice conversation concerning this piece of writing at this place at this weblog, I have read all that, so now me also commenting
    here.

  41. Hi, I do believe this is an excellent web site. I stumbledupon it 😉 I will come back yet again since i have saved as
    a favorite it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

  42. It is appropriate time to make a few plans for the long run and it’s time to
    be happy. I’ve read this post and if I may I desire to suggest you some attention-grabbing things
    or advice. Perhaps you can write next articles relating to this article.
    I wish to learn even more issues approximately it!

  43. Howdy just wanted to give you a quick heads up.
    The text in your content seem to be running off the screen in Internet explorer.
    I’m not sure if this is a format issue or something to do with browser compatibility but I figured
    I’d post to let you know. The style and design look great though!
    Hope you get the problem resolved soon. Cheers

  44. Pingback: clavivermecta 62.5 mg

  45. Organik takip�i, ger�ek ve tutarl�l��� olan takip�ilerdir. Sahte takip�i modeli de�ildir. Sizin hesab�n�za gelen organik takip�ilerin hepsi ger�ektir ve hesab�n�za �ok �ey katabilir. Detayl� bilgi i�in T�klay�n�z.

  46. Pingback: stromectol reddit

  47. Pingback: stromectol for cold

  48. Pingback: stromectol 875 mg for lymphatic filariasis

  49. I was recommended this web site by my cousin. I’m not sure whether this post is written by him as
    nobody else know such detailed about my problem. You’re wonderful!
    Thanks!

  50. I simply couldn’t go away your web site prior to suggesting that I actually loved the
    usual information an individual provide for your guests?

    Is gonna be again incessantly in order to check out new posts

  51. I truly love your website.. Very nice colors & theme.
    Did you create this web site yourself? Please reply back as I’m wanting to create my own personal website and would love to know where you got this from or just
    what the theme is called. Thanks!

  52. Greetings from Ohio! I’m bored to tears at work so I decided to
    check out your website on my iphone during lunch break.
    I really like the information you provide here and can’t wait to take a look
    when I get home. I’m surprised at how quick your blog loaded on my mobile ..
    I’m not even using WIFI, just 3G .. Anyhow, superb site!

Leave A Reply

X