• Hey guys,

    So I’m re-visiting a site I started building quite a while back and a few things seem to now have me baffled…

    I have read a handful of tutorials but cannot seem to figure out how to do this:

    (link to what I’m on about: HERE )

    This is a category archive page and I’d like, for just the cat archive page, to show the excerpt and the thumbnail but smaller, instead of the full thing.

    It;s finding where to do this just for cat archive page that is the issue, the code seems different on any tutorial I find to what I have in front of me.

    I’m using Tewnty Thirteen standard theme.

Viewing 1 replies (of 1 total)
  • Thread Starter roptech

    (@roptech)

    I think I may have cracked it in my own way… is there a better way than doing this? Changed a section in content.php to:

    <?php if ( is_single() ) : // Only display Full post for single ?>
    	<div class="entry-content">
    		<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
    		<?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
    	</div><!-- .entry-content -->
    	<?php else : ?>
    	<div class="entry-summary">
    		<?php the_excerpt(); ?>
    	</div><!-- .entry-summary -->
    	<?php endif; ?>

    So only the full post on it’s own page shows anything but the excerpt.

    Am I missing a very easy way of adding “…” and “read more” for the excerpt?

Viewing 1 replies (of 1 total)

The topic ‘Category archive posts as excerpts – baffled’ is closed to new replies.