{"id":454156,"date":"2006-09-18T23:04:30","date_gmt":"2006-09-18T23:04:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/customizing-the-comments_number-output\/"},"modified":"2016-08-18T21:56:29","modified_gmt":"2016-08-18T21:56:29","slug":"customizing-the-comments_number-output","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/customizing-the-comments_number-output\/","title":{"rendered":"Customizing the comments_number output"},"content":{"rendered":"<p>This is what my comments_number code looks like at the moment:<\/p>\n<blockquote>\n<p>\n&lt;?php comments_number(&#8216;No comments&#8217;, &#8216;1 comment&#8217;, &#8216;% comments, &#8216;number&#8217;); ?&gt;<\/p>\n<\/blockquote>\n<p>I want the output to be linked to the very first comment on the single page, <em>if<\/em> there are any comments. This means that all outputs, except &#8216;no comments&#8217;, will be linked.<\/p>\n<p>How do I go about doing that?<\/p>\n","protected":false},"template":"","class_list":["post-454156","topic","type-topic","status-closed","hentry","topic-tag-comments_number"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/454156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/454156\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=454156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}