{"action":"created","issue":{"url":"https://api.github.com/repos/ActivateMedia/DCAF-Ukraine/issues/14","labels_url":"https://api.github.com/repos/ActivateMedia/DCAF-Ukraine/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ActivateMedia/DCAF-Ukraine/issues/14/comments","events_url":"https://api.github.com/repos/ActivateMedia/DCAF-Ukraine/issues/14/events","html_url":"https://github.com/ActivateMedia/DCAF-Ukraine/issues/14","id":117150418,"number":14,"title":"Related content module","user":{"login":"adrian-activate","id":5072273,"avatar_url":"https://avatars.githubusercontent.com/u/5072273?v=3","gravatar_id":"","url":"https://api.github.com/users/adrian-activate","html_url":"https://github.com/adrian-activate","followers_url":"https://api.github.com/users/adrian-activate/followers","following_url":"https://api.github.com/users/adrian-activate/following{/other_user}","gists_url":"https://api.github.com/users/adrian-activate/gists{/gist_id}","starred_url":"https://api.github.com/users/adrian-activate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrian-activate/subscriptions","organizations_url":"https://api.github.com/users/adrian-activate/orgs","repos_url":"https://api.github.com/users/adrian-activate/repos","events_url":"https://api.github.com/users/adrian-activate/events{/privacy}","received_events_url":"https://api.github.com/users/adrian-activate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"activate-siva","id":5576987,"avatar_url":"https://avatars.githubusercontent.com/u/5576987?v=3","gravatar_id":"","url":"https://api.github.com/users/activate-siva","html_url":"https://github.com/activate-siva","followers_url":"https://api.github.com/users/activate-siva/followers","following_url":"https://api.github.com/users/activate-siva/following{/other_user}","gists_url":"https://api.github.com/users/activate-siva/gists{/gist_id}","starred_url":"https://api.github.com/users/activate-siva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activate-siva/subscriptions","organizations_url":"https://api.github.com/users/activate-siva/orgs","repos_url":"https://api.github.com/users/activate-siva/repos","events_url":"https://api.github.com/users/activate-siva/events{/privacy}","received_events_url":"https://api.github.com/users/activate-siva/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-16T15:35:33Z","updated_at":"2015-12-23T09:13:29Z","closed_at":null,"body":"A module that lists any related content in the site on any any of the 5 content type pages -\r\n\r\n- news\r\n- publications\r\n- events/confereces\r\n- institutions\r\n- fact sheets\r\n\r\nThe type of content in the listing will be indicated by a colour scheme and the an icon."},"comment":{"url":"https://api.github.com/repos/ActivateMedia/DCAF-Ukraine/issues/comments/166839499","html_url":"https://github.com/ActivateMedia/DCAF-Ukraine/issues/14#issuecomment-166839499","issue_url":"https://api.github.com/repos/ActivateMedia/DCAF-Ukraine/issues/14","id":166839499,"user":{"login":"rexromae","id":2318450,"avatar_url":"https://avatars.githubusercontent.com/u/2318450?v=3","gravatar_id":"","url":"https://api.github.com/users/rexromae","html_url":"https://github.com/rexromae","followers_url":"https://api.github.com/users/rexromae/followers","following_url":"https://api.github.com/users/rexromae/following{/other_user}","gists_url":"https://api.github.com/users/rexromae/gists{/gist_id}","starred_url":"https://api.github.com/users/rexromae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexromae/subscriptions","organizations_url":"https://api.github.com/users/rexromae/orgs","repos_url":"https://api.github.com/users/rexromae/repos","events_url":"https://api.github.com/users/rexromae/events{/privacy}","received_events_url":"https://api.github.com/users/rexromae/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T09:13:29Z","updated_at":"2015-12-23T09:13:29Z","body":"I have created a related content shortcode.\r\n\r\nThe plugin *DCAF* that you will see in the backend is a wrapper for custom code (such as Widgets, Shortcodes, etc).\r\n\r\nThis functionality is located in _/wp-content/plugins/dcaf/**related_content**_.\r\n\r\nThe related content shortcode can be used as a standard shortcode. There's a parameter that defines the maximum number of posts displayed. The default value is 10.\r\n\r\n```\r\nIn the CMS => [dcaf_related_content numberposts=\"5\"]\r\nIn the Theme => <?php echo do_shortcode('[dcaf_related_content numberposts=\"5\"]'); ?>\r\n```\r\n\r\nI've placed the shortcode in /theme/dcaf/**single.php**"}}