Title: Every second post only
Last modified: August 19, 2016

---

# Every second post only

 *  [theinquisition](https://wordpress.org/support/users/theinquisition/)
 * (@theinquisition)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/every-second-post-only/)
 * This should be simple 🙂
    I have a front page that displays the xxx number of
   most recent posts. How can I exclude every even number post? That way with each
   single new post it would appear that the entire site had changed.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/every-second-post-only/#post-1290046)
 * Try something like:
 *     ```
       <?php $my_count=0;
       if (have_posts()) :  while (have_posts()) :
       $my_count++;
       if( $my_count % 2 ) == 0 continue;
       the_post(); ?>
       ```
   
 *  Thread Starter [theinquisition](https://wordpress.org/support/users/theinquisition/)
 * (@theinquisition)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/every-second-post-only/#post-1290047)
 * That was quick! Thanks

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

The topic ‘Every second post only’ is closed to new replies.

## Tags

 * [home](https://wordpress.org/support/topic-tag/home/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [theinquisition](https://wordpress.org/support/users/theinquisition/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/every-second-post-only/#post-1290047)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
