Change the Default WordPress Excerpt Length

You can change the default WordPress excerpt by applying a code filter in your child theme, for example:

function my_custom_excerpt_length( $length ) {
    return 25;
}
add_filter( 'excerpt_length', 'my_custom_excerpt_length', 1000 );

For more information you can check WordPress website:
https://developer.wordpress.org/reference/hooks/excerpt_length/

pixfort
pixfort
Support Team

Hey, this is pixfort support team, if you still need help you can always reach us via your pixfort account

Related Posts

Search

Start typing to search for a specific article on our website

Made with Popup Builder
Image link
Hey there

Search for a specific article

Get started

Check useful guides to get started

Still need Help?

Send us a support message

Our usual reply time: 1 Business day