WordPress.org

Ready to get started?Download WordPress

Forums

Excerpts for Category pages (2 posts)

  1. tvdlinks
    Member
    Posted 11 months ago #

    Hello,

    I'm trying to change my category pages from displaying full posts to excerpts. I've tried heading to the "Category Template" page WordPress provided but it wasn't what my blog had.

    This what my category.php looks like:

    <?php
    	global $SMTheme;
    
    	get_header();
    ?>
    
    			<h1 class="page-title"><?php printf( $SMTheme->_( '' ), single_cat_title( '', false ) ); ?></h1>
    
    			 <?php get_template_part('theloop'); ?> 
    
    			<?php get_template_part('navigation'); ?>
    
    <?php
    	get_footer();
    ?>

    I don't know how to change the loop. Does anyone know how? Thank you.

    My site.

  2. Pioneer Valley Web Design
    Member
    Posted 11 months ago #

    the template part should be pulling in theloop.php

    http://codex.wordpress.org/Function_Reference/get_template_part

    In that file you want to use the excerpt

    Edit: Or create a new loop file and call that one (based on your theme's loop)

Reply

You must log in to post.

About this Topic