From c92e1443c9b13b48669bb18069f07252195b6f4c Mon Sep 17 00:00:00 2001 From: Alexander Bigga Date: Tue, 3 Dec 2024 12:51:01 +0100 Subject: [PATCH] Add possibility to add text excerpts on pages, too. --- functions/excerpts.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/excerpts.php b/functions/excerpts.php index 6403989..c029206 100644 --- a/functions/excerpts.php +++ b/functions/excerpts.php @@ -13,3 +13,6 @@ function sunflower_excerpt_length() { } add_filter( 'excerpt_length', 'sunflower_excerpt_length', 900 ); + +// Add excerpt to pages, too. +add_post_type_support( 'page', 'excerpt' );