WordPress Snippets at WPcustoms

replace excerpt […] with custom html

The str_replace function looks for […] and replaces it with customized html text. Change it to fit your needs.


/**
 * Snippet Name: replace excerpt […] with custom html
 * Snippet URL: http://www.wpcustoms.net/snippets/replace-excerpt-with-custom-html/
 */
 function wpc_replace_excerpt($content) {
       return str_replace('[...]',
               '',
               $content
       );
}
add_filter('the_excerpt', 'wpc_replace_excerpt');