StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-20-2009, 03:08 PM
Craig Tuller's Avatar
Craig Tuller Craig Tuller is offline
Registered User
Pro Plus Member
 
Join Date: Sep 2008
Location: Raleigh, NC
Posts: 7,698
Default How To Display Post Excerpts In The Category View

Most StudioPress themes are set up to display the entire Post in the Category View.

There are several ways to limit the amount of text that a Post displays in this view...

Method 1
Use the MORE tag in your posts and the code will automatically limit the amount of Post text shown.

This is done in the Post Editor, by placing the tag wherever you want to break off your text.

Method 2
Use the WordPress EXCERPT command
Quote:
the_excerpt()
Open archive.php (or category.php if your theme is using that instead of archive.php) and find the following line of code:
Quote:
<?php the_content(__('Read more'));?><div style="clear:both;"></div>
Replace with this line of code:
Code:
<?php the_excerpt();?><div style="clear:both;"></div>
This command will display whatever text you entered into the Excerpt box of the Post editor and if that is blank, it will display the first 55 words of the Post.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not only excerpts in category view itsfashionbaby General Discussion 3 07-15-2009 06:34 AM


All times are GMT -5. The time now is 11:46 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.