October 3rd, 2009 by Luis Alves

How to display link categories description in wordpress sidebar

In wp-includes you’ll find the file bookmark-template.php.This will be done with the tag $cat->description. go to line 227 and change this line:

$output .= "$title_before$catname$title_after\n\t<ul class='xoxo blogroll'>\n";

to:

$output .= "$title_before$catname$title_after\n\t<p>$cat->description</p>\n\t<ul class='xoxo blogroll'>\n";

You can change the place where the description will appear and the html tag that wraps it, for instance:

$output .= "$title_before$catname$title_after\n\t<ul class='xoxo blogroll'>\n\t<h3>$cat->description</h3>\n";

2 Responses to “How to display link categories description in wordpress sidebar”

  1. [...] de omschrijving weer te geven.” Zie hier Huub’s oplossing, en hij heeft het weer van Brainshitting. Tagged with: categorie • huub • huub krauth • Huub Krauth Webdevelopment • [...]

  2. This worked great. Much easier than I thought it would be. Thanks.

Leave a Reply