This entry was posted on Thursday, January 25th, 2007 at 9:08 AM and is filed under Blogging, Software, WordPress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
I upgraded the cocoacrusty.com blog to WordPress version 2.1 on Monday of this week and my theme doesn’t seem to appreciate the new layout for the new links structure in 2.1. It seems that the link tables used for blogrolls has changed dramatically and the table linkcategories doesn’t even exist any longer. I started getting a “SELECT cat_id, cat_name FROM” error because my theme utilized some code that made direct queries to the database instead of using the built-in functions of WordPress which are updated when a new release comes out and changes are needed.
I did some research and found these two threads on the WordPress Support Forums. The first link shows others who are experiencing the same problem. They show code examples from their themes and their was another post in there that pointed to this thread.
The second link above describes the new functions to use when accessing links within WordPress. I looked further in the WordPress Codex and looked at the actual function information for wp_list_bookmarks. This is supposedly the new way to list links in the theme as it uses the new database functions and also allows for a ton of customization by passing arguments to the function in the style of wp_list_bookmarks('arg1=foo&arg2=bar');. The arguments are basically passed in the same style you would pass arguments in a URL query string.
So, now all I have to do is find a little time to mess around with the new bookmarks/links/blogroll function to get the output to work with my theme. Hopefully I can jack with it a little this evening and get my blogroll back online.
Until next time…



























January 25th, 2007 at 5:51 PM
I didn’t understand any of that, but I’m sure it was helpful. Anyway, sorry that updating caused problems with your site. I hope you get it all figured out soon.
FromJanuary 25th, 2007 at 10:35 PM
Yeah, me too. I hope to look at it this weekend…
Jeff
FromFebruary 3rd, 2007 at 2:36 PM
[...] just got my blogroll working on this site. I had previously posted a post about WordPress version 2.1 breaking my blogroll because the theme I am using used a reference to a [...]
From