title: Wordpress retrieve customizer settings
body: <p>I'm currently working on my first in-depth custom template for Wordpress, utilizing the functionality of the customizer.</p>
  
  <p>I am able to create options and also save them but somehow i am unable to push them to the page itself. The code i'm using:</p>
  
  <pre><code>//Do we want our template to be boxed or wide?
  function cbTheme_customize_register($wp_customize){
      //  =============================
      //  = Add section               =
      //  =============================
      $wp_customize-&gt;add_section('cbTheme_general_settings', array(
          'title'    =&gt; __('General Settings', 'cbTheme'),
          'description' =&gt; 'Determines wether your site is boxed, or has 100% width',
          'priority' =&gt; 10,
      ));
      //  =============================
      //  = Add setting               =
      //  =============================
      $wp_customize-&gt;add_setting('cbTheme_site_settings[sitewidth]', array(
          'default'        =&gt; 'value1',
          'capability'     =&gt; 'edit_theme_options',
          'type'           =&gt; 'option',
      ));
      $wp_customize-&gt;add_control('cbTheme_site_width', array(
          'label'      =&gt; __('Site width', 'cbTheme'),
          'section'    =&gt; 'cbTheme_general_settings',
          'settings'   =&gt; 'cbTheme_site_settings[sitewidth]',
          'type'       =&gt; 'radio',
          'choices'    =&gt; array(
                  'value1' =&gt; 'Wide',
                  'value2' =&gt; 'Boxed',
          ),
      ));
  }
  add_action( 'customize_register', 'cbTheme_customize_register' );
  </code></pre>
  
  <p>I am using this in my header.php(first lines) to try and retrieve the options (as they do save).</p>
  
  <pre><code>//GET ALL SETTINGS FROM CUSTOMIZER
  function cbTheme_customize_css($wp_customize){
      $sitewidth = get_theme_mod('cbTheme_site_settings[sitewidth]');
  }
  add_action( 'wp_head', 'cbTheme_customize_css');
  </code></pre>
  
  <p>Any advice/feedback on this? I assume the faulty code is the last part. I tried following the codex, but i am lost at the data retrieval process.</p>