Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

monkeybrain on "This function stopped working with 3.6"

$
0
0

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 all articles
Browse latest Browse all 8245

Trending Articles