Support » Themes and Templates » The archive style of Tweny ten

  • Resolved tomtomand

    (@tomtomand)


    When you look at an archives listing with the Twenty ten theme, all blog posts are made short, there is no pictures and there is the text “continue reading”.

    Is it possible in an easy way to change the Twenty ten theme so it list the whole posts in archive mode. As in the Kubrick theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • open loop.php, find:

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
      ...
    <?php endif; ?>

    replace everything in between with:

    <div class="entry-content">
      <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
      <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    </div><!-- .entry-content -->
    Thread Starter tomtomand

    (@tomtomand)

    Now I’ve followed your instructions.

    It made the archives listing look as I wanted it, but it messed up the postings in the ordinary blog. Now there is no pictures there instead. 🙂

    (I changed it back)

    Thread Starter tomtomand

    (@tomtomand)

    I’ve managed to fix the problem myself now.
    Thanks for telling me where to look!

    I removed the bold letter in this line:
    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>

    It made wordpress ignore to shorten the posts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The archive style of Tweny ten’ is closed to new replies.