'.trim(stripslashes($post->post_title)).""; } $find[] = $val[0]; $replace[] = ''; } if ($tex2 != '') $tex2 = '"; $content= str_replace($find, $replace, $content); return $content.$tex2; } add_filter('the_content', 'related2_posts'); ?>