Skip to content

Instantly share code, notes, and snippets.

@csknk
Last active December 24, 2015 23:39
Show Gist options
  • Save csknk/6882303 to your computer and use it in GitHub Desktop.
Save csknk/6882303 to your computer and use it in GitHub Desktop.
Enable excerpts on WordPress pages
/***Enable Excerpts on Pages***/
add_action('init', 'page_excerpts');
function page_excerpts() {
add_post_type_support( 'page', 'excerpt' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment