{"action":"opened","issue":{"url":"https://api.github.com/repos/cabrerahector/wordpress-popular-posts/issues/79","labels_url":"https://api.github.com/repos/cabrerahector/wordpress-popular-posts/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/cabrerahector/wordpress-popular-posts/issues/79/comments","events_url":"https://api.github.com/repos/cabrerahector/wordpress-popular-posts/issues/79/events","html_url":"https://github.com/cabrerahector/wordpress-popular-posts/issues/79","id":76134166,"number":79,"title":"Hide WPP if there's no data","user":{"login":"richvida","id":1568825,"avatar_url":"https://avatars.githubusercontent.com/u/1568825?v=3","gravatar_id":"","url":"https://api.github.com/users/richvida","html_url":"https://github.com/richvida","followers_url":"https://api.github.com/users/richvida/followers","following_url":"https://api.github.com/users/richvida/following{/other_user}","gists_url":"https://api.github.com/users/richvida/gists{/gist_id}","starred_url":"https://api.github.com/users/richvida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richvida/subscriptions","organizations_url":"https://api.github.com/users/richvida/orgs","repos_url":"https://api.github.com/users/richvida/repos","events_url":"https://api.github.com/users/richvida/events{/privacy}","received_events_url":"https://api.github.com/users/richvida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-13T21:44:43Z","updated_at":"2015-05-13T21:44:43Z","closed_at":null,"body":"If there something I can add to my if statement that will hide WPP when it doesn't have any data?\r\n\r\n    <?php if ( function_exists ( 'wpp_get_mostpopular' ) ) : ?>\r\n\r\n        <div class=\"posts popular\">\r\n\r\n            <?php wpp_get_mostpopular ( array( 'order_by' => 'views', 'range' => 'weekly', 'post_type' => 'post', 'limit' => 10, 'pid' => get_the_ID() ) ); ?>\r\n\r\n        </div>\r\n\r\n    <?php endif; ?>\r\n\r\nI know I could edit the plugin code directly to remove the text, but that's not exactly a scalable solution.\r\n"}}