Upgraded to 2.1 - Some bookmarks adjustments
Posted on January 24, 2007
One Comment
I bit the bullet and did the upgrade this evening, once I saw that there seemed to be a simple patch for the UTW issues I had mentioned the other day.
First I backed up the database. Then I backed up the entire site. I may jump into things, but I'm a born pessimist first!
Once I was done with the upgrade, one issue stood out: I'd lost my "Links" section in the footer. First, my template was using
-
<?php wp_get_links(2); ?>
(category 2 is the only one I wanted to show links for).
After the upgrade, and the category merging that is part of 2.1, I saw that what used to be 2 was now 20. Ok, so I switched it to
-
<?php wp_get_links(20); ?>
After looking closer, I realized I didn't care for how that was displaying -- the descriptions were listed instead of being "fly over" title attributes. Yuck. I dimly recalled seeing something about wp_list_bookmarks() mentioned in the WP Support Forums, so I looked into that a bit.
The default was close, but not quite right. Each of my footer columns has a header tag, and wp_list_bookmarks was adding another. I commented out my header, but then realized the header it was adding was part of the list, so it didn't line up very well.
After much dinking around, I came up with something that feels like a hack, but disables the wp_list_bookmarks header:
-
<?php wp_list_bookmarks('orderby=rand&category=20&title_before=<!--&title_after=-->'); ?>
Yep, by using title_before and title_after parameters, I'm essentially commenting out the title that's added. I'm sure there's a better way (duh!) but this works for now.
The tabbed editor is pretty slick, as is the auto-save thing. However, it doesn't work well with my code format plugin. So, I still need to turn off the fancy editor when showing code. Ah well.
Tags: Links, ultimate-tag-warrior, upgrade, WordPress
Possibly Related Posts
Comments
One Response to “Upgraded to 2.1 - Some bookmarks adjustments”
Leave a Reply



I hope I’m not freaking you out with my linking