Skip to content

Commit 16f149e

Browse files
authored
Add possibility to add text excerpts on pages, too. (#783)
1 parent 6f04a03 commit 16f149e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

functions/excerpts.php

+3
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ function sunflower_excerpt_length() {
1313
}
1414

1515
add_filter( 'excerpt_length', 'sunflower_excerpt_length', 900 );
16+
17+
// Add excerpt to pages, too.
18+
add_post_type_support( 'page', 'excerpt' );

0 commit comments

Comments
 (0)