So I'm trying to get this page going with TWO query loops and I'm trying to get pagination going on it, too.
I found this plugin and it's not working for me. It says I can put it "anywhere".
Here's my code:
I'm not sure where to implement the php string, specifically if it needs to be in the loop and which one it is.Code:<?php $latestPost = new WP_Query(); $latestPost->query('posts_per_page=1'); while ($latestPost->have_posts()) : $latestPost->the_post(); ?> <div id="red-news"></div> <div id="left"> <div class="latest-post"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="date"><span class="month"><?php the_time('M') ?></span><span class="day"><?php the_time('j') ?></span><span class="year"><?php the_time('Y') ?></span></div> <div class="thumbnail"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail( 'latest-post-thumbnail' ); ?></a></div> <div class="entry"><?php the_excerpt(); ?><div class="read-more"><a href="#">read more ></a></div> </div><div class="clear"></div></div><!-- end LATEST POST --><?php endwhile; ?> <?php $latestPost = new WP_Query(); $latestPost->query('posts_per_page=2&offset=1'); while ($latestPost->have_posts()) : $latestPost->the_post(); ?> <div class="post"> <div class="date"><span class="month"><?php the_time('M') ?></span><span class="day"><?php the_time('j') ?></span><span class="year"><?php the_time('Y') ?></span></div> <div class="thumbnail"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a></div> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="entry"><?php the_excerpt(); ?> <div class="read-more"><a href="#">(...)</a></div> </div> <div class="clear"></div> </div><!-- end POST --> <?php endwhile; ?>


LinkBack URL
About LinkBacks
Reply With Quote
