Horje
How to change the length of excerpt

By default all excerpts are capped at 55 words. Utilizing the code below you can override this default settings:


Function to change the length of excerpt

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');

This example changes the excerpt length to 100 words, but you can use the same method to change it to any value.





Related Articles
How to change the length of excerpt Wordpress Theme Shortcode

Single Articles
Function to change the length of excerptWordpress 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



Share on: