$ads =
убрать
<?php
function aftermore2($content) {
if(function_exists('the_ratings')) { the_ratings(); }
$content=preg_replace('#<span.*?id="more-(.*?)".*?></span>#','<span id="more-\1"></span><center>'.$ads.'</center>',$content);
return $content;
}
add_filter('the_content', 'aftermoreads');