Title: tkim1205's Replies | WordPress.org

---

# tkim1205

  [  ](https://wordpress.org/support/users/tkim1205/)

 *   [Profile](https://wordpress.org/support/users/tkim1205/)
 *   [Topics Started](https://wordpress.org/support/users/tkim1205/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tkim1205/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tkim1205/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tkim1205/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tkim1205/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tkim1205/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page for specific Category doesn't display all posts](https://wordpress.org/support/topic/page-for-specific-category-doesnt-display-all-posts/)
 *  Thread Starter [tkim1205](https://wordpress.org/support/users/tkim1205/)
 * (@tkim1205)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/page-for-specific-category-doesnt-display-all-posts/#post-2848279)
 * Found the answer 🙂
 *     ```
       <div id="content">
       <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
       <?php query_posts('posts_per_page=5&cat=4,16&paged=' . $paged); ?>
       <?php while (have_posts()) : the_post(); ?>
       <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
       <p><?php the_excerpt(); ?></p>
       <?php endwhile; ?>
       </div>
   
       <div class="navigation">
       <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
       else { ?>
       <div class="right"><?php next_posts_link('Next Page &raquo;') ?></div>
       <div class="left"><?php previous_posts_link('&laquo; Previous Page') ?></div>
       <?php } ?>
       </div>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page for specific Category doesn't display all posts](https://wordpress.org/support/topic/page-for-specific-category-doesnt-display-all-posts/)
 *  Thread Starter [tkim1205](https://wordpress.org/support/users/tkim1205/)
 * (@tkim1205)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/page-for-specific-category-doesnt-display-all-posts/#post-2848266)
 * Hi thanks for that reply!
 * Yep i only want to show posts of cat id 4 and 16, however my issue is there is
   a total of about 20 posts, but only 10 posts show up on my page. There is no “
   next” button to retrieve the next 10.

Viewing 2 replies - 1 through 2 (of 2 total)