I am trying to remove / replace the title attribute for category items used by WordPress. I am 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 read, this method was used for older versions (although I never tried it). I really don't want to hack WordPress interlates or use a JavaScript hack for something so straightforward. Any help is appreciated ...
The update below is what is created from the code above ...
<div id="categories"> <h3>Manufacturers</h3> <ul> <li class="cat-item cat-item-7"><a href="http://localhost/crosstrainers/?cat=7" title="View all posts filed under Featured">Featured</a> </li> </ul> </div>
function php wordpress customization
Alex
source share