Title: content or excerpt
Last modified: August 18, 2016

---

# content or excerpt

 *  [questin](https://wordpress.org/support/users/questin/)
 * (@questin)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/content-or-excerpt/)
 * This is the conditional code i used with WP 1.2. Now is no more working on WP
   1.5. What i have to change? It is for putting the excerpt instead of the content
   only if I have it.
    <?php if(!$post->post_excerpt) { the_content(‘<img src=”kling.
   gif” /> more…’); } else { the_excerpt(); ?> ” rel=”bookmark” title=”Permanent
   Link to <?php the_title(); ?>”><img src=”kling.gif” /> more… <?php } ?>

Viewing 1 replies (of 1 total)

 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/content-or-excerpt/#post-208894)
 * There are examples that will help you choose the right Loop for the change to
   1.5 at [http://codex.wordpress.org/The_Loop_In_Action](http://codex.wordpress.org/The_Loop_In_Action)

Viewing 1 replies (of 1 total)

The topic ‘content or excerpt’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Lorelle](https://wordpress.org/support/users/lorelle/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/content-or-excerpt/#post-208894)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
