Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I just placed this in my functions.php (I'm using Wordpress 3.0.4):

function new_excerpt_more($more) {
       global $post;
    return '<a href="'. get_permalink($post->ID) . '">Read the Rest...</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');

But my post is still displaying … Continue reading

Any suggestions?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Hi @janoChen:

Your theme (or a plugin) is overriding your filter. Try increasing the priority like this:

add_filter('excerpt_more', 'new_excerpt_more',11);

Or like this:

add_filter('excerpt_more', 'new_excerpt_more',20);

And if that doesn't work try:

add_filter('excerpt_more', 'new_excerpt_more',100);
share|improve this answer
    
Thanks Mike it worked. –  janoChen Jan 28 '11 at 12:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.