Hakan Acarel
asked 7 years ago

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
DominicStaff
answered 7 years ago

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 );
Powered by DW Question & Answer Pro