I am attempting to remove/replace the title attribute around the category elements utilized by WordPress. I am using WordPress 2.9.1, using 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 things i had look at this method accustomed to focus on older versions (I'd never attempted it though). I truly don't wish to hack in the interals of WordPress, or need to use a JavaScript hack, for something so easy. Any assistance is appreciated...

Update below is exactly what is produced in 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>

There is a wordpress plugin for your maybe it will help a minimum of searching in the wordpress plugin code.

http://wordpress.org/extend/plugins/remove-title-attributes/

Automatically, wordpress_list_groups includes the course description within the title attribute if there's one, or "View all posts filed under category" if there's no description.

I do not like getting the entire description inside. This is exactly what I'm using in functions.php to personalize the title attribute:

function custom_categories_title($output) {
    $search = '/title=".+"(.*>)(.+)</i';
    $replace = "title=\"View all articles filed under $2\"$1$2<";
    return preg_replace($search, $replace, $output);
}
add_filter('wp_list_categories', 'custom_categories_title');

Should you simply desired to take away the title attribute altogether, you could utilize

    $search = '/ title=".+"/i';
    $replace = '';

If you won't want to make use of the wordpress plugin, draining the code in the Remove Title Attributes plugin you can observe the primary function used to be able to take away the game titles in the groups..

open your template/function.php file and place the next...

function wp_list_categories_remove_title_attributes($output) {
    $output = preg_replace('` title="(.+)"`', '', $output);
    return $output;
}
add_filter('wp_list_categories', 'wp_list_categories_remove_title_attributes');

this can give a new filter changing the from the wordpress_list_groups function utilized by wordpress and change it using the function above..

inside your code example

<div id="categories">
  <h3>Manufacturers</h3>
    <ul>
      <?php wp_list_categories(); ?>
    </ul>
</div>

Would output as

 <div id="categories">
      <h3>Manufacturers</h3>
        <ul>
          <li class="cat-item cat-item-7"><a href="http://localhost/crosstrainers/?cat=7">Featured</a></li>
        </ul>
    </div>

Were the title="", continues to be removed out completely.. :)

credits to: Tim Holt & his plugin