Enable Excerpts for Pages
Adds the Excerpt box to pages, which many themes and SEO plugins can use as a summary.
Opens WPIDE on
Code
add_action( 'init', function () {
add_post_type_support( 'page', 'excerpt' );
} );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.