What I did was create a new function for the "Archive" pages, which only displays a blerb.
add this function to /wp-includes/post-template.php
Code:
function the_archive_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
global $id;
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
$length = 500; // change this to roughly the amount of chars you want to display
$content = substr($content,0,$length);
$lastperiod = strripos($content, '.');
$content = substr($content,0, $lastperiod+1);
$content = $content . "</p><br /><a href=\"". get_permalink() . "\" class=\"more-link\">Read Full Article</a>";
echo $content;
}
and in the archive template, replace the_content() function call with this to call the new function name:
Code:
<div class="entry">
<?php the_archive_content(__('Read the rest of this entry »','wp_multiflex')); ?>
</div>
This will display 500 chars, minus the amout it takes to get to the last period before it, so that it will display complete sentences.
The only issue with this is if you don't use many periods in your posts (ie, coding posts may not have a single period in them
|