Upgraded to 2.1 – Some bookmarks adjustments

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:
  1. <?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:
  1. <?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:
  1. <?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.

Possibly Related posts:

  1. How-to: Another Way to Exclude Posts From the Front Page
  2. Added the Tag page – How To
  3. The Zeitgeist – And How-To
  4. Dynamic Amazon Ads?
  5. WordPress 2.1 – More Editor Options


1 comment to Upgraded to 2.1 – Some bookmarks adjustments

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>