Custom query and paging
Hi, I have trawled the web and not found a solution to this.
I have a page called projects and a templated called projects. I have set this page to be my home page.
I need to show one featured post (from a category) and then rows of 3 other projects (projects is a category).
How do I have paging so it has
<div class="row rowOne"> <ul> <?php $loop = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => 3, 'cat' => '-10, -72' ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <li> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_post_thumbnail(); ?> <?php the_title(); ?></a> <span><?php the_time('d.m.y') ?></span> </li> <?php endwhile; ?> </ul> </div>
So is it possible to have paging at the bottom of this custom query?
- The topic ‘Custom query and paging’ is closed to new replies.