title: Wordpress loop that shows first post only?
body: <p>Here is what I am trying to do...</p>
  
  <p>I am trying to display the first post only in my header, sort of like a featured post. I have it displaying like I want to, but it's looping through all of the posts, so instead of showing only one post it's showing all of the posts in my header. </p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php $i = 0; ?&gt;
  &lt;?php if (have_posts()) : ?&gt;
  &lt;?php while (have_posts()) : the_post(); ?&gt;
  &lt;?php $i++ ?&gt;
  &lt;div class="post&lt;?php if ($i == 1) echo ' first'; ?&gt;"&gt;
  *content to display post here*
  &lt;/div&gt;
  &lt;?php endwhile; ?&gt;
  &lt;?php endif; ?&gt;
  </code></pre>