{"action":"opened","issue":{"url":"https://api.github.com/repos/pdewouters/better-archives-widget/issues/5","repository_url":"https://api.github.com/repos/pdewouters/better-archives-widget","labels_url":"https://api.github.com/repos/pdewouters/better-archives-widget/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/pdewouters/better-archives-widget/issues/5/comments","events_url":"https://api.github.com/repos/pdewouters/better-archives-widget/issues/5/events","html_url":"https://github.com/pdewouters/better-archives-widget/issues/5","id":139947056,"number":5,"title":"Add post count","user":{"login":"pdewouters","id":30460,"avatar_url":"https://avatars.githubusercontent.com/u/30460?v=3","gravatar_id":"","url":"https://api.github.com/users/pdewouters","html_url":"https://github.com/pdewouters","followers_url":"https://api.github.com/users/pdewouters/followers","following_url":"https://api.github.com/users/pdewouters/following{/other_user}","gists_url":"https://api.github.com/users/pdewouters/gists{/gist_id}","starred_url":"https://api.github.com/users/pdewouters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdewouters/subscriptions","organizations_url":"https://api.github.com/users/pdewouters/orgs","repos_url":"https://api.github.com/users/pdewouters/repos","events_url":"https://api.github.com/users/pdewouters/events{/privacy}","received_events_url":"https://api.github.com/users/pdewouters/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-10T16:49:16Z","updated_at":"2016-03-10T16:49:16Z","closed_at":null,"body":"```The widget function in widget-archives.php:43 gets the post count as a result from the query (on line 59).\r\n\r\nYou could do the following:\r\n\r\n<li class=\"baw-month\"><a href=\"<?php echo get_month_link( $month->year, $month->numMonth ); ?>\"><?php echo $month->month; ?><?php echo ' ' . $month->year; ?> (<?php echo $month->post_count; ?>)</a></li>\r\n\r\nI've added the following in the above snippet:\r\n\r\n(<?php echo $month->post_count; ?>)\r\n\r\nwhich will output the post count in parentheses for each month.\r\n```"}}