{"action":"created","issue":{"url":"https://api.github.com/repos/CMB2/CMB2/issues/1029","repository_url":"https://api.github.com/repos/CMB2/CMB2","labels_url":"https://api.github.com/repos/CMB2/CMB2/issues/1029/labels{/name}","comments_url":"https://api.github.com/repos/CMB2/CMB2/issues/1029/comments","events_url":"https://api.github.com/repos/CMB2/CMB2/issues/1029/events","html_url":"https://github.com/CMB2/CMB2/issues/1029","id":260129378,"number":1029,"title":"Radio Image Option not working: Images not appearing in the back-end to choose.","user":{"login":"fastmarketo","id":6827222,"avatar_url":"https://avatars1.githubusercontent.com/u/6827222?v=4","gravatar_id":"","url":"https://api.github.com/users/fastmarketo","html_url":"https://github.com/fastmarketo","followers_url":"https://api.github.com/users/fastmarketo/followers","following_url":"https://api.github.com/users/fastmarketo/following{/other_user}","gists_url":"https://api.github.com/users/fastmarketo/gists{/gist_id}","starred_url":"https://api.github.com/users/fastmarketo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastmarketo/subscriptions","organizations_url":"https://api.github.com/users/fastmarketo/orgs","repos_url":"https://api.github.com/users/fastmarketo/repos","events_url":"https://api.github.com/users/fastmarketo/events{/privacy}","received_events_url":"https://api.github.com/users/fastmarketo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-09-25T00:53:29Z","updated_at":"2017-09-25T17:14:59Z","closed_at":"2017-09-25T01:23:30Z","author_association":"NONE","body":"\r\n![2017-09-25 06_21_51-global - - filezilla](https://user-images.githubusercontent.com/6827222/30788444-f976b31a-a1b9-11e7-8f84-66aa57f715e6.png)\r\n```\r\nadd_action( 'cmb2_admin_init', 'radio_template' );\r\nfunction radio_template(){\r\n    $cmb = new_cmb2_box( array(\r\n\t\t'id'            => $prefix . 'metabox',\r\n\t\t'title'         => __( 'Select The template for you Post Page', 'cmb2' ),\r\n\t\t'object_types'  => array( 'page', 'post' ), // Post type\r\n\t\t// 'show_on_cb' => 'yourprefix_show_if_front_page', // function should return a bool value\r\n\t\t// 'context'    => 'normal',\r\n\t\t// 'priority'   => 'high',\r\n\t\t// 'show_names' => true, // Show field names on the left\r\n\t\t// 'cmb_styles' => false, // false to disable the CMB stylesheet\r\n\t\t// 'closed'     => true, // true to keep the metabox closed by default\r\n\t) );\r\n\r\n   $cmb->add_field( array(\r\n    \t\t'name'             => __( 'Select Template', 'cmb2' ),\r\n    \t\t'desc'             => __( 'field description (optional)', 'cmb2' ),\r\n    \t\t'id'               => $prefix . 'template_selector',\r\n    \t\t'type'             => 'radio_image',\r\n    \t\t'options'          => array(\r\n    \t\t\t'full-width'    => __('Full Width', 'cmb2'),\r\n    \t\t\t'sidebar-left'  => __('Left Sidebar', 'cmb2'),\r\n    \t\t\t'sidebar-right' => __('Right Sidebar', 'cmb2'),\r\n    \t\t),\r\n    \t\t'images_path'      => get_template_directory_uri(),\r\n    \t\t'images'           => array(\r\n    \t\t\t'full-width'    => 'images/full-width.png',\r\n    \t\t\t'sidebar-left'  => 'images/sidebar-left.png',\r\n    \t\t\t'sidebar-right' => 'images/sidebar-right.png',\r\n    \t\t)\r\n    \t) );\r\n}\r\n```\r\nImages are not appearing in the backend. I have added just one image:     \t\t\t'sidebar-right' => 'images/sidebar-right.png',\r\nbut that too is not coming in the backend.\r\n![2017-09-25 06_20_12-edit post puck theme wordpress](https://user-images.githubusercontent.com/6827222/30788405-a5defb86-a1b9-11e7-84a8-8b3074a03324.png)\r\n\r\nwhat is the cause?\r\n![sidebar-right](https://user-images.githubusercontent.com/6827222/30788457-09f06006-a1ba-11e7-8e6f-7dda682c8aaa.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CMB2/CMB2/issues/comments/331949680","html_url":"https://github.com/CMB2/CMB2/issues/1029#issuecomment-331949680","issue_url":"https://api.github.com/repos/CMB2/CMB2/issues/1029","id":331949680,"user":{"login":"tw2113","id":484075,"avatar_url":"https://avatars3.githubusercontent.com/u/484075?v=4","gravatar_id":"","url":"https://api.github.com/users/tw2113","html_url":"https://github.com/tw2113","followers_url":"https://api.github.com/users/tw2113/followers","following_url":"https://api.github.com/users/tw2113/following{/other_user}","gists_url":"https://api.github.com/users/tw2113/gists{/gist_id}","starred_url":"https://api.github.com/users/tw2113/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tw2113/subscriptions","organizations_url":"https://api.github.com/users/tw2113/orgs","repos_url":"https://api.github.com/users/tw2113/repos","events_url":"https://api.github.com/users/tw2113/events{/privacy}","received_events_url":"https://api.github.com/users/tw2113/received_events","type":"User","site_admin":false},"created_at":"2017-09-25T17:14:59Z","updated_at":"2017-09-25T17:14:59Z","author_association":"CONTRIBUTOR","body":"Let's not delve into the topic of what plugins should do what and where sources.\r\n\r\n@fastmarketo the biggest issue I saw, after looking things over a bit closer last night is that while CMB2 core plugin is installed and active, the Radio Images plugin is not. Until both are installed and active, you're not going to have a populated metabox. I copy/pasted your CMB2 code for the radio image box into a local install and images were showing for me, selectable, and everything. So the plugin pair is working, at least when properly paired up.\r\n\r\nOnce you get that detail taken care of and tested, we can work from there."}}
{"actor":{"display_login":"tw2113"}}