title: Wordpress first post only on first page different then others
body: <p>Got the next code to get the first Wordpress post on only the first page to be different. But it doesn't work. Looked at other questions and answers but there doesn't seem to be a good answer for this.</p>
  
  <p>This is what i've got but isn't working for me:</p>
  
  <pre><code>&lt;?php
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  $args = array('posts_per_page' =&gt; 5, 'paged' =&gt; $paged );
  query_posts($args); ?&gt;
  
  &lt;?php if (have_posts()) : ?&gt;
  &lt;?php $postcount = 0; ?&gt;
  &lt;?php while (have_posts()) : the_post(); ?&gt;
  &lt;?php $postcount++; ?&gt;
  
      &lt;?php if ($postcount == 1 &amp;&amp; $paged == 1) : // if this is the first post &amp; first page ?&gt;
      &lt;div class="large-10"&gt;
      &lt;?php the_post_thumbnail('large'); ?&gt;
      &lt;/div&gt;
  
          &lt;?php else : //if this is NOT the first post ?&gt;         
          &lt;div class="large-6 columns"&gt;
          &lt;article id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class(); ?&gt;&gt;
          &lt;div class="portfolio"&gt;
              &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;
              &lt;?php the_post_thumbnail('large'); ?&gt;
              &lt;span&gt;&lt;h6&gt;&lt;?php the_title(); ?&gt;&lt;/h6&gt;&lt;/span&gt;
              &lt;/a&gt;
          &lt;/div&gt;
  
          &lt;/article&gt;
          &lt;/div&gt;
  
      &lt;?php endwhile; ?&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>I get this syntax error "unexpected T_ENDWHILE" but can't figure out why.
  Does anyone know how to properly get this done?</p>
  
  <p>Thanks in advance!</p>
  
  <p>Joeri</p>