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: https://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'); 

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x