/ Published in: PHP
I did not created this, a friend provided it to me, and it seems really usefull so i thought i should share.
Usage: Paste that code in your functions .php and in your theme you put <?php> where 20 is the number of words you want
Expand |
Embed | Plain Text
//Excerpt - usage - < ?php echo excerpt(15); ? > - remove the spaces between the < and ? function excerpt($limit) { } else { } return $excerpt; }
You need to login to post a comment.
