title: WORDPRESS: Insert SWF in home page instead of post
body: <p>I have wordpress flash game website. Into the admin panel, where I add or edit post I have field named Swf URL: where I add SWF link and it links to the post where it shows flash game. I want to do same but not in the post, I want to use this function (adding game with the help of swf) to home page.</p>
  
  <p>How it is now:</p>
  
  <p><img src="https://i.stack.imgur.com/K9KaG.jpg" alt="enter image description here"></p>
  
  <p>How I want to see:</p>
  
  <p><img src="https://i.stack.imgur.com/GLp3Q.jpg" alt="enter image description here"></p>
  
  <p><strong>functions code:</strong></p>
  
  <pre><code>load_theme_textdomain( "freebabyhazelgames", TEMPLATEPATH."/languages" );
  $locale = get_locale( );
  $locale_file = TEMPLATEPATH."/languages/{$locale}.php";
  if ( is_readable( $locale_file ) )
  {
      require_once( $locale_file );
  }
  $sp_boxes = array( "Game Details" =&gt; array( array( "thumb", "Game image URL:" ), array( "game", "Swf URL:" ) ) );
  add_action( "admin_menu", "sp_add_custom_box" );
  add_action( "save_post", "sp_save_postdata", 1, 2 );
  if ( !function_exists( "get_custom_field" ) )
  {
      function get_custom_field( $field )
      {
          global $post;
          $custom_field = get_post_meta( $post-&gt;ID, $field, true );
          echo $custom_field;
      }
  }
  </code></pre>
  
  <p><strong>post code:</strong></p>
  
  <pre><code>&lt;div id="playgame"&gt;
                          &lt;script type="text/javascript"&gt;
                          &lt;!--
                          swf("&lt;?php $values = get_post_custom_values("game"); echo $values[0]; ?&gt;", "701", "550");//--&gt;
                          &lt;/script&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <p>By the way I tried to change dirrectory or to copy single.php to index.php but both not worked.</p>