daily gadgets, computers, and electronic news
06/08
2008

How To Fix Wordpress 2.6 Missing Categories Almost Instantly

Sponsored Links

I usually wait a month or two before upgrading my blogs to the new version of Wordpress, but I kinda hook with the cool Turbo function, and so upgraded some of mine to Wordpress 2.6. And that was a big mistake! Apparently, Wordpress 2.6 comes with a very annoying bug — it can make your whole categories and tags AWOL. They are still there, but you just can’t see them. Pretty cool bug, isn’t it?

Thankfully, David Chumps already has the solution for this. You can read his detail instruction for fixing the bugs over here. However, the first step which involved editing database using PHPMyAdmin is kinda tedious, so I tried to figure out the right SQL query to do the job. And here it goes:

UPDATE wp_term_taxonomy,wp_terms SET wp_term_taxonomy.description = wp_terms.name WHERE wp_term_taxonomy.term_id = wp_terms.term_id

This query will automatically fill the description field in wp_term_taxonomy with the right content from wp_terms table. It does save a LOT of time, especially if you have a LOT of categories and tags (I have over a hundred in one of my blog).

Note that in some condition, the content of wp_term table is also messed up, so you won’t be able to use the query above and you must modify wp_term_taxonomy manually like suggested by David. In my case, 20% of the affected blogs have the table messed up.

Hope it helps.

How To Fix Wordpress 2.6 Missing Categories Almost Instantly is written by cosa and posted under WordPress , , , , , . If you like it, you might consider subscribing to our feed, follows us on Twitter, or receive our latest posts via email. Or else, you could also or store it to your favourite social bookmark sites. Further information about this article can be found.

3 Comments »

  1. 1
    How To Fix Wordpress 2.6 Missing Categories | JAUHARI says:

    [...] are so many people faced the same problem and they have solutions also. Funponsel.com gave a quick solution to fix the [...]

  2. 2
    latty says:

    Thank you I ran this on Wordpress 2.7 because its seems like the category and tags issue is still not fixed. I think its worked, so thanks. Do you know if this a permanent fix, or do I need to run it with every few posts?

  3. 3
    Forum Komunitas Tasikmalaya says:

    thanks alot that save my time fixing category on my blog.

Leave a comment