Index of /andrejciho/WordPress/Excerpt for Pages

Post Title Posted Description
Back Parent Directory
Excerpt for Pages 2008-09-09 21:59

Brings back excerpt entry field to page edit


Be Sociable, Share!

Some time ago, WordPress folks decided to discontinue excerpts for pages. All of my searches point to a blog that supposedly has a plugin that will bring this back but their server is not serving and I’m impatient so here’s an easy way how I got it running on my WordPress 2.6.2:

The only thing the code below does is that it enables the Excerpt field in the /wp-admin/page.php and saves it to the database. You still have to do the work of wiring it up into your template yourself. I might update it later.

1
2
3
4
5
6
<code>
<div id="postexcerpt" class="postbox <?php echo postbox_classes('postexcerpt', 'post'); ?>">
<div class="inside">
<textarea id="excerpt" cols="40" rows="4" name="excerpt"><?php echo $post-&gt;post_excerpt ?></textarea>
</div>
</code>

Leave a Comment
*Required
*Required (Never published)
 

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

This website is powered by Wordpress