title: default value not getting displayed in input field wordpress
body: <p><strong>I have written code for creating theme options
  but default values not getting displayed in text field
  Also settings saved message also not getting displayed
  Thank you</strong></p>
  
  <pre><code>    &lt;?php
  
  // Default options values
  $xyz_options = array(
          'footer_copyright' =&gt; '&amp;copy; ' . date('Y') . ' ' . get_bloginfo('name'),
          'facebook'=&gt;'http://www.facebook.com/'
      );
  
  if ( is_admin() ) : // Load only if we are viewing an admin page
  
      function xyz_register_settings() {
      // Register settings and call xyz initiation functions
          register_setting( 'xyz_theme_options', 'xyz_options', 'xyz_validate_options' );
      }
  
      add_action( 'admin_init', 'xyz_register_settings' );
  
      function xyz_theme_options() {
      // Add theme options page to the admin menu
          add_theme_page( 'Theme Options', 'Theme Options', 'edit_theme_options', 'theme_options', 'xyz_theme_options_page' );
      }
  
      add_action( 'admin_menu', 'xyz_theme_options' );
  
      // Function to generate options page
      function xyz_theme_options_page() {
          global $xyz_options;
  
          if ( ! isset( $_REQUEST['updated'] ) )
              $_REQUEST['updated'] = false; // This checks whether the form has just been submitted. ?&gt;
  
          &lt;div class="wrap"&gt;
  
              &lt;?php screen_icon(); echo "&lt;h2&gt;" . get_current_theme() . __( ' Options' ) . "&lt;/h2&gt;";
              // This shows the page's name and an icon if one has been provided ?&gt;
  
              &lt;?php if ( false !== $_REQUEST['updated'] ) : ?&gt;
              &lt;div class="updated fade"&gt;&lt;p&gt;&lt;strong&gt;&lt;?php _e( 'Options saved' ); ?&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;
              &lt;?php endif; // If the form has just been submitted, this shows the notification ?&gt;
  
              &lt;form method="post" action="options.php"&gt;
  
                  &lt;?php $settings = get_option( 'xyz_options', $xyz_options ); ?&gt;
  
                  &lt;?php settings_fields( 'xyz_theme_options' );
              /* This function outputs some hidden fields required by the form,
              including a nonce, a unique number used to ensure the form has been submitted from the admin page
              and not somewhere else, very important for security */ ?&gt;
  
                  &lt;table class="form-table"&gt;
  
                      &lt;tr valign="top"&gt;
                          &lt;th scope="row"&gt;
                              &lt;label for="facebook"&gt;Facebook url&lt;/label&gt;
                          &lt;/th&gt;
                          &lt;td&gt;
                              &lt;input id="facebook" name="xyz_options[facebook]" type="text" value="&lt;?php esc_attr_e($settings['facebook']); ?&gt;" /&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr valign="top"&gt;
                          &lt;th scope="row"&gt;
                              &lt;label for="footer_copyright"&gt;Footer Text 1&lt;/label&gt;
                          &lt;/th&gt;
                          &lt;td&gt;
                              &lt;input id="footer_copyright" name="xyz_options[footer_copyright]" type="text" value="&lt;?php  esc_attr_e($settings['footer_copyright']); ?&gt;" /&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;
                  &lt;p class="submit"&gt;
                      &lt;input type="submit" class="button-primary" value="Save Options" /&gt;
                  &lt;/p&gt;
              &lt;/form&gt;
  
          &lt;/div&gt;
  
      &lt;?php
      }
  
      function xyz_validate_options( $input ) {
      global $xyz_options;
  
      $settings = get_option( 'xyz_options', $xyz_options );
  
      }
  
  endif;  // EndIf is_admin()
  </code></pre>
  
  <p>I have wriiten above code.
  Please help
  Thank you</p>