set except leanth in wordpress

 write the following line in functions.php

function custom_excerpt_length( $length ) {
    return 30;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

No comments:

Post a Comment