title: Wordpress Display Post Type in Multiple Columns
body: <p>I need help with the below code.  It displays alphabetically in a single column quite well.  How can I change this to display in 3 columns?</p>
  
  <p>A</p>
  
  <pre><code> Apple 1
   Apple 2
   Apple 3
  </code></pre>
  
  <p>B</p>
  
  <pre><code>Beattle 1
  Beattle 2
  Beattle 3
  </code></pre>
  
  <p>C</p>
  
  <pre><code>Cattle 1
  Cattle 2
  Cattle 3
  </code></pre>
  
  <p>I want to divide the column into 2 base from the total post.</p>
  
  <pre><code>$count_posts = wp_count_posts('partner');   
  $lastChar = '';                 
  
  while($list-&gt;have_posts()): $list-&gt;the_post();
      global  $post;  
  
      $brandname = $post-&gt;post_title;
      $char = $brandname[0];                      
  
      if ($char !== $lastChar) {
          if ($lastChar !== '')
               echo '&lt;br&gt;';                       
               echo "&lt;div style='padding:10px; background:red;
                      color:white; font-weight:bold;'&gt;".
                   strtoupper($char)."&lt;/div&gt;";
          //print A / B / C etc
          $lastChar = $char;
      }                        
  
      echo '&lt;li&gt;&lt;a href="'.$post-&gt;link.'" 
                   title="'.$post-&gt;post_title.'"
                   target="_BLANK"    &gt;' .
           $brandname.'&lt;/a&gt;&lt;/li&gt;';                        
  
  
      endwhile;
  
      wp_reset_postdata();
  </code></pre>