/ 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
Usage: Paste that code in your functions .php and in your theme you put
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Excerpt - usage - < ?php echo excerpt(15); ? > - remove the spaces between the < and ? function excerpt($limit) { } else { } return $excerpt; }