Hi I did set the front page to “blog” which is what I want. However it shows the full blog post, rather than just an excerpt with a “read more” link by default. I don’t want to set the “more break” manually each time, so how can I enable this?
regards
1 Answers
If you want to control the string count, then you can do it by the following. Put the below code in the active theme’s functions.php file:
function custom_excerpt_length( $length ) {
return 20; // You can change the number here as per your need.
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
Please login or Register to submit your answer