Title: another posts pagination problem
Last modified: August 19, 2016

---

# another posts pagination problem

 *  [joshua4](https://wordpress.org/support/users/joshua4/)
 * (@joshua4)
 * [17 years ago](https://wordpress.org/support/topic/another-posts-pagination-problem/)
 * why doesn’t this work?
 *     ```
       <ul>  <?php
       if (have_posts()) :
   
           while (have_posts()) : the_post(); 
   
           $image = get_post_meta($post->ID,'image',1);
           ?>
               <li class="clearfix">
                   <?php if(!empty($image)) { ?>
                   <div class="imageWrapShadow">
                       <img src="<?=$image?>" width="130" height="114" align="middle" />
                   </div>
                   <?php } ?>
   
                   <div class="resultDesc">
                       <h3><?=$post->post_title?></h3>
   
                       <?=$post->post_excerpt?>
                       <a href="<?=$post->guid?>" class="readMore">read more &raquo;</a>
   
                   </div>
               </li>
           <?php endwhile;
   
       wp_link_pages();
       else: ?>
   
               Sorry, no posts matched your criteria.
   
       <?php endif; ?>
       ```
   
 * isn’t wp_link_pages(); supposed to spit out pagination numbers?
 * how do i get this to give me < 1 2 3 4 >
 * and how do i specify how many posts to display per page?

Viewing 1 replies (of 1 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years ago](https://wordpress.org/support/topic/another-posts-pagination-problem/#post-1056745)
 * Check this plugin which does what you are looking for
    [http://wordpress.org/extend/plugins/wp-pagenavi/](http://wordpress.org/extend/plugins/wp-pagenavi/)

Viewing 1 replies (of 1 total)

The topic ‘another posts pagination problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/another-posts-pagination-problem/#post-1056745)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
