I got a WP loop that has to put out a list of news items.
The 1th column is the latest post in the category news, the second column shows the second, third and fourth post in the same category "news" and the third and last column is listing the fifth+ titles from also the same category.
The problem is that I can't seem to figure out why and how the loop is putting the ie. col_three in the loop. I'm guessing I need to stop the loop somehow, open the div class col_three, and start the loop again.
Hope I make some sense...
This is what I got:
<section>
<div id="news">
<?php $list_news = new WP_Query('cat=3&showposts=-1'); ?> <?php $count = 0; ?> <?php while ($list_news->have_posts()) : $list_news->the_post(); $do_not_duplicate = $post->ID; ?> <?php $count++; ?> <?php if ($count == 1) : ?>
I got a WP loop that has to put out a list of news items.
The 1th column is the latest post in the category news, the second column shows the second, third and fourth post in the same category "news" and the third and last column is listing the fifth+ titles from also the same category.
The problem is that I can't seem to figure out why and how the loop is putting the ie. col_three in the loop. I'm guessing I need to stop the loop somehow, open the div class col_three, and start the loop again.
Hope I make some sense...
This is what I got:
Above and below this section I query posts from a different category.
Thanks in advance!
Paul