WordPress.org

Ready to get started?Download WordPress

Forums

Can I use pagination? (1 post)

  1. Chris Demetriad
    Member
    Posted 2 years ago #

    Would I be able to use pagination on this sort of page, where I have like 10 entries from a specific category?

    <?php query_posts('cat=19&posts_per_page=10');
      if(have_posts()) : while(have_posts()) : the_post(); ?>
          <div class="pages-thumbs">
          <a href="<?php echo the_permalink(); ?>"><h2><?php the_title(); ?></h2></a>
          <?php the_post_thumbnail('medium'); ?>
          <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
          <?php the_excerpt(); ?>
          </div>
          </div>
      <?php endwhile; endif; wp_reset_query(); ?>

    If yes, how should I do it? Internal functions or a plugin, what would you recommend?

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Chris Demetriad
  • This topic is not resolved
  • WordPress version: 3.2.1

Tags