Can someone please help, I've been googlin' for awhile and can't seem to get any of the solutions to work. I am trying to add some paging to a loop from an archive template I am putting together (twentyTen child theme). Here is the loop...
Code:<div id="project-listing"> <?php $args = array( 'post_type' => 'projects', 'posts_per_page' => 10 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); ?> <a class="project-item" href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"> <?php if ( has_post_thumbnail() ){ ?> <span class="project-thumbnail"><?php the_post_thumbnail('thumbnail'); ?></span> <?php }else{ ?> <span class="project-thumbnail"><img src="/images/thumbnail-noImage.jpg" alt="No Image Available" /></span> <?php } ?> </a> <?php endwhile; ?> </div>


LinkBack URL
About LinkBacks
Reply With Quote