Server maintenance

Disqus comments and WordPress updates

Coming back from my period of inactivity was a confusing experience. It almost felt like the above picture (chaotic) except the nuclear destruction!

Well after updating most themes, a major version upgrade to wordpress and a lot of plugins, I discovered to my horror that my comments section was missing from my newest posts and I couldn’t for the life of me figure out what was going wrong. I searched around on the web and found the solution:

  1. Go to the Appearance section
  2. Go to the Editor sub section
  3. Find your theme in the dropdown in the top right
  4. Go to Theme Functions (it will be a file called functions.php)
  5. Add the following lines of code in the theme setup function:

remove_filter( ‘comments_template’, ‘dsq_comments_template’ );
add_filter( ‘comments_template’, ‘dsq_comments_template’, 99 ); // You can use any priority higher than ’10’

This solved the problem for me and the Disqus comment are now back on track!