OK so I've searched a lot and couldn't find a straight forward answer to my question. I am simply trying to use one category loop that will display posts in a category page in a wordpress site. lets say 6 posts for this purpose.
it's pretty simple to accomplish it by using a simple query loop like so:
<?php query_posts('showposts=6'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> // content or anything comes here <?php endwhile; endif; ?>
however, I am trying to "break" my loop into 2 different layouts:
- 2 posts showing with featured image
- the rest of the 4 in a different design which will be just showing title + excerpt + read more
Here is a sample which best demonstrates what I am trying to accomplish: https://dl.dropbox.com/u/4405634/split-loop-layout.jpg
There are tons of solutions in the web, however some of the are too complicated and some don't work in a category loop.
I have seen it in a lot of websites and still can't find a simple way of doing it. does someone have a nice solution?
Thanks a lot. Gil