Getting the_excerpt to link to child pages

I’m using the Twentyeleven 'continue reading' function for my excerpts

function twentyeleven_continue_reading_link() {
return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Read more', 'twentyeleven' ) . '</a>';
}

This works fine until I pull it in to link to a child page. The ‘Read More’ links to the Parent page only.

Read More

How can I get it to pick up the permalink of my child pages as well?

Related posts

Leave a Reply