Custom excerpt length function. (This goes in your child theme’s functions.php file)
<?php
add_filter('excerpt_length', 'custom_excerpt_length');
function custom_excerpt_length($length) {
return 20; // Change this to whatever you want.
}
?>
Thank you Prasanna for your great reply. I tried the code but wasn’t too sure where to put it so went with the ‘Advanced Excerpt’ plugin as well and all works just as I wanted.
Thanks again 🙂
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Account
Search Forums
Priority Support
This free Support Forum relies on contributions from our support staffs and fellow Graphene themes users. While we endeavour to provide adequate and timely support, due to its voluntary nature responses are not guaranteed and may be delayed.
If you require urgent assistance, you may like to consider our Priority Support option.