Thursday, November 28, 2013

Custom Excerpt Length

By default the excerpt length is capped at 55 words. Many theme designers like to have the flexibility that is why WordPress lets you customize the excerpt length with this function:


function new_excerpt_length($length)

return 100;


add_filter(‘excerpt_length’, ‘new_excerpt_length’);



Custom Excerpt Length

No comments:

Post a Comment

Please mention your comments.......