I’ve created a CPT for a site I’m working on at the moment called “campaigns”. I’ve created a page which displays some content as well a custom loop which displays the most recent Campaign.

Everywhere else on the site I’ve used Disqus for commenting and I’d like to use Disqus here – but it doesn’t seem to display. I’ve tried modifying the comments code to:

<?php $withcomments = "1"; comments_template(); ?>

but I get the regular comments form, rather than Disqus. Anyone any ideas how to work around that?

Thanks in advance!

8-2-11 – I’ve found a temporary workaround – which is to overwrite the comments.php file in the theme with the comments file from the plugin – but that means keeping the two in sync, so it would be great if I could find a better solution.

2 Answers
2

Are you registering your CPT with comments in supports array of register_post_type()?

From brief look at Disqus plugin code there is dsq_comments_template() function that checks for related stuff and it likely returns false if support for comments is not declared.

Leave a Reply

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