Can someone tell me how I can make a list of all my posts in a list format in 2 columns with alphabetical letters. So far this code only made 1 column I want it into 2 columns <?php // Reference: http://wordpress.org/support/topic/148727 $posts = new WP_Query("cat=3&orderby=title&order=ASC&showposts=-1"); if ($posts->have_posts()) : for($i='A';$i!='AA';$i++) : ?> <h3 id="<?php echo $i; ?>"></a><?php echo $i; ?></h3> <ul> <?php while ($posts->have_posts()) : $posts->the_post(); if( $i == strtoupper(trim(substr($post->post_title, 0, 1))) ) : ?> <li><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li> <?php endif; endwhile; ?> </ul> <?php endfor; endif; ?> Code (markup):
I use a free theme which does it - you could look at how they did it. http://www.ygosearch.com/seoblog/?p=63 And another variation of that: http://www.ygosearch.com/seoblog/?p=32