Display “n” number of posts offset
-
I want to build a 4 column layout that displays 2 posts in each column from the same category. I know I will start be doing something akin to this
<?php query_posts('category_name=my_cat_name&showposts=2&WHAT CAN I ADD HERE TO EACH LOOP TO GRAB THE SEQUENTIAL POSTS I AM LOOKING FOR?'); ?>
<?php while (have_posts()) : the_post(); ?>
// Do special_cat stuff.
<?php endwhile; ?>What I want to do is to have column 1 be post 1 and 2 and column 2 be post 3 and 4 and so on…
And suggestions. In MovableType it is something like
offset
.Thanks for the help.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Display “n” number of posts offset’ is closed to new replies.