Remove view all posts filed under

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

echo str_replace("View all posts filed under ","",wp_list_cats('echo=0'));

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.

.html on PAGES plugin .html Wordpress permalink on PAGES plugin
Correct Title Case Correct Wordpress Title Case Function
Remove view all posts Strip 'view all posts filed under' from Cat Menu
Secure URL Attacks Help Secure Wordpress From URL Include Attacks
Develop Our Wordpress website development service
Projects Information on a small selection of our projects
Tips Some tips and ideas we would like to share
Wordpress Plugins and Functions for Wordpress Developers

17 Comments

john@yahoo.com on the 19th of April 2011

thanks Bro - was a nice post and great info. i've been look for this fixed, thanks again for your research

Rohan on the 19th of February 2011

Having done this works well, but a small word of caution .... you will have to do it all over again when you upgrade your wordpress version !

Chad Justice on the 7th of February 2011

There is a simpler solution. You don't have to modify the classes.php at all. Before it decides to display that "title" "View all posts filed under 'category'" it first looks to the description field of the category. You can enter in whatever you want in that description field and it will show up instead of "View all posts filed under 'category'". If you don't want the title to say anything or pop up anything on mouseover, just place the curser in the description for that category and hit the spacebar and then update the category. That blank space in my description field makes it pop up nothing for the "title" of my category menu link. That's what I wanted and it was that easy!

Jim on the 18th of January 2011

Rohan's suggestion from May 2010 work great. Thanks man.

GoofyFitnessDadMichael on the 23rd of August 2010

Thank you for this! I've been struggling to get this going on my wordpress site, and this is quite helpful!

What Is My IP Address on the 2nd of August 2010

You can actually do that by editing the "category-template.php" file in "wp-includes" directory and delete all the "View all posts in" from it. I hope that will help.

hafiz on the 24th of June 2010

umm...im not really sure how to do this...care to explain more please? =\

karla on the 15th of June 2010

Thanks you so much, i wasted a lot of time looking for that line

Rohan on the 31st of May 2010

I'm using 2.9.2 and there is still a classes.php file. Change line 1332 inside of the classes.php file.

ken on the 15th of April 2010

been looking for a solution to this to no avail. on how to remove "link to" and "View all posts filed under" text defined by wordpress when anchor titles are generated..

Sied on the 10th of January 2010

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

curlsdiva on the 2nd of January 2010

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!

miso on the 26th of October 2009

...................... thanx!

cado on the 1st of May 2009

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 )) . '"'; */

Veer on the 24th of December 2008

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

Veer on the 24th of December 2008

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

Back to latest




Name and email address required, website must be related
08445 008 009