Removing title from wp_list_cats()
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-03-08T22:57:33Z
Indexed on
2010/03/08
23:21 UTC
Read the original article
Hit count: 198
I'm trying to remove/replace the title attribute on the category elements used by WordPress. I'm using WordPress 2.9.1, with the following code:
<div id="categories">
<h3>Manufacturers</h3>
<ul>
<?php str_replace("title=\"View all posts filed under ","",wp_list_categories('use_desc_for_title=0&exclude=1,2,3,4,5&title_li=&hierarchical=1')); ?>
</ul>
</div>
From what I had read this method used to work on older versions (I had never tried it though). I really don't want to hack at the interals of WordPress, or have to use a JavaScript hack, for something so straight forward. Any help is appreciated...
Update below is what is created from the code above...
Manufacturers
© Stack Overflow or respective owner