It works fine on single posts too (or anywhere else for that matter), not just the home page.  I've used it in plugins. <div><br></div><div>I'm not sure if it's a flaw in the system though. comments_link(), from my understanding, is only meant to link to the comments. If there are no comments to link to, we probably shouldn't attempt to link to them. </div><div><br></div><div>With that said, I've long believed that the WP template tags could use an overhaul. There are a lot of these little oddities that are confusing. <br><br>On Thursday, October 23, 2014, Philip M. Hofer (Frumph) <<a href="mailto:philip@frumph.net">philip@frumph.net</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:12pt">
<div>That’s nice, but comment_popup_link() only works on the 
is_home/is_front_page while plugin authors and others who create unique loops 
that need to work elsewhere are apparently going to be out of luck.</div>
<div> </div>
<div>Say for example someone wants to put a comments link at the top of the post 
itself and the post is quite long, it will not work if there are no comments 
since #comments doesn’t exist.  It will not auto-realign to the comments 
area because comments_popup_link will not appear on the singles</div>
<div> </div>
<div>But hey, whatever you want.  Just pointing out a flaw in the 
system.</div>
<div> </div>
<div style="FONT-STYLE:normal;DISPLAY:inline;FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:small;FONT-WEIGHT:normal;TEXT-DECORATION:none">
<div style="FONT:10pt tahoma">
<div> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="justin@justintadlock.com" href="javascript:_e(%7B%7D,'cvml','justin@justintadlock.com');" target="_blank">Justin Tadlock</a> </div>
<div><b>Sent:</b> Thursday, October 23, 2014 8:37 AM</div>
<div><b>To:</b> <a title="theme-reviewers@lists.wordpress.org" href="javascript:_e(%7B%7D,'cvml','theme-reviewers@lists.wordpress.org');" target="_blank">Discussion list for WordPress 
theme reviewers.</a> </div>
<div><b>Subject:</b> Re: [theme-reviewers] Friendly request? About themes 
commentssection</div></div></div>
<div> </div></div>
<div style="FONT-STYLE:normal;DISPLAY:inline;FONT-FAMILY:'Calibri';COLOR:#000000;FONT-SIZE:small;FONT-WEIGHT:normal;TEXT-DECORATION:none">
<div dir="ltr">
<div>If you go back and look at some of the original themes or even in the 
`wp-includes/theme-compat/comments.php`, you'll notice this is how it's done and 
has always been done as far as I can remember.  The `#comments` section 
isn't shown until there are actual comments.  </div>
<div> </div>
<div>This is why I'd consider `comments_link()` and `get_comments_link()` the 
inappropriate functions when there are no comments for the post. You'd be 
linking to something that does not yet exist.</div>
<div> </div>
<div>I'd use `comments_popup_link()` instead, which will display a link to 
either `#comments` or `#respond` depending on the situation.  This function 
also takes into account things like whether comments are open, pings are open, 
or a password is required before showing the link. </div>
<div> </div></div>
<div class="gmail_extra">
<div> </div>
<div class="gmail_quote">On Thu, Oct 23, 2014 at 5:47 AM, Philip M. Hofer (Frumph) 
<span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','philip@frumph.net');" target="_blank">philip@frumph.net</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">comments_link()   get_comments_link() appends 
  #comments to the end of the url<br><br>If  the comments section 
  displaying on the single pages/posts does not have a id="comments" then the 
  comments_link appending of the #comments is worthless .. I see quite a few 
  themes that only have the #respond section but not the wrapper around it for 
  #comments<br><br>The most common reason is that dev's have it so that it's in 
  the part of the comments.php section that only shows up when the post actually 
  has a comment made for it ..<br><br>^ which it shouldn't, then it's not seen 
  or used as a ref.  for the #comments in the comments_link;   it 
  should be the class for the wrapper for the whole entire comments section - or 
  at least shown as a marker location regardless if the post has comments or 
  not<br><br>- 
  Phil<br><br><br><br><br><br><br><br>______________________________<u></u>_________________<br>theme-reviewers 
  mailing list<br><a href="javascript:_e(%7B%7D,'cvml','theme-reviewers@lists.wordpress.org');" target="_blank">theme-reviewers@lists.<u></u>wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/<u></u>mailman/listinfo/theme-<u></u>reviewers</a><br></blockquote></div>
<div> </div></div>
<p>
</p><hr>
_______________________________________________<br>theme-reviewers mailing 
list<br><a href="javascript:_e(%7B%7D,'cvml','theme-reviewers@lists.wordpress.org');" target="_blank">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br><p></p></div></div></div></div>
</blockquote></div>