{"id":485101,"date":"2006-11-30T03:48:06","date_gmt":"2006-11-30T03:48:06","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/retrieving-count-of-comments\/"},"modified":"2016-08-18T22:13:03","modified_gmt":"2016-08-18T22:13:03","slug":"retrieving-count-of-comments","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/retrieving-count-of-comments\/","title":{"rendered":"Retrieving count of comments?"},"content":{"rendered":"<p>On my archive pages, I&#8217;d like to display not just different link text, but a different link destination, based on whether or not a post has any comments.  Is there any function that will do this, or do I have to cobble together a raw query?<\/p>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-485101","topic","type-topic","status-closed","hentry","topic-tag-count"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/485101","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\/485101\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=485101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}