0

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?

3

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);
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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