This is a plug-in allowed user to bulk create categories with certain input format. Meanwhile, the plugin forces the category display by id.
You can put one category per line.eg:
Chapter One
Chapter Two
Chapter Three
You can also create a hierarchy by placing a slash between categories in one line. eg: Level A / Level B / Level C
If you have a hierarchy like this
Level A - Level B - (Level C/Level D) (level C and level D are both the sub-cateogries of level B)
You can put it either in this way
Level A / Level B / Level C
Level A / Level B / Level D
or this way
Level A / Level B / Level C
Level B / Level D
According to the plugin, the second one will be more efficient.
From version 1.0.2, between each slash, you are allowed to put a delimiter to separate the category name and slug. The plugin will then use the slug to identify different category. Be notice that if the slug is not given, name will also be used as slug. By default, the delimiter is dollar("$"), but you can change it to any character you want, except slash("/").
eg:
input
Level A1 / Level B$level-b1 / Level C$level-c1
Level A2 / Level B$level-b2 / Level C$level-c2
output
Level A1 - Level B - Level C
Level A2 - Level B - Level C
At the version 1.0, I didn't provide a switch for this feature. But if you want to do this, simply open the 'categoryImport.php' file with your notepad. Find the line 100, you should see a line of code like this:
add_filter('get_terms', 'order_category_by_id', 10, 3);
If you find that, put two slash at the beginning of this line:
//add_filter('get_terms', 'order_category_by_id', 10, 3);
Save and close the file. That's it.
Requires: 3.0.0 or higher
Compatible up to: 3.0.5
Last Updated: 2011-5-12
Downloads: 6,340
0 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?