• Resolved dominoeffect

    (@dominoeffect)


    Hi all,

    On my new site I’m using the following to pull up a list of recent posts & their excerpts on the sidebar:

    <?php query_posts('showposts=10');	?>
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    	<li><p><strong><a href="<?php the_permalink() ?>"><?php the_title() ?> </a></strong></li></p>
    
    <?php the_excerpt() ?>
    
    	<?php endwhile; endif; ?>

    Does anyone know of a way to shorten the length of the_excerpt?

    I’m looking for a way for customise the excerpt length automatically, to something more brief, say, ten words.

    I’m aware of the custom field but that adding an excerpt to that extra field would be very time-consuming since I post at least once a day – I would have to count out the correct length of excerpt, and then paste it in, every time I post.

    Thanks, MS

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Changing the default length of the_excerpt’ is closed to new replies.