title: WordPress Theme Customizer Content Not Displaying on Page
body: <p>all</p>
  
  <p>I'm working with a custom WordPress theme that I developed for a site. I have a field on the left side of the footer for a mailing address, and I want this to be editable via the theme customizer in WordPress. I've added the field in question to the customizer, but the content of the field is not displaying on the page. </p>
  
  <p>In functions.php, the following code adds the field to the theme customizer: </p>
  
  <pre><code>//Adds footer address to theme customizer   
  
  function sanitize_footer_address($input){
      return strip_tags(stripslashes($input));    
  }
  
  function portfolio_customize_register($wp_customize){
  
      $wp_customize-&gt;add_section(
          'Footer', 
          array(
              'title' =&gt; __('Left Footer Content', 'portfolio'),
              'priority' =&gt; 200
          )
      );
  
      $wp_customize-&gt;add_setting(
          'footer_address', 
          array(
              'default' =&gt; '100 Main Street | Anytown, USA',
              'sanitize_callback' =&gt; 'sanitize_footer_address'
          )
      );
  
      $wp_customize-&gt;add_control( new WP_Customize_Control(
      $wp_customize, 
      'footer_address',
      array(
          'label' =&gt; 'Address to appear on left side of footer', 
          'section' =&gt; 'Footer', 
          'settings' =&gt; 'footer_address_text', 
          'type' =&gt; 'text'
      )
      )
   ); 
  }
  
  add_action(customize_register, portfolio_customize_register);
  </code></pre>
  
  <p>In the footer.php template, the relevant markup is: </p>
  
  <pre><code>&lt;p class="col md-4 text-muted" id="footer_address"&gt;&lt;?php echo get_theme_mod('footer_address_text'); ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>The content of the field does not display on the page. </p>