title: If first post, style differently — Wordpress
body: <p>I need the first post that was ever posted to be styled differently. Is there a way that I can see if the post is first, and then change its contents? I currently have a <code>div</code> in all my posts. This needs to be replaced with different <code>div</code>.</p>
  
  <p>Apparently the following piece of code can help, but I'm not sure how to implemenet it:</p>
  
  <p><code>&lt;?php if (have_posts()) : $postCount = 1; while (have_posts()) : $postCount++; ?&gt;</code> </p>
  
  <p>I'm new with WordPress so not entirely sure how this could work?</p>