Add the excerpt meta box to ‘Edit page’

I do not know why the excerpt meta box is not shown by default when editing pages. I often list pages when using WordPress as a CMS, and I very often use excerpt when doing lists.

So how do you get the excerpt box like posts without using a plugin?

Simply add this code to your functions.php

function mytheme_addbox() {
add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'page', 'normal', 'core');
add_action( 'admin_menu', 'mytheme_addbox' );

Simple enough? Good!


Web Developer @ Oakwood Creative -

Tagged with: ,
Posted in Intermediate
7 comments on “Add the excerpt meta box to ‘Edit page’
  1. Martin says:

    Thanks! Helped.

  2. Brand You says:

    You are a hero! Thank you!

  3. larss says:

    I’m struggling to find a plugin that will allow me to edit excerpts in quick edit. Any ideas?

  4. Gregory K. says:

    Still useful in year 2014…
    Thank you!

  5. Vincent, well done! I’ve been staring at WP Codex and did not like the overly complicated solution for a simple problem : adding the default WP excerpt for a custom post type (from a plugin). The field is already reserved in wpdb anyway and why not just use it. It’s better than creating yet another new meta that WP codex pointed at. Of course, there are tons of plugins that could create custom fields, but why when it’s already available in wpdb? Thanks.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


WordPress Quick Tips is a blog supplying great tips about WordPress.

We hope to create a great knowledge resource for WordPress developers as well as serving a reminder for all the forgetful ones.

The blog is created and run by Vincent of Oakwood Creative

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 121 other followers

%d bloggers like this: