WordPress Create Category Bug   

Jan 17th, 2011 // In: Easy CSV Importer // By: Comments 0

I think I blogged about this issue many weeks back but I thought I would do it again seeing how the bug in WordPress still exists. The bug is not that categories cannot be created or they are created wrong in some way, it is that they do not always show on the Categories administration page i.e you may create 9 with 6 child categories and only 3 will be displayed. Here is a link to the WordPress Trac where someone else describes the exact same problem and I think they are struggling to convince people that it is a bug.

http://core.trac.wordpress.org/ticket/14471

I opened a ticket on the WordPress forum making it clear that this bug was at least 6 months old, I actually think it is almost a year old. It never happened during the development of CSV 2 POST and did not happen on early versions of Easy CSV Importer. Then WordPress 2.9 or 3.0 came and so did this problem.

http://wordpress.org/support/topic/6-month-old-create-category-bug?replies=0#post-1890691

If you want this issue fixed please comment on the created threads.

Getting Around The Problem

As I already mentioned the bug is to do with categories not being displayed, so they are created and just hidden from site on the Categories page. You will see your categories on the New Post or New Page area as normal so that is alright. To get your categories displaying on the Categories page, you need to create a category manually then deleted it, after you have created categories using Easy CSV Importer.

I should mention that I used to use wp_insert_category to create categories and it worked fine up until a point, a version of WordPress caused it to behave strange. So I switched over to use wp_create_categories and from what I read that is what I’m supposed to use. Overall it’s a bit of a mess in my eyes. When I started getting to know WordPress 2.8, latest version at the time. I could generate categories, up to 4 levels perfectly.

We might need some information sharing here to help solve the problem.

ECI 2 Create Categories

I’ve been working on the functions that deal with this feature on Easy CSV Importer 2, hence this post. It does work great, shame about the WordPress bug still existing in 3.0.4. I have coded the Create Categories Early procedure which helps a lot, to test your selections and confirm the plugin is doing what you need it to.

Tags:

Leave a Reply

You must be logged in to post a comment.