By default all excerpts are capped at 55 words. Utilizing the code below you can override this default settings: |
Just copy and paste following codes to yourdomain.com/wp-content/themes/activated-theme/fucntions.php in the most below.
Example:
PHP
function new_excerpt_length($length) {
return 100;
}
add_filter('excerpt_length', 'new_excerpt_length');
How to change the length of excerpt | Wordpress Theme Shortcode |
Function to change the length of excerpt | Wordpress Theme Shortcode |
Read Full: | Wordpress Theme Shortcode |
Category: | Web Tutorial |
Sub Category: | Wordpress Theme Shortcode |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 30 |
Tested on: | WordPress 3.0.1 |