title: Foreach, special treatment of every n:th item (odd, even for example)
body: <p>I have a foreach that looks like this:</p>
  
  <pre><code>                          foreach ($blogusers as $bloguser) {
                          $args = array(
                          'author' =&gt; $bloguser-&gt;user_id,
                            'showposts' =&gt; 1,
                            'caller_get_posts' =&gt; 1
                          );
                          $my_query = new WP_Query($args);
                          if( $my_query-&gt;have_posts() ) {
                            $user = get_userdata($bloguser-&gt;user_id);
                            userphoto($bloguser-&gt;user_id, "&lt;div class='all_authors'&gt;&lt;a href='http://blogg.nacka.se/nastasteg/author/".$user-&gt;user_login . "'&gt;","&lt;/a&gt;&lt;ul&gt;&lt;li&gt;&lt;a href='http://blogg.nacka.se/nastasteg/author/".$user-&gt;user_login . "'&gt;" .$user-&gt;user_firstname."&lt;/a&gt;&lt;/li&gt;&lt;li class='occupation'&gt;".$user-&gt;user_lastname."&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;", array('width' =&gt; 135, 'height' =&gt; 135));
                            #echo "&lt;div class='all_authors'&gt;&lt;a href='http://blogg.nacka.se/nastasteg/author/".$user-&gt;user_login . "'&gt;&lt;img src='http://www.gravatar.com/avatar/" . md5( strtolower( trim( " $user-&gt;user_email " ) ) )."?s=135' /&gt;&lt;/a&gt;&lt;ul&gt;&lt;li&gt;&lt;a href='http://blogg.nacka.se/nastasteg/author/".$user-&gt;user_login . "'&gt;" .$user-&gt;user_firstname."&lt;/a&gt;&lt;/li&gt;&lt;li class='occupation'&gt;".$user-&gt;user_lastname."&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;";
                          }
                        }
  </code></pre>
  
  <p>In every foth div, Would like to add an extra class. How do I do this? </p>