{"action":"created","issue":{"url":"https://api.github.com/repos/paulund/wordpress-theme-customizer-custom-controls/issues/18","labels_url":"https://api.github.com/repos/paulund/wordpress-theme-customizer-custom-controls/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/paulund/wordpress-theme-customizer-custom-controls/issues/18/comments","events_url":"https://api.github.com/repos/paulund/wordpress-theme-customizer-custom-controls/issues/18/events","html_url":"https://github.com/paulund/wordpress-theme-customizer-custom-controls/issues/18","id":51160944,"number":18,"title":"4.0+ Radio markup","user":{"login":"mathetos","id":930724,"avatar_url":"https://avatars.githubusercontent.com/u/930724?v=3","gravatar_id":"","url":"https://api.github.com/users/mathetos","html_url":"https://github.com/mathetos","followers_url":"https://api.github.com/users/mathetos/followers","following_url":"https://api.github.com/users/mathetos/following{/other_user}","gists_url":"https://api.github.com/users/mathetos/gists{/gist_id}","starred_url":"https://api.github.com/users/mathetos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathetos/subscriptions","organizations_url":"https://api.github.com/users/mathetos/orgs","repos_url":"https://api.github.com/users/mathetos/repos","events_url":"https://api.github.com/users/mathetos/events{/privacy}","received_events_url":"https://api.github.com/users/mathetos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-06T00:01:01Z","updated_at":"2015-05-05T16:16:38Z","closed_at":"2015-05-05T16:16:38Z","body":"Took forever to figure this out but if anyone is implementing this on WP 4.0+, the markup for the Layout Picker Custom Control needs to have the `data-customize-setting-link=\"radio_setting\"` data attribute for the Customizer to recognize the change and save the value:\r\n```\r\n<ul>\r\n   <li class=\"full-content\">\r\n      <label>\r\n      <input type=\"radio\" value=\"full-content\" name=\"_<?php echo $this->id; ?>\" data-customize-setting-link=\"radio_setting\"  />\r\n      <img src=\"<?php echo $finalImageDirectory; ?>full-content.jpg\" alt=\"Full Content\" />\r\n      </label>\r\n   </li>\r\n   <li class=\"excerpt\">\r\n      <label>\r\n      <input type=\"radio\" value=\"excerpt\" name=\"_<?php echo $this->id; ?>\" data-customize-setting-link=\"radio_setting\"  />\r\n      <img src=\"<?php echo $finalImageDirectory; ?>excerpt.jpg\" alt=\"Excerpt\" />\r\n      </label>\r\n   </li>\r\n   <li class=\"fancy-rollover\">\r\n      <label>\r\n      <input type=\"radio\" value=\"fancy-rollover\" name=\"_<?php echo $this->id; ?>\" data-customize-setting-link=\"radio_setting\"  />\r\n      <img src=\"<?php echo $finalImageDirectory; ?>fancy-rollover.jpg\" alt=\"Fancy Rollover\" />\r\n      </label>\r\n   </li>\r\n</ul>\r\n```\r\n\r\nI kinda assume it would be similar for other Custom Controls as well. So watch for that."},"comment":{"url":"https://api.github.com/repos/paulund/wordpress-theme-customizer-custom-controls/issues/comments/99129219","html_url":"https://github.com/paulund/wordpress-theme-customizer-custom-controls/issues/18#issuecomment-99129219","issue_url":"https://api.github.com/repos/paulund/wordpress-theme-customizer-custom-controls/issues/18","id":99129219,"user":{"login":"mathetos","id":930724,"avatar_url":"https://avatars.githubusercontent.com/u/930724?v=3","gravatar_id":"","url":"https://api.github.com/users/mathetos","html_url":"https://github.com/mathetos","followers_url":"https://api.github.com/users/mathetos/followers","following_url":"https://api.github.com/users/mathetos/following{/other_user}","gists_url":"https://api.github.com/users/mathetos/gists{/gist_id}","starred_url":"https://api.github.com/users/mathetos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathetos/subscriptions","organizations_url":"https://api.github.com/users/mathetos/orgs","repos_url":"https://api.github.com/users/mathetos/repos","events_url":"https://api.github.com/users/mathetos/events{/privacy}","received_events_url":"https://api.github.com/users/mathetos/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T16:16:38Z","updated_at":"2015-05-05T16:16:38Z","body":"Nice! Thanks for the update and fix."}}