automating read more placement

stevenukas

Junior Member
Joined
Jan 2, 2012
Messages
122
Reaction score
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.
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 ?
 
Have tried Evermore plugin?

Code:
http://wordpress.org/extend/plugins/evermore/
 
Back
Top