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

My today's question is... is there any way to auto add an custom (whatever I want) Read more... each time I use the_excerpt or get_the_excerpt function???

Thanks in advance

share|improve this question
up vote 1 down vote accepted

From Twenty Ten's functions.php:

 * Returns a "Continue Reading" link for excerpts
 * @since Twenty Ten 1.0
 * @return string "Continue Reading" link
function twentyten_continue_reading_link() {
    return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) . '</a>';

 * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link().
 * To override this in a child theme, remove the filter and add your own
 * function tied to the excerpt_more filter hook.
 * @since Twenty Ten 1.0
 * @return string An ellipsis
function twentyten_auto_excerpt_more( $more ) {
    return ' &hellip;' . twentyten_continue_reading_link();
add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
share|improve this answer

I can't remember if I've modified the_excerpt() in my code somehow but I've just been using this in my loop

global $post;

echo '<a href="' . get_permalink($post->ID) . '" class="profile_postlink">Read more...</a>';
share|improve this answer
that is exactly what I'm using now, w/o results I want =( – andresmijares25 Nov 23 '11 at 19:03
Can you post your code please? – EddyR Nov 24 '11 at 6:46

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.