Random Posts – Not having luck
-
I want to do the following: (Category is 8)
Top Post
P P
P P
P POne large top post that has the content displaying, then under that, the rest of the category’s posts in two columns. The problem is that
<?php query_posts("orderby=rand&cat=8"); ?> <?php while (have_posts()) : the_post(); ?> <div id="featured_work"> <?php the_title(); ?> <?php the_content();?> </div> <?php while (have_posts()) : the_post(); ?> <div id="pw_columns"> <?php if ( has_post_thumbnail() ) { ?> <div class="init"><?php the_post_thumbnail('case-thumb'); ?></div> <?php } ?> <div class="short"><?php get_permalink();?></div> </div>Both 1) will repeat posts, which I don’t want and 2) repeats the top post.
Any thoughts on how to make this work? thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Random Posts – Not having luck’ is closed to new replies.