1
2
//add this to your functions.php
function get_excerpt($count){
The wordpress excerpt just doesn't cut the mustard. With this snippet, you can now add a custom excerpt and specify how many characters you want to show. It also strips shortcodes so you dont need to worry about having your shortcode syntax showing up. Boom!
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.