Title: This is the code:
Last modified: August 18, 2016

---

# This is the code:

 *  [sithicus](https://wordpress.org/support/users/sithicus/)
 * (@sithicus)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/this-is-the-code/)

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

 *  Thread Starter [sithicus](https://wordpress.org/support/users/sithicus/)
 * (@sithicus)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/this-is-the-code/#post-181023)
 * .. ok… sorry about that:
 * ` <div id="content">
    <?php if ($posts) : foreach ($posts as $post) : start_wp();?
   > <div class="post"> <?php require('post.php'); ?> <?php comments_template();//
   Get wp-comments.php template ?> </div> <?php endforeach; else: ?> <p><?php _e('
   Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> <p align="center"
   ><?php posts_nav_link() ?></p>  </div>
 * My question is I want to change this so it shows excerts and not the whole content..
   but i dont’ see where to edit! can anybody help?
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/this-is-the-code/#post-181024)
 * look inside the file `post.php`
 *  Thread Starter [sithicus](https://wordpress.org/support/users/sithicus/)
 * (@sithicus)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/this-is-the-code/#post-181029)
 * any idea of what i might be looking for?
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/this-is-the-code/#post-181034)
 * something like
 * `<?php the_content(); ?>`
 * replace that with
 * `<?php the_excerpt(); ?>`
 * If still don’t get it, post the content of `post.php` here: [http://paste.paste.uni.cc/](http://paste.paste.uni.cc/)
 *  Thread Starter [sithicus](https://wordpress.org/support/users/sithicus/)
 * (@sithicus)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/this-is-the-code/#post-181086)
 * ya that is wha tI was looking for and couldn’t track it down..
 * [http://paste.paste.uni.cc/6870](http://paste.paste.uni.cc/6870)
 * The code is there..
 * -Chris
 *  [ColdForged](https://wordpress.org/support/users/coldforged/)
 * (@coldforged)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/this-is-the-code/#post-181091)
 * Wrong post.php, I think. It would be in your `wp-content/themes/` hierarchy, 
   not in `wp-admin`.
 *  Thread Starter [sithicus](https://wordpress.org/support/users/sithicus/)
 * (@sithicus)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/this-is-the-code/#post-181095)
 * sorry for wasting your guys time, i shouldn’t work so late.. i’m obviously brained
   damaged! thanks for suffering thru that heh.

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

The topic ‘This is the code:’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [sithicus](https://wordpress.org/support/users/sithicus/)
 * Last activity: [21 years, 1 month ago](https://wordpress.org/support/topic/this-is-the-code/#post-181095)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
