Custom excerpt length for WordPress site

You can set the limit to WordPress excerpt by adding following code to your functions.php file.It will overwrite the default limit with custom value defined in function.

 
<?php
 
	function custom_excerpt_length($length) {
		return 120;
	}
	add_filter('excerpt_length', 'custom_excerpt_length');
 
?>

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …


Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us