Help me create multiple columns from a long list of a year of archives – please!
-
I have a long list of 52 date word pairs that stretch the length of the page. I’d like to split it into three or four columns but I don’t have the scripting knowledge to achieve it. The existing code used to generate the list is below. Inside a table with two columns.
I’m OK with CSS and html.
On the page it is a tall narrow row as a “mm dd | word” one above the other 52 odd in all. Too long and thin an item. Would look better three or four columns side by side. Is this possible?
<table class="month-table"> <?php $comicArchive = new WP_Query(); $comicArchive->query('showposts=10000&cat='.get_all_comic_categories_as_cat_string().'&year='.$archive_year); while ($comicArchive->have_posts()) : $comicArchive->the_post() ?> <tr><td class="archive-date"><?php the_time('M j') ?></td><td class="archive-title"><a href="<?php echo get_permalink($post->ID) ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></td></tr> <?php endwhile; ?> </table>
Please help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Help me create multiple columns from a long list of a year of archives – please!’ is closed to new replies.