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'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.

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

share|improve this question

closed as not a real question by toscho Jul 27 '12 at 22:38

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
An excerpt is usually something that will be displayed for posts, not pages, except in heavily customised themes. Can you give more of a context of what you are trying to do, maybe just give us an example of your attempted use of the function to do your intended job –  Liam Bailey Jun 27 '12 at 19:54

Browse other questions tagged or ask your own question.