hm... well that didn't work, my exerpts ended up looking like this:
Last Chance for Freebie Play
February 28, 2009 | By RotoRob | Comments (0)
Warning: rtrim() [function.rtrim]: Invalid '..'-range, no character to the left of '..'. in /nfs/c04/h01/mnt/60416/domains/rotorob.com/html/wp-content/themes/RotoRob_v7/functions.php on line 32
Warning: rtrim() [function.rtrim]: Invalid '..'-range, no character to the right of '..'. in /nfs/c04/h01/mnt/60416/domains/rotorob.com/html/wp-content/themes/RotoRob_v7/functions.php on line 32
If you don’t want your kid to wind up like this, teach him how to play fantasy sports properly. In the past couple of weeks, we’ve brought you articles designed to help you with your strategy when playing hockey or basketball fantasy leagues on Draftbug. Well, today (i.e., February 28) is your last chance to take advantage [...] more
I wonder if the stuff in the template is conflicting with the stuff in the functions.php?
I have this in my template:
<?php $count++; ?>
<?php if ($count < 2) : ?>
<?php the_content() ?>
<?php else : ?>
<?php remove_filter('the_excerpt', 'wpautop'); ?>
<?php the_excerpt();?>
<a href="<?php the_permalink() ?>">more</a>
<?php endif; ?>
where you would normaly find this:
<?php the_content() ?>
I do that so that I can display the first post in full, followed by 4 excerpts.
maybe the:
<?php remove_filter('the_excerpt', 'wpautop'); ?>
<?php the_excerpt();?>
in the template is conflicting with the
function trim_excerpt($text) {
return rtrim($text,'[...]');
}
add_filter('get_the_excerpt', 'trim_excerpt');
in the functions.php?