WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know the_content has the handy dandy $strip_teaser argument that lets you set whether there is "continue reading" text. No such luck for the_excerpt...

I would like to just get rid of it. I had previously tried to just shorten it to Read on but that didn't seem to work either.

 function beernews_auto_excerpt_more( $more ) {
    return ' &hellip;' . __( 'Read on <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) . '</a>';

add_filter( 'excerpt_more', 'beernews_auto_excerpt_more' );

Theme is Twenty Eleven.

share|improve this question
up vote 2 down vote accepted

If you're using the Twenty Eleven theme I think you need to remove that theme's filter before you can define your own:

remove_filter( 'excerpt_more', 'twentyeleven_auto_excerpt_more' );

edit building from t-p

try this:

    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    function my_child_theme_setup() {
       remove_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );

In case you are using twentyeleven, use "twentyeleven_auto_excerpt_more" instead of 'twentyten_auto_excerpt_more'

share|improve this answer
Just that line? I placed it above the other code and it didn't work. – Adam Aug 25 '11 at 3:43
see my edit above – wired Aug 25 '11 at 5:13
Thank you!! Guess I should have read twentyeleven's functions.php from the top. :) – Michelle Sep 14 '11 at 21:46

I use this in my twenty ten child theme,s functions.php:

add_action( 'after_setup_theme', 'my_child_theme_setup' );
function my_child_theme_setup() {
remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
share|improve this answer
Speaking of excerpt_length, I wonder if there is a new function to use characters instead of words a la Twitter. – Adam Aug 25 '11 at 5:29

Your Answer


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.