-1

I didn't find anything related to what i'm trying to do.

My WP blog have several categories. For one specific category, in which I publish short news and viral content, I'd like to use Facebook comments as the default commenting system.

For any other categories, i'd like to keep using Disqus as usual.

My problem : since Disqus is taking over with a hook (I guess), how can I have Facebook comments take over instead of Disqus if in_category(x) ? Where would that happen, and how would you do ?

(Ideally, i'd like to deal with it in functions.php instead of having to edit core Disqus plugin files)

1 Answer 1

0

Do you need to use the Disqus plugin? ie are you synchronising with Wordpress comments (own your own comments etc). If not, it's easier and quicker to remove the plugin and just edit the comments.php file (the actual file depends on your theme but this is the most likely one).

This answer has the Disqus javascript code and you can get the Facebook code from Facebook's Developer Site, and then simply do an if-else with in_category(..) as the condition.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.