Hello.
I'm showing categories with this codes. Normally there is no problem.
<?php
$categories = wp_list_categories('current_category=1&hide_empty=0&title_li=&echo=0&link_before=<span>&link_after=</span>');
$categories = preg_replace('/title=\"(.*?)\"/','',$categories);
echo $categories;
?>
But i want to wrap current category's text into <span>
tag for showing current category image.
In short:
<a href="#">Home</a>
to <a href="#"><span>Home</span></a>
.
How i can do it with PHP?
Thanks.