With the following code I am showing a list of sub categories:
<ul class="subcats-blog">
<?php
if ( is_category() ) {
$current_cat = get_query_var('cat');
wp_list_categories('&title_li=&child_of='.$current_cat);
}
?>
</ul>
What I am trying to do is to strip the word 'news' from any list item. I figured that I can do it by the use of preg_replace, but the problem is my knowledge of php is very limited, and I'm not able to glue the two together. Any help would be greatly appreciated.