This function stopped working with 3.6
-
Hi everybody
I had this custom functions in my functions.php for a while now, it replaces the […] at the end of an excerpt with a permalink. Unfortunately this stopped working with WP 3.6, does anyone have an idea why and how to fix it?
function replace_excerpt($content) { return str_replace('[...]', '<p class="more-link"><a href="'. get_permalink() .'">Continue Reading</a></p>', $content ); } add_filter('the_excerpt', 'replace_excerpt');
Thanks alot!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘This function stopped working with 3.6’ is closed to new replies.