Title: Post per page code help needed
Last modified: August 20, 2016

---

# Post per page code help needed

 *  [cgoertz](https://wordpress.org/support/users/cgoertz/)
 * (@cgoertz)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/post-per-page-code-help-needed/)
 * Hello!
 * Im trying to get 13 posts on my “index” page and 18 on my “older entries” (/page/
   2/) page. I think this is the code that controles this. What do i need to and
   to achieve that?
 *     ```
       <?php if (is_paged()) $is_paged = true; ?>
       		<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("post_type=post&paged=$paged"); ?>
       		<?php if (have_posts()) : $count = 0; $boxcount = 0;?>
               <?php while (have_posts()) : the_post(); $count++; ?>
   
                   <?php if ($count == 1 && get_option('woo_home_featured') == "true" && !$is_paged) : ?>
       ```
   
 * Im super tankfull for any help! My php skills are not that good, but let me know
   if i need to provide any other code.

The topic ‘Post per page code help needed’ is closed to new replies.

## Tags

 * [index](https://wordpress.org/support/topic-tag/index/)
 * [old posts](https://wordpress.org/support/topic-tag/old-posts/)
 * [post per page](https://wordpress.org/support/topic-tag/post-per-page/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [cgoertz](https://wordpress.org/support/users/cgoertz/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/post-per-page-code-help-needed/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
