Pagination
-
The code below pulls in the specific articles from the category I want along with a specified amount. how do i pull the pagination below the articles? i have it set to display 4 but i am thinking there will be over 20 or so and it would be nice to cycle through instead of having a long list.
<ul id="news"> <?php $temp_query = $wp_query; ?> <?php query_posts("category_name='hot-off-the-plate'&showposts=4"); ?> <?php while (have_posts()) : the_post(); ?> <li> <div class="post" id="post-<?php the_ID(); ?>"> <?php $pdfLink = get_post_meta($post->ID, 'pdf_link', true); if ( !empty($pdfLink) ) echo '' ?> <div class="pdf_download"><a href="<?php echo $pdfLink ?>" target="_blank"><img src="/wp-content/themes/blau/style/images/pdf_bttn.gif" width="41" height="37" alt="" /></a> </div> <div class="thmb"> <?php the_post_thumbnail(); ?> </div> <?php the_title('<h4>', '</h4>'); ?> <p><strong> - </strong></p> <p><strong><?php the_time('F jS, Y') ?>, </strong></p> <?php the_excerpt(); ?> <!--<p><a href="<?php /*the_permalink();*/ ?>">Read Full Story >></a></p>--> </div> </li> <?php endwhile; ?> </ul>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Pagination’ is closed to new replies.