From time to time, as a web programmer you come across things that deviate from the norm. This is certainly one of them – adding an excerpt box to WordPress Pages. As you probably already know if you stumbled across this article, this feature already exists in Posts, and the need for the same functionality is very small with Pages, so it’s often overlooked.
Fortunately, there’s a very easy fix.
Simply add the following code to your theme’s functions.php file and you’ll be good to go.
add_action( 'init', 'my_add_excerpt_to_wp_pages' ); function my_add_excerpt_to_wp_pages() { add_post_type_support( 'page', 'excerpt' ); }
Leave A Comment