听起来最好的方法可能是设置一个新的 WP Query 对象。更多信息在这里:
http ://codex.wordpress.org/Class_Reference/WP_Query
<?php
$args = 'category_name=work-archive&orderby=title&order=asc&posts_per_page=9999';
// assuming 'work-archive' is the slug to your category, we are also doing ascending order by title (a,b,c,d), and pulling 9999 posts (hopefully that is more than the number of posts you have!)
// The Query
$query = new WP_Query( $args );
// Keeping track of the count
$count = 0;
// Number of items per column
$num_per_column = round($query->post_count / 4); // dividing total by columns
// The Loop
if ( $query->have_posts() ) : ?>
<ul>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<?php if ( $count % $num_per_column == 0 ) : // If the current count is up to it's limit throw in a new column ?>
</ul>
<ul>
<?php endif; ?>
<li><a href="<?php the_permalink() ?>"><?php the_title() ?></a></li>
<?php $count++; // Increment counter ?>
<?php endwhile; ?>
</ul>
<?php endif;
/* Restore original Post Data */
wp_reset_postdata();
?>
用一些 CSS 完成它!