So I’m looking to do the same thing as Yesfree (have one category display full post, but my codes theme is a little different, so I’m having trouble taking esmi code and adding it to my themes code, any one out there to help, maybe esmi
Code:
/*this function allows for the auto-creation of post excerpts*/
function truncate_post($amount,$echo=true) {
global $post, $shortname;
$postExcerpt = '';
$postExcerpt = $post->post_excerpt;
if (get_option($shortname.'_use_excerpt') == 'on' && $postExcerpt <> '') {
if ($echo) echo $postExcerpt;
else return $postExcerpt;
} else {
$truncate = $post->post_content;
$truncate = preg_replace('@\[caption[^\]]*?\].*?\[\/caption]@si', '', $truncate);
if ( strlen($truncate) <= $amount ) $echo_out = ''; else $echo_out = '...';
$truncate = apply_filters('the_content', $truncate);
$truncate = preg_replace('@<script[^>]*?>.*?</script>@si', '', $truncate);
$truncate = preg_replace('@<style[^>]*?>.*?</style>@si', '', $truncate);
$truncate = strip_tags($truncate);