{"action":"created","issue":{"url":"https://api.github.com/repos/siteorigin/so-widgets-bundle/issues/463","repository_url":"https://api.github.com/repos/siteorigin/so-widgets-bundle","labels_url":"https://api.github.com/repos/siteorigin/so-widgets-bundle/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/siteorigin/so-widgets-bundle/issues/463/comments","events_url":"https://api.github.com/repos/siteorigin/so-widgets-bundle/issues/463/events","html_url":"https://github.com/siteorigin/so-widgets-bundle/issues/463","id":225354040,"node_id":"MDU6SXNzdWUyMjUzNTQwNDA=","number":463,"title":"Post selector categories","user":{"login":"michellomp","id":13666439,"node_id":"MDQ6VXNlcjEzNjY2NDM5","avatar_url":"https://avatars0.githubusercontent.com/u/13666439?v=4","gravatar_id":"","url":"https://api.github.com/users/michellomp","html_url":"https://github.com/michellomp","followers_url":"https://api.github.com/users/michellomp/followers","following_url":"https://api.github.com/users/michellomp/following{/other_user}","gists_url":"https://api.github.com/users/michellomp/gists{/gist_id}","starred_url":"https://api.github.com/users/michellomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michellomp/subscriptions","organizations_url":"https://api.github.com/users/michellomp/orgs","repos_url":"https://api.github.com/users/michellomp/repos","events_url":"https://api.github.com/users/michellomp/events{/privacy}","received_events_url":"https://api.github.com/users/michellomp/received_events","type":"User","site_admin":false},"labels":[{"id":296547084,"node_id":"MDU6TGFiZWwyOTY1NDcwODQ=","url":"https://api.github.com/repos/siteorigin/so-widgets-bundle/labels/priority-3","name":"priority-3","color":"bfdadc","default":false},{"id":156550887,"node_id":"MDU6TGFiZWwxNTY1NTA4ODc=","url":"https://api.github.com/repos/siteorigin/so-widgets-bundle/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"AlexGStapleton","id":17275120,"node_id":"MDQ6VXNlcjE3Mjc1MTIw","avatar_url":"https://avatars3.githubusercontent.com/u/17275120?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexGStapleton","html_url":"https://github.com/AlexGStapleton","followers_url":"https://api.github.com/users/AlexGStapleton/followers","following_url":"https://api.github.com/users/AlexGStapleton/following{/other_user}","gists_url":"https://api.github.com/users/AlexGStapleton/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexGStapleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexGStapleton/subscriptions","organizations_url":"https://api.github.com/users/AlexGStapleton/orgs","repos_url":"https://api.github.com/users/AlexGStapleton/repos","events_url":"https://api.github.com/users/AlexGStapleton/events{/privacy}","received_events_url":"https://api.github.com/users/AlexGStapleton/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlexGStapleton","id":17275120,"node_id":"MDQ6VXNlcjE3Mjc1MTIw","avatar_url":"https://avatars3.githubusercontent.com/u/17275120?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexGStapleton","html_url":"https://github.com/AlexGStapleton","followers_url":"https://api.github.com/users/AlexGStapleton/followers","following_url":"https://api.github.com/users/AlexGStapleton/following{/other_user}","gists_url":"https://api.github.com/users/AlexGStapleton/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexGStapleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexGStapleton/subscriptions","organizations_url":"https://api.github.com/users/AlexGStapleton/orgs","repos_url":"https://api.github.com/users/AlexGStapleton/repos","events_url":"https://api.github.com/users/AlexGStapleton/events{/privacy}","received_events_url":"https://api.github.com/users/AlexGStapleton/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-04-30T20:59:55Z","updated_at":"2018-12-13T06:30:01Z","closed_at":null,"author_association":"NONE","body":"\r\n\t\r\nHi it's more a question than an issue\r\nI'm using the siteorigin post selector field which allows the user to build a query to find posts in the database. I'm getting back the query result with\r\n\r\n ```\r\n $post_selector_pseudo_query = $instance['some_posts'];\r\n    // Process the post selector pseudo query.\r\n    $processed_query = siteorigin_widget_post_selector_process_query( $post_selector_pseudo_query );\r\n```\r\n\r\nand I'm using it for list categories of this query\r\n\r\n```\r\n$categories = get_categories($processed_query);\r\n    foreach ($categories as $cat) {\r\n        echo '<div class=\"one_fourth\">';\r\n        echo '<h1 class=\"valignmiddle uppercase title-bold\">'.$cat->name.'<img src=\"'.$cat->term_icon.'\" alt=\"\"  class=\"alignleft\"/>'.'<br />'.'<span class=\"solutions\">'.$cat->description.'</span>'.'</h1>';\r\n        $post = array( 'posts_per_page' => 5, 'offset'=> 1, 'category' => 10 );\r\n        $posts_array = get_posts( $post );\r\n\r\n        echo '</div>';\r\n    }\r\n\r\n```\r\nbut it list all the categories not only the query's categories\r\nAny idea on how to list only query categories ?\r\nI open a stackoverflow question [here](http://stackoverflow.com/questions/43708852/post-selector-categories)"},"comment":{"url":"https://api.github.com/repos/siteorigin/so-widgets-bundle/issues/comments/446857400","html_url":"https://github.com/siteorigin/so-widgets-bundle/issues/463#issuecomment-446857400","issue_url":"https://api.github.com/repos/siteorigin/so-widgets-bundle/issues/463","id":446857400,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Njg1NzQwMA==","user":{"login":"AlexGStapleton","id":17275120,"node_id":"MDQ6VXNlcjE3Mjc1MTIw","avatar_url":"https://avatars3.githubusercontent.com/u/17275120?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexGStapleton","html_url":"https://github.com/AlexGStapleton","followers_url":"https://api.github.com/users/AlexGStapleton/followers","following_url":"https://api.github.com/users/AlexGStapleton/following{/other_user}","gists_url":"https://api.github.com/users/AlexGStapleton/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexGStapleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexGStapleton/subscriptions","organizations_url":"https://api.github.com/users/AlexGStapleton/orgs","repos_url":"https://api.github.com/users/AlexGStapleton/repos","events_url":"https://api.github.com/users/AlexGStapleton/events{/privacy}","received_events_url":"https://api.github.com/users/AlexGStapleton/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T06:30:01Z","updated_at":"2018-12-13T06:30:01Z","author_association":"MEMBER","body":"Do you still need help with this?"}}
{"actor":{"display_login":"AlexGStapleton"}}