On http://wordpress.barrycarter.info/index.php/page/7/ I disabled
comments for “USDCAD options vs CADUSD options arbitrage?”, but it
still has a “Leave a Comment” link.
Clicking the link takes you to
http://wordpress.barrycarter.info/index.php/2011/02/25/usdcad-options-vs-cadusd-options-arbitrage-2/#respond
where it, of course, shows that you can’t leave a comment.
The timeline page correctly does not show the ‘comment’ link: http://wordpress.barrycarter.info/index.php/2011/02/
How to fix?
In the
loop.php
template file, you will find this line:If you don’t want “leave a comment” to display if comments are closed, you can wrap the call to
comments_popup_link()
in aif ( comments_open() )
conditional, like such:Note: you may also want to check the other
loop-foobar.php
template files.