WordPress Custom exerpts with excerpt_length and excerpt_more Limit excerpt length to 50 words

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

Put the following code in functions.php:

function themify_custom_excerpt_length( $length ) {
   return 50;
}
add_filter( 'excerpt_length', 'themify_custom_excerpt_length', 999 );

Use 999 as the priority to ensure that the function runs after the default WordPress filter, otherwise it would override what is set here.



Got any WordPress Question?