Thursday, January 13, 2022
The Great Tit
Updated: 20. 9. 2022, Added: 13. 1. 2022

How to Enable Page Excerpt in WordPress

Page Excerpt is disabled by default in WordPress post type Page. Excerpts are enabled for WordPress Posts, but I am not sure, why not for Pages. So, if you need to use the Excerpt in WordPress Pages, you must add the functionality with the WordPress PHP filter.

add_post_type_support( 'page', 'excerpt' );

You can simply put the code in your code snippets plugin. Or just put the code in functions.php or in your custom functionality plugin PHP Code in /mu-plugins/ folder. I am using the Advanced Scripts Plugin.

WordPress excerpt in Gutenberg after activation

Page excerpt will appear in Gutenberg editor sidebar, same as Post Excerpt.

Enable Page Excerpt with Code snippets plugin

Create a new script and set its type to PHP and location to administration area. I am using the Advanced scripts plugin for that.

add_post_type_support( 'page', 'excerpt' ); in advanced scripts

Save and your Excerpt will be available asap when you edit a page in WordPress.

Did I help you? Fuel our WordPress journey
Beep this article to your friends!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram