# Enable Excerpts for Pages

> Adds the Excerpt box to pages, which many themes and SEO plugins can use as a summary.

- Type: PHP
- Runs: Run everywhere
- Category: [Content](https://wpide.com/library/category/content/)
- Tags: content, excerpt, pages
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/excerpts-for-pages/

## Code

```php
add_action( 'init', function () {
    add_post_type_support( 'page', 'excerpt' );
} );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Enable Excerpts for Pages" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
