WP 2.1 and My Theme Don’t Play Well


WordPress logoI 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…

3 Responses to “WP 2.1 and My Theme Don’t Play Well”

    a gravatar
  1. Jennifer Says:

    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.

    From United States using Mozilla Firefox Mozilla Firefox 2.0.0.1 on Windows Windows XP
  2. a gravatar
  3. Cocoa Crusty Says:

    Yeah, me too. I hope to look at it this weekend…

    Jeff

    From United States using Mozilla Firefox Mozilla Firefox 2.0.0.1 on Mac OS Mac OS X
  4. a gravatar
  5. Cocoa Crusty » Blog Archive » My Blogroll is Back Online Says:

    [...] 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 United States using WordPress WordPress 2.1

Leave a Reply


 

Categories