WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] The archive style of Tweny ten (4 posts)

  1. tomtomand
    Member
    Posted 3 years ago #

    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.

  2. Safirul Alredha
    Member
    Posted 3 years ago #

    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 -->
  3. tomtomand
    Member
    Posted 3 years ago #

    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)

  4. tomtomand
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic