Title: Looking for some PHP/loop help
Last modified: August 18, 2016

---

# Looking for some PHP/loop help

 *  [resiny](https://wordpress.org/support/users/resiny/)
 * (@resiny)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/looking-for-some-phploop-help/)
 * I’ve spent about a half hour digging through the codex and various dark corners
   of the internets, but I have yet to find my answer.
 * I’ve seen this done before, though I can’t think where at the moment (lots of
   places). I basically need the php.
 * What I’m wanting to do is to have the entire text of my first post display on
   the front page, and then below that the titles and small excerpts of recent entries.
 * One way I can see this being done (though I don’t know how) is running the loop
   once to show the first post in full, and then a second time using the_excerpt…
 * Anyone know how to do this?

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

 *  [iand](https://wordpress.org/support/users/iand/)
 * (@iand)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/looking-for-some-phploop-help/#post-390852)
 * [This](http://wordpress.org/support/topic/63693?replies=5#post-339040) is probably
   the neatest way to do it (no second loop needed).
 *  [mylagoon](https://wordpress.org/support/users/mylagoon/)
 * (@mylagoon)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/looking-for-some-phploop-help/#post-390856)
 * That nifty piece of code should be in the codex somewhere.
    I’m sure it would
   be useful for a lot of users.
 *  Thread Starter [resiny](https://wordpress.org/support/users/resiny/)
 * (@resiny)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/looking-for-some-phploop-help/#post-390861)
 * deleted. didn’t mean to post
 *  Thread Starter [resiny](https://wordpress.org/support/users/resiny/)
 * (@resiny)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/looking-for-some-phploop-help/#post-390867)
 * alright, it’s sortta working. what’s the easiest way to customize what is displayed
   for the_excerpt?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/looking-for-some-phploop-help/#post-390872)
 * I don’t have an aswer for styling the posts differently if there is only one 
   Loop – though probably more knowledgable helpers can show you a way.
    However,
   just for the record, in this thread there are a lot of good ideas and examples
   for something similar to what you asked initially. I also use Kaf’s code in one
   of my blogs. [http://wordpress.org/support/topic/28203?replies=15](http://wordpress.org/support/topic/28203?replies=15)
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/looking-for-some-phploop-help/#post-390873)
 * As I recall, the_excerpt strips most formatting. However, there’s a plugin that
   let’s you do all sorts of fun stuff with it at [http://guff.szub.net/2005/02/26/the-excerpt-reloaded/](http://guff.szub.net/2005/02/26/the-excerpt-reloaded/)
 *  Thread Starter [resiny](https://wordpress.org/support/users/resiny/)
 * (@resiny)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/looking-for-some-phploop-help/#post-390875)
 * > As I recall, the_excerpt strips most formatting. However, there’s a plugin 
   > that let’s you do all sorts of fun stuff with it at guff.szub.net/2005/02/26/
   > the-excerpt-reloaded/
 * Ah, perfect, looks like it’ll do what I’m looking for

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

The topic ‘Looking for some PHP/loop help’ is closed to new replies.

 * 7 replies
 * 5 participants
 * Last reply from: [resiny](https://wordpress.org/support/users/resiny/)
 * Last activity: [19 years, 12 months ago](https://wordpress.org/support/topic/looking-for-some-phploop-help/#post-390875)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
