title: Why my meta boxes won't show in front post page?
body: <p>I see it everywhere: in single post, in category archives etc, but in front page post not.</p>
  
  <p>I display the metaboxes in this way: </p>
  
  <pre><code>&lt;?php if (get_post_meta($post-&gt;ID, 'test_1', true) != '' ) { ?&gt;&lt;?php echo get_post_meta($post-&gt;ID, 'test_1', true);?&gt;&lt;?php } ?&gt;
  </code></pre>
  
  <p>What's wrong?
  What i'm doing wrong?
  Is possible to display the meta boxies in a different way?</p>
  
  <p><strong>Here is the code:</strong></p>
  
  <pre><code>add_action( 'init', 'create_xy_taxonomies', 0 );
  function create_pc_db_taxonomies() {
  register_taxonomy( 'genre', 'post', array( 'hierarchical' =&gt; false, 'label' =&gt; __('Tests', 'series'), 'query_var' =&gt; 'test', 'rewrite' =&gt; array( 'slug' =&gt; 'tests' ) ) );
  
  $prefix = 'xy_meta_';
  
  
  $meta_box = array(
      'id' =&gt; 'xy-meta-box',
      'title' =&gt; 'Xy tests',
      'page' =&gt; 'post',
      'context' =&gt; 'normal',
      'priority' =&gt; 'high',
      'fields' =&gt; array(
          array(
              'name' =&gt; 'Test_1',
              'id' =&gt; 'test_1',
              'type' =&gt; 'text',
              'std' =&gt; ''
          ),
          array(
              'name' =&gt; 'Test_2',
              'id' =&gt; 'test_2',
              'type' =&gt; 'select',
              'options' =&gt; array('','1'),
              'std' =&gt; ''
          ),
      )
  );
  
  add_action('admin_menu', 'mytheme_add_box');
  
  function mytheme_add_box() {
      global $meta_box;
  
      add_meta_box($meta_box['id'], $meta_box['title'], 'mytheme_show_box', $meta_box['page'], $meta_box['context'], $meta_box['priority']);
  }
  
  function mytheme_show_box() {
      global $meta_box, $post;
  
  
      echo '&lt;input type="hidden" name="mytheme_meta_box_nonce" value="', wp_create_nonce(basename(__FILE__)), '" /&gt;';
  
      echo '&lt;table class="form-table"&gt;';
  
      foreach ($meta_box['fields'] as $field) {
  
          $meta = get_post_meta($post-&gt;ID, $field['id'], true);
  
          echo '&lt;tr&gt;',
                  '&lt;th style="width:20%"&gt;&lt;label for="', $field['id'], '"&gt;', $field['name'], '&lt;/label&gt;&lt;/th&gt;',
                  '&lt;td&gt;';
          switch ($field['type']) {
              case 'text':
                  echo '&lt;input type="text" name="', $field['id'], '" id="', $field['id'], '" value="', $meta ? $meta : $field['std'], '" size="30" style="width:97%" /&gt;',
                      '&lt;br /&gt;', $field['desc'];
                  break;
              case 'textarea':
                  echo '&lt;textarea name="', $field['id'], '" id="', $field['id'], '" cols="60" rows="4" style="width:97%"&gt;', $meta ? $meta : $field['std'], '&lt;/textarea&gt;',
                      '&lt;br /&gt;', $field['desc'];
                  break;
              case 'select':
                  echo '&lt;select name="', $field['id'], '" id="', $field['id'], '"&gt;';
                  foreach ($field['options'] as $option) {
                      echo '&lt;option', $meta == $option ? ' selected="selected"' : '', '&gt;', $option, '&lt;/option&gt;';
                  }
                  echo '&lt;/select&gt;';
                  break;
              case 'radio':
                  foreach ($field['options'] as $option) {
                      echo '&lt;input type="radio" name="', $field['id'], '" value="', $option['value'], '"', $meta == $option['value'] ? ' checked="checked"' : '', ' /&gt;', $option['name'];
                  }
                  break;
              case 'checkbox':
                  echo '&lt;input type="checkbox" name="', $field['id'], '" id="', $field['id'], '"', $meta ? ' checked="checked"' : '', ' /&gt;';
                  break;
          }
          echo    '&lt;td&gt;',
              '&lt;/tr&gt;';
      }
  
      echo '&lt;/table&gt;';
  }
  
  add_action('save_post', 'mytheme_save_data');
  
  
  function mytheme_save_data($post_id) {
      global $meta_box;
      if (!wp_verify_nonce($_POST['mytheme_meta_box_nonce'], basename(__FILE__))) {
          return $post_id;
      }
      if (defined('DOING_AUTOSAVE') &amp;&amp; DOING_AUTOSAVE) {
          return $post_id;
      }
      if ('page' == $_POST['post_type']) {
          if (!current_user_can('edit_page', $post_id)) {
              return $post_id;
          }
      } elseif (!current_user_can('edit_post', $post_id)) {
          return $post_id;
      }
      foreach ($meta_box['fields'] as $field) {
          $old = get_post_meta($post_id, $field['id'], true);
          $new = $_POST[$field['id']];
  
          if ($new &amp;&amp; $new != $old) {
              update_post_meta($post_id, $field['id'], $new);
          } elseif ('' == $new &amp;&amp; $old) {
              delete_post_meta($post_id, $field['id'], $old);
          }
      }
  }
  </code></pre>