{"id":5692,"date":"2014-03-14T12:42:45","date_gmt":"2014-03-14T19:42:45","guid":{"rendered":"http:\/\/crimeandtheforcesofevil.com\/blog\/?p=5692"},"modified":"2014-03-14T12:42:45","modified_gmt":"2014-03-14T19:42:45","slug":"the-happy-dance-of-coding-triumph","status":"publish","type":"post","link":"https:\/\/crimeandtheforcesofevil.com\/blog\/2014\/03\/14\/the-happy-dance-of-coding-triumph\/","title":{"rendered":"the happy dance of coding triumph"},"content":{"rendered":"<p>So for the longest time, the comments count on the blog page have been totally wrong. A post could have 30 or 40 notes (comments, likes, etc) of various kinds and show up as zero or one comment in both archives and latest-post (&#8220;Blog&#8221;) views. The correct number would <em>never<\/em> appear.<\/p>\n<p>For example, the two pictures I posted of George today showed up as zero notes combined; the real number was 14, mostly likes. But if you went to the post view or went directly to the individual post, you&#8217;d see everything.<\/p>\n<p>There are reasons for this, having to do with custom comment types and echoing posts around and stuff. I&#8217;ve tried to fix it before, to hilarious failure sound effects, but now? I FINALLY HAVE IT YEEEEEEEEEEEEES \ud83d\ude00<\/p>\n<p>It still doesn&#8217;t count linked comments, which means comments on places like Livejournal and Dreamwidth aren&#8217;t included, but those are only linked-to comments anyway, so that&#8217;s fair.<\/p>\n<p>Damn, this place has felt inappropriately lonely from the Blog view for a long, long time. Talk about discouraging new people from interacting!<\/p>\n<p>Oh, hey, also &#8211; I have a mobile theme (Carrington) that kicks in on small devices. Mobile users, are you okay with that thing? It&#8217;s <em>incredibly<\/em> hard to customise so I haven&#8217;t. I could turn it off entirely, and you&#8217;d get the desktop view on your phone, but that&#8217;s&#8230; not super-optimal either. Any thoughts? (She asked on a Friday afternoon, when nobody reads anything&#8230; XD )<\/p>\n<p>(I will say this for Carrington: <em>it<\/em> has counted comments correctly the whole time. So there, WordPress! XD )<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So for the longest time, the comments count on the blog page have been totally wrong. A post could have 30 or 40 notes (comments, likes, etc) of various kinds and show up as zero or one comment in both archives and latest-post (&#8220;Blog&#8221;) views. The correct number would never appear. For example, the two [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-5692","post","type-post","status-publish","format-standard","hentry","category-diy"],"_links":{"self":[{"href":"https:\/\/crimeandtheforcesofevil.com\/blog\/wp-json\/wp\/v2\/posts\/5692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crimeandtheforcesofevil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/crimeandtheforcesofevil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/crimeandtheforcesofevil.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/crimeandtheforcesofevil.com\/blog\/wp-json\/wp\/v2\/comments?post=5692"}],"version-history":[{"count":0,"href":"https:\/\/crimeandtheforcesofevil.com\/blog\/wp-json\/wp\/v2\/posts\/5692\/revisions"}],"wp:attachment":[{"href":"https:\/\/crimeandtheforcesofevil.com\/blog\/wp-json\/wp\/v2\/media?parent=5692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/crimeandtheforcesofevil.com\/blog\/wp-json\/wp\/v2\/categories?post=5692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/crimeandtheforcesofevil.com\/blog\/wp-json\/wp\/v2\/tags?post=5692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}