Wordpress excerpt_length Filter Hook:
To change excerpt characters length of the wordpress post, then use excerpt_length filter hook to limit excerpt characters of the wordpress post. All you need to do just add following filter hook script to your functions.php file.
function custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
By default the excerpt in the wordpress will display 55 characters. So if you want to change then use above wordpress excerpt_length filter hook script change the words count as per your need.
0 comments:
Post a Comment