stevenukas
Junior Member
- Jan 2, 2012
- 122
- 13
I would like to know how to automate wp so that articles that has more then 300 words would have read more... link to full article.
I have tried using this in thesis but it doesn't work. Any advice ?
Code:
function custom_excerpt_length($length) {
return 300; // Change this word count to whatever you want.
}
add_filter('excerpt_length', 'custom_excerpt_length', 20 );
I have tried using this in thesis but it doesn't work. Any advice ?