Return to Snippet

Revision: 24305
at February 25, 2010 13:51 by Xtraboy


Initial Code
function replace_excerpt($content) {
       return str_replace('[...]',
               '<div class="more-link"><a href="'. get_permalink() .'">Continue Reading</a></div>',
               $content
       );
}
add_filter('the_excerpt', 'replace_excerpt');

Initial URL
http://css-tricks.com/snippets/wordpress/replace-excerpt-ellipsis-with-permalink/

Initial Description

                                

Initial Title
Replace Excerpt Ellipsis with Permalink

Initial Tags
wordpress, replace, text

Initial Language
PHP