When working on a Wordpress theme on a development deployment (you aren’t working on production, are you?) and using Disqus comments for commenting you may notice Disqus will not enable commenting if the site URL has changed from the one in the settings.
To get around this you can extend functions.php to enable Disqus during development. I have my local setup using a .dev domain which I can use to detect if I’m in development or not.
1 2 3 4 5 6 7 8 9 10 11 12 13
Note that any comments made on the .dev domain will be set with that URL in Disqus (but you can delete the comments or migrate the domain names using the moderation panel later).