I had a reader request for some help with their blogroll recently. The WordPress blogroll has gone through many changes over the past year, and a lot of the WordPress themes authors out there didn’t update their themes with the new code used to call the blogroll.
The old code still works, but it doesn’t let you take advantage of the new blogroll capabilities. If you have set up your blogroll with different categories, but noticed that all of them display under a single category, it is probably because your blog’s theme is still using the original code that didn’t allow for much configuration. You’ll probably find something like this:
<?php get_links()' ?>
or
<?php get_links_list()' ?>
If you want a more configurable code, you will want to use something like the following:
<?php wp_list_bookmarks('categorize=1&before=<li>&title_before=<h2>&title_after=</h2>&category_before=</n>&category_before=</n>&after=</li>&orderby=url'); ?>
This code will display your blogroll, but will let you have separate lists for your different blogroll categories. I’ve customized it to display the category title as a Header 2 and use bullet points to display the content, but you can do a variety of things. For more customization options, you’ll want to check out the WordPress List Bookmarks page and adjust the code as needed.














There Are 25 Responses So Far »
Pingback: Technology Talk - 12/30/2007
Pingback: MT 4.1 vs. WordPress at Pocagoolie
Pingback: Wordpress Plugin Centre - Wordpress trick - WordPress Themes Tips and Tricks
Pingback: Compilation of WordPress Hacks
Pingback: Top 30 Most Wanted Wordpress Tricks and Hacks | Make Money Blogging Experiment
Pingback: 100+ Killer Wordpress Resources | Steffan Antonas' Blog
Pingback: Word Press Link question