title: I am stuck at the Specific odd even issue
body: <p>How to get that in php? I lost 2 days trying to solve this. plese help
  Description image is here...
  <a href="https://i.stack.imgur.com/dmxFn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dmxFn.jpg" alt="Image description"></a></p>
  
  <p>Here is my code. I realy dont know how to solve this.</p>
  
  <pre><code>&lt;?php /*----------------------- predelava --------------------------*/ ?&gt;
  
  &lt;?php $temp_query = $wp_query; ?&gt;
  &lt;?php query_posts('cat=7&amp;showposts=5'); //'cat=1 &lt;-- Tukaj vpiši id tvoje kategorije ?&gt;
  &lt;?php $numposts = $wp_query-&gt;post_count; ?&gt;
  &lt;?php while (have_posts()) : the_post(); ?&gt;
  
  &lt;div class='&lt;?php echo (++$j % 2 == 0) ? 'evenpost' : 'oddpost'; ?&gt;'&gt;
  &lt;?php if ($j != $numposts){
      the_content();
      }
  ?&gt;
  
  &lt;/div&gt;
  
  &lt;?php if($numposts %2 == 0 &amp;&amp; $j == $numposts)
      {
  ?&gt;
  
  &lt;div class="center"&gt;
  &lt;?php the_content(); ?&gt;
  &lt;/div&gt;
  &lt;?php // class "center" definiraj v css fajlu tako da bo pozicioniran kot želiš ;)
      }
      ?&gt;
  
  &lt;?php endwhile;?&gt;
  &lt;?php $wp_query = $temp_query; ?&gt;
  </code></pre>
  
  <p>I tried also this way: </p>
  
  <pre><code>&lt;?php
  /*----------------------- predelava --------------------------*/
   $temp_query = $wp_query; ?&gt;
  &lt;?php query_posts('cat=7&amp;showposts=5'); //'cat=1 &lt;-- Tukaj vpiši id tvoje kategorije ?&gt;
  &lt;?php $numposts = $wp_query-&gt;post_count; ?&gt;
  &lt;?php while (have_posts()) : the_post(); ?&gt;
    &lt;div class='&lt;?php echo (++$j % 2 == 0) ? 'evenpost' : 'oddpost'; ?&gt;'&gt;
    &lt;?php if ($j != $numposts){
        the_content();
        }  ?&gt;&lt;/div&gt;
  
    &lt;?php  if($numposts %2 != 0 &amp;&amp; $j == $numposts)
      {
        ?&gt;&lt;div class="center"&gt;&lt;?php the_content(); ?&gt;&lt;/div&gt;  &lt;?php // class "center" definiraj v css fajlu tako da bo pozicioniran kot želiš ;)
      }
      ?&gt;
  
  
  &lt;?php endwhile; ?&gt;
  &lt;?php $wp_query = $temp_query; ?&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Best regards from Slovenia</p>