I discuss one way of doing that in the following thread:
http://wordpress.org/support/topic/90258
Thread Starter
yansky
(@yansky)
Thanks very much Kafkaesqui. That worked perfectly. 😀
Could I press you for some more help with generating other navigation links? 🙂
How would I go about doing the same thing for wp_get_links , wp_list_cats & wp_get_archives ?
I tried a few variations of your code like so:
<?php
$cat = wp_list_cats('echo=0');
$cat = str_replace('<li>', '<div class="subItem">', $cat);
$cat = str_replace('</li>', '</div>', $cat);
echo $cat;
?>
But it didn’t work.
I looked through the code in some of the functions pages in the wp-includes folder to try and shed some light on how the code for the tags are generated, but I’m still pretty new to php & it didn’t make much sense to me.