WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I show format in Categories and Tags in Twenty Ten Theme? (3 posts)

  1. roxer82
    Member
    Posted 3 years ago #

    I'm using "Twenty Ten" Theme. When I go to a Category or a Tag, the posts appears without format (images, bold, italics...).
    How can I show the posts with the format as appear in the index page?

    Thanks.

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    that is because the archives such as tag and category are using the_excerpt() to show a short form of the post;
    http://codex.wordpress.org/Function_Reference/the_excerpt
    http://codex.wordpress.org/Template_Tags/the_content

    this is sorted in loop.php (about line 133) of the theme:

    <?php if ( is_archive() || is_search() ) : // Only display Excerpts for archives & search ?>
    			<div class="entry-summary">
    				<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    			</div><!-- .entry-summary -->
    	<?php else : ?>

    change this line of the code above:

    <?php if ( is_archive() || is_search() ) : // Only display Excerpts for archives & search ?>

    into this:

    <?php if ( is_search() ) : // Only display Excerpts for search ?>
  3. roxer82
    Member
    Posted 3 years ago #

    Thank you alchymyth!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags