title: Php WordPress only show one post
body: <p>I need this php code to show the most recent post only. Maybe an if statement to show on post. Any ideas? Any help is appreciated. </p>
  
  <pre><code>  $temp = $wp_query;  // assign orginal query to temp variable for later use   
      $wp_query = null;
      $wp_query = new WP_Query($args); 
      if( have_posts() ) : 
  
          while ($wp_query-&gt;have_posts()) : $wp_query-&gt;the_post(); 
      ?&gt;
  
  
  
          &lt;a href="&lt;?php the_permalink() ?&gt;" &lt;?php post_class() ?&gt; id="post-&lt;?php the_ID(); ?&gt;"&gt;
              &lt;?php the_post_thumbnail("events-thumb"); ?&gt;
              &lt;h3&gt;&lt;?php the_title(); ?&gt;&lt;/h3&gt;
              &lt;p&gt;&lt;?php echo nl2br(get_post_meta($post-&gt;ID, 'proj_address', true)); ?&gt;&lt;/p&gt;
              &lt;span&gt;&lt;/span&gt;
              &lt;div style="clear:both;"&gt;&lt;/div&gt;
          &lt;/a&gt;
  
          &lt;?php endwhile; ?&gt;
      &lt;?php 
  
  
          endif;
          $wp_query = $temp;  //reset back to original query
      ?&gt;
  </code></pre>