{"action":"created","issue":{"url":"https://api.github.com/repos/valendesigns/option-tree/issues/502","labels_url":"https://api.github.com/repos/valendesigns/option-tree/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/valendesigns/option-tree/issues/502/comments","events_url":"https://api.github.com/repos/valendesigns/option-tree/issues/502/events","html_url":"https://github.com/valendesigns/option-tree/issues/502","id":70091657,"number":502,"title":"use Category Checkbox in query","user":{"login":"mahdi-alavi","id":9952616,"avatar_url":"https://avatars.githubusercontent.com/u/9952616?v=3","gravatar_id":"","url":"https://api.github.com/users/mahdi-alavi","html_url":"https://github.com/mahdi-alavi","followers_url":"https://api.github.com/users/mahdi-alavi/followers","following_url":"https://api.github.com/users/mahdi-alavi/following{/other_user}","gists_url":"https://api.github.com/users/mahdi-alavi/gists{/gist_id}","starred_url":"https://api.github.com/users/mahdi-alavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahdi-alavi/subscriptions","organizations_url":"https://api.github.com/users/mahdi-alavi/orgs","repos_url":"https://api.github.com/users/mahdi-alavi/repos","events_url":"https://api.github.com/users/mahdi-alavi/events{/privacy}","received_events_url":"https://api.github.com/users/mahdi-alavi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-22T10:41:07Z","updated_at":"2015-04-22T11:18:23Z","closed_at":null,"body":"Hi, \r\nhow can use Category Checkbox in query\r\nin theme theme-options:\r\narray(\r\n'id'          => 'news_last',\r\n'label'       => __( 'Category Checkbox', 'theme' ),\r\n'desc'        => '',\r\n'type'        => 'category-checkbox',\r\n'section'     => 'news',\r\n'operator'    => 'and'\r\n), \r\nin page:\r\n$newsLast = ot_get_option( 'news_last' );\r\n$news = new WP_Query( array( 'post_type' => 'post', 'cat' => $newsLast, 'post_status' => 'publish', 'posts_per_page' => '7' ) );\r\nif( $news->have_posts() ) : while( $news->have_posts() ) : $news->the_post(); \r\n\r\nthanks"},"comment":{"url":"https://api.github.com/repos/valendesigns/option-tree/issues/comments/95141468","html_url":"https://github.com/valendesigns/option-tree/issues/502#issuecomment-95141468","issue_url":"https://api.github.com/repos/valendesigns/option-tree/issues/502","id":95141468,"user":{"login":"valendesigns","id":62798,"avatar_url":"https://avatars.githubusercontent.com/u/62798?v=3","gravatar_id":"","url":"https://api.github.com/users/valendesigns","html_url":"https://github.com/valendesigns","followers_url":"https://api.github.com/users/valendesigns/followers","following_url":"https://api.github.com/users/valendesigns/following{/other_user}","gists_url":"https://api.github.com/users/valendesigns/gists{/gist_id}","starred_url":"https://api.github.com/users/valendesigns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valendesigns/subscriptions","organizations_url":"https://api.github.com/users/valendesigns/orgs","repos_url":"https://api.github.com/users/valendesigns/repos","events_url":"https://api.github.com/users/valendesigns/events{/privacy}","received_events_url":"https://api.github.com/users/valendesigns/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T11:18:23Z","updated_at":"2015-04-22T11:18:23Z","body":"What do the docs say about cat, does it accept an array or string?\n"}}