title: Assign CSS class to content
body: <p>i have downloaded a wordpress theme that assigns two different css classes (one for even and one for odd numbers) to its page sections via this php function:</p>
  
  <pre><code>if (in_array('type-page', $classes)) {
  $classes[] = (++$j % 2 == 0) ? 'even' : 'odd';
  </code></pre>
  
  <p>Is there any way to change\rewrite the function to assign a custom css class to each page section progressively? E.g. </p>
  
  <ul>
  <li>Section One -> Css Class 001 </li>
  <li>Section Two -> Css Class 002 </li>
  <li>Section Three -> Css Class 003 
  and so on..</li>
  </ul>
  
  <p>I reckon this is probably a noob question, but i'm totally unexperienced in php..</p>
  
  <p>Thanks in advance!</p>