Skip to content

Commit

Permalink
Add possibility to add text excerpts on pages, too. (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
albig authored Dec 3, 2024
1 parent 6f04a03 commit 16f149e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/excerpts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

0 comments on commit 16f149e

Please sign in to comment.