Results 1 to 2 of 2

Thread: Adding paging to an archive listing???

  1. #1
    jwack is offline Hello World
    Join Date
    Aug 2009
    Posts
    46

    Default Adding paging to an archive listing???

    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>

  2. #2
    jwack is offline Hello World
    Join Date
    Aug 2009
    Posts
    46

    Default

    I still haven't figured this out so if anyone can help it would be appreciated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •