Title: First post different to second
Last modified: August 20, 2016

---

# First post different to second

 *  [prb81](https://wordpress.org/support/users/prb81/)
 * (@prb81)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/first-post-different-to-second/)
 * I am looking for the first (most recent) post on my home page to appear different
   to the rest below it. I’d like for it to be a regular post with, say, a large
   centered image, and the rest to be an excerpt of the article with a smaller image.
 * I understand to do this I need to post an excerpt with my posts but is there 
   a way for the first post to ignore the excerpt?
 * Hopefully this makes sense and thanks for anyone who can help.

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/first-post-different-to-second/#post-3039985)
 * > to do this I need to post an excerpt with my posts
 * nope – you can do that, but the WordPress function `the_excerpt()` would otherwise
   automatically just show a few words of the post; [http://codex.wordpress.org/Function_Reference/the_excerpt](http://codex.wordpress.org/Function_Reference/the_excerpt)
 * general structure in the loop i.e. after `<?php while(have_posts()) : the_post();?
   >`
 *     ```
       <?php
       if($wp_query->current_post == 0 ) { ?>
       the way to show the first full post with image etc
       <?php } else { ?>
       the way to show the all other post with excerpt etc
       <?php }
       ?>
       ```
   
 *  Thread Starter [prb81](https://wordpress.org/support/users/prb81/)
 * (@prb81)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/first-post-different-to-second/#post-3040000)
 * Just to clarify. I currently have the follow to instruct my index page to display
   posts:
 * `<?php the_excerpt(); ?> <a>"> Read more»</a>`
 * Where would I put the code you mention in order for the first post to appear 
   as a non-excerpt and the rest as the excerpt as instructed above?
 * _[Moderator Note: Please post code or markup snippets between backticks or use
   the code button. As it stands, your code has been permanently damaged/corrupted
   by the forum’s parser.]_
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/first-post-different-to-second/#post-3040013)
 * there is likely to be more code in index.php – for instance there is usually 
   a loop: see [http://codex.wordpress.org/The_Loop](http://codex.wordpress.org/The_Loop)
 * feel free to post the code of index.php here – please use the pastebin as described
   in [http://codex.wordpress.org/Forum_Welcome#Posting_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
 *  Thread Starter [prb81](https://wordpress.org/support/users/prb81/)
 * (@prb81)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/first-post-different-to-second/#post-3040047)
 * Yes there is more, just didn’t want to past the whole thing, but here it is:
 * [http://pastebin.com/gXGjRjG6](http://pastebin.com/gXGjRjG6)
 * _[[no bumping, please]](http://codex.wordpress.org/Forum_Welcome#No_Bumping)_
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/first-post-different-to-second/#post-3040201)
 * for example:
 * [http://pastebin.com/dupHbVDx](http://pastebin.com/dupHbVDx)
 * based on your exising code – you still need to clear up any unwanted output, 
   and add the images – possibly using `the_post_thumbnail()`

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

The topic ‘First post different to second’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/first-post-different-to-second/#post-3040201)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
