Help! Multiple Loops.
-
My site needs 4 individual posts on the front page. Each post is in its own “column”. I want to be able to control which posts are in each column by changing the $postid. I have created a widget to do all of this, my problem is solely in getting the posts I want due to the way the “loop” works. Here is my html for one of the columns to illustrate what I am trying to do. Each column is the same as this, I was just trying to change the $postid in the respective column to the post I wanted displayed there:
<?php query_posts( 'p=$postid' ); // the Loop while (have_posts()) : the_post();?> <div class="subFeature-thumb" > <img src="<?php echo get_stylesheet_directory_uri() ?>/scripts/timthumb.php?src=<?php echo PostThumbURL(); ?>&w=220&h=100&zc=1" alt="image" /> </div> <div class="subFeature-link"> <h3><a href="<?php the_permalink() ?>" title="Continue Reading <?php the_title(); ?>"><?php the_title(); ?></a></h3> </div> <div class="subFeature-byline"> by <?php the_author() ?> on <?php the_date() ?> </div> <div class="subFeature-text"> <?php arc_excerpt('arc_excerptlength_subFeature', 'arc_excerptmore'); ?> </div> <?php endwhile; ?>Any help is greatly appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Help! Multiple Loops.’ is closed to new replies.