Develop

Small Business Websites

Creating Websites for Small Businesses & Sole Traders

Promote

Affiliate Marketing

Promotion of merchant products and services in an ethical manor

Support

Computer Services

Providing PC services in our local area, OS installs problems upgrades and networking

Remove view all posts filed under from Category List

Using Wordpress as a CMS site and didnt want the “view all posts filed under” showing when you mouseover the links in the Category menu created from wp_list_cats

Googled without luck for 20 mins looking for a way to remove this without messing with classes.php

Anyway this is what i come up with

That a simple way to strip “view all posts filed under” in your theme without a plugin,

As it uses str_replace you could always replace the text with something else.

its getting late im getting tired so could of missed an easier way. If you know of another way or this has been of help, please leave your feedback.

6 comments below, add yours

thnx for the info but i didn’t get it completely…please explain it…i mean this line is written in which file ?
waiting for ur reply

Veer on December 24, 2008

sorry…i got it..don’t reply…thank you very much for your help..
already bookmarked you website

Veer on December 24, 2008

This is frustrating how there’s only 2 options for the ‘title=’ –> namely 0 and 1.

Reference to: http://codex.wordpress.org/Template_Tags/wp_list_categories

Thank you for your post, buddy.

I simply wish to NOT display anything at all for my title, so I simply commented out the entire code below in classes.php:

/*
if ( $use_desc_for_title == 0 || empty($category->description) )
$link .= ‘title=”‘ . sprintf(__( ‘View all posts filed under %s’ ), $cat_name) . ‘”‘;

else
$link .= ‘title=”‘ . attribute_escape( apply_filters( ‘category_description’, $category->description, $category )) . ‘”‘;
*/

cado on May 1, 2009

…………………. thanx!

miso on October 26, 2009

echo str_replace(“View all posts filed under “,”",wp_list_cats(‘echo=0′));

Are you putting that in category-template.php? And if so, where exactly in the file please? And are you putting it in any other php file as well?

I ask because I’m using 2.9 and it doesn’t work, I’m afraid. When I was on 2.8.6, I altered this in classes.php

$link .= ‘title=”‘ . sprintf(__( ‘View all posts filed under %s’ ), $cat_name) . ‘”‘;
else

But this doesn’t work in 2.9 because there is no one classes.php file in wp-includes!

Any ideas on how to make it work in 2.9 because I’ve spent hours trying to figure this out!

curlsdiva on January 2, 2010

the code replaces wp_list_cats() in your template (theme)

Sied on January 10, 2010
* means required