• I’m pretty new to building a website, and could use some advice. I’m using the Twenty Ten theme, and would like for the main page to only show excerpts of the posts I make, instead of the full posts.

    I can offer an example of another blog to show you what I’m trying to do if needed. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • edit loop.php

    edit these lines:

    <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>

    useful:
    http://codex.wordpress.org/Conditional_Tags

    – use the forum search for details; this has been answereed too many times already.

    Thread Starter Vel252

    (@vel252)

    Do I just paste that anywhere into the loop.php, or am I supposed to cut something out and replace it with this?

    you need to find this line in loop.php (occurs twice) and change it both times to include the ‘is_home()’ conditional tag;

    example:

    <?php if ( is_archive() || is_search() || is_home() ) : // Display excerpts for home page, archives, and search. ?>

    Thread Starter Vel252

    (@vel252)

    Wont that eventually get changed the next time my theme is updated? Or do I need to make a copy of loop.php for my child directory to do this in? Thanks for the help!

    do I need to make a copy of loop.php for my child directory to do this in?

    yes;
    all edits should be made in the child theme, in copies of the templates.

    Thread Starter Vel252

    (@vel252)

    Thank you for the clarification!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Twenty Ten: Showing Post Excerpts on Main Page vs Full Posts’ is closed to new replies.