WordPress Snippets at WPcustoms

Add excerpts to pages

By default WordPress PAGES do not have an excerpt field shown on your admin’s edit page. This function enables excerpts for WP Pages


/**
 * Snippet Name: Add excerpts to pages
 * Snippet URL: http://www.wpcustoms.net/snippets/add-excerpts-pages/
 */
 function wpc_add_page_excerpts() {
     add_post_type_support('page', array('excerpt'));
}

add_action('init', 'wpc_add_page_excerpts');