Title: Archive.php returning fewer posts than expected
Last modified: August 19, 2016

---

# Archive.php returning fewer posts than expected

 *  [toddmoy](https://wordpress.org/support/users/toddmoy/)
 * (@toddmoy)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/archivephp-returning-fewer-posts-than-expected/)
 * Hi everyone,
 * I’m running into a mysterious situation regarding the number of posts displayed
   on a year archive.
 * Specifically, for one year (2009), WordPress is returning fewer posts than expected.
   Judging by the count in the admin, it should be showing 12 posts for 2009 but
   is instead showing 3. I know the other ones are still published since I can access
   them directly by URL. This seems to affect only 2009 since other years work well.
 * If I “unpublish” the oldest of the 3 posts showing in the archive, the next oldest
   post appears. So, the Published flag isn’t to blame.
 * The main blog listing page doesn’t seem to be affected by this–it shows posts
   in 2009 which do not show up on the 2009 archive.
 * The posts don’t seem to have front-end XHTML issues, since the posts aren’t being
   rendered into the page at all.
 * Curiously, if I set the “Show at most” value to something greater than 10–say,
   20–then they all appear as expected. Obviously, this is a hack.
 * So, I can only imagine the issue is related to what posts The Loop decides to
   show. I can’t find much useful documentation about whether The Loop has any limits(
   based on publish date or otherwise). Perhaps there’s some paging going on that
   I’m not aware of? My archives don’t implement pagination to speak of.
 * Any thoughts?

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/archivephp-returning-fewer-posts-than-expected/#post-1454164)
 * > My archives don’t implement pagination to speak of.
 * And that’s probably the problem. How many posts per page have you opted to show
   in Admin/Settings/Reading?

Viewing 1 replies (of 1 total)

The topic ‘Archive.php returning fewer posts than expected’ is closed to new replies.

## Tags

 * [archives](https://wordpress.org/support/topic-tag/archives/)
 * [the-loop](https://wordpress.org/support/topic-tag/the-loop/)

 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/archivephp-returning-fewer-posts-than-expected/#post-1454164)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
