$custom_title = str_replace('%title%', $title, $custom_title).' | ';
 

pat30