• Resolved rekkette

    (@rekkette)


    Hello My dear friends.

    How do I get my Reading Settings to correctly display a summary without having to manually enter an excerpt?

    I have a 2010 Child Theme. Is this something that I need to define in Functions.php? Is there a plugin that I can install to make this process easier?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Chad

    (@lynneandchad)

    Use the “Read More” tag when editing your post. There’s a button for it on the visual editor, or you can enter <!--more--> in the text editor.

    Thread Starter rekkette

    (@rekkette)

    That’s a good suggestion to do it manually, but I have more than 30 posts and am adding new ones every couple of weeks. I’d like an automated solution.

    Chad

    (@lynneandchad)

    Gotcha.

    You’ll need to change

    <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>

    to

    <?php the_excerpt(); ?>

    on line 144 of loop.php (assuming you haven’t moved anything to change the line numbers already)

    Thread Starter rekkette

    (@rekkette)

    Cool. I saw it said in the codex about this!

    But what about specifying the length of the Excerpt. I think default is 55 words or something.

    Chad

    (@lynneandchad)

    I almost added that to my last post, but didn’t at the last second. ??

    Search your functions.php for

    function twentyten_excerpt_length( $length ) {
    	return 40;
    }

    change the return value to however many words you want.

    Thread Starter rekkette

    (@rekkette)

    You’re awesome! Thanks! I mean, I did see this in the Codex pages, but there was Soooo much information about other stuff that it felt overwhelming. Thanks for helping me out!

    Chad

    (@lynneandchad)

    No problem! Glad to do it!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Chose 'Summary' from 'Reading' settings, only 'Full Text'’ is closed to new replies.