{"id":11955,"date":"2011-02-01T19:32:45","date_gmt":"2011-02-01T19:32:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/category-import\/"},"modified":"2011-05-12T19:46:33","modified_gmt":"2011-05-12T19:46:33","slug":"category-import","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/category-import\/","author":7554198,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"v1.0.2","stable_tag":"1.0.2","tested":"3.0.5","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"Category Import","header_author":"Jiayu (James) Ji","header_description":"","assets_banners_color":"","last_updated":"2011-05-12 19:46:33","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/category-import\/","header_author_uri":"https:\/\/sites.google.com\/site\/jiayuji\/","rating":4.2,"author_block_rating":0,"active_installs":20,"downloads":10945,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"4"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1538864","resolution":"2","location":"plugin"},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1538864","resolution":"1","location":"plugin"}},"screenshots":[]},"plugin_section":[],"plugin_tags":[3236,610,89,87],"plugin_category":[57,59],"plugin_contributors":[79542],"plugin_business_model":[],"class_list":["post-11955","plugin","type-plugin","status-closed","hentry","plugin_tags-bulk","plugin_tags-categories","plugin_tags-category","plugin_tags-import","plugin_category-taxonomy","plugin_category-utilities-and-tools","plugin_contributors-jamc","plugin_committers-jamc"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/category-import.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/category-import\/trunk\/screenshot-1.jpg?rev=1538864","caption":""},{"src":"https:\/\/ps.w.org\/category-import\/trunk\/screenshot-2.jpg?rev=1538864","caption":""}],"raw_content":"<!--section=description-->\n<p>This is a plug-in allowed user to bulk create categories with certain input format. Meanwhile, the plugin forces the category to display by id.<\/p>\n\n<!--section=installation-->\n<p>1.Download the plugin and expand it if necessary.<\/p>\n\n<p>2.Create a folder named 'CategoryImport'under the plugin folder(wp-content\/plugins\/) and copy the file 'category-order.php' into it.<\/p>\n\n<p>3.Login into the WordPress administration area and go to the plugin page.<\/p>\n\n<p>4.Click the activate link of the 'Category Import' plugin.<\/p>\n\n<p>5.You can go to Posts -&gt; Category Import and import the categories.<\/p>\n\n<p>6.This plugin also force the category to be displayed ordered by id. In other word, it may cause other plugin which allows you to reorder the category ineffective.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>1.How can I import categories?<\/dt>\n<dd><p>You can put one category per line.eg:<\/p>\n\n<p>Chapter One<\/p>\n\n<p>Chapter Two<\/p>\n\n<p>Chapter Three<\/p>\n\n<p>You can also create a hierarchy by placing a slash between categories in one line.\neg: Level A \/ Level B \/ Level C<\/p>\n\n<p>If you have a hierarchy like this<\/p>\n\n<p>Level A - Level B - (Level C\/Level D) (level C and level D are both the sub-cateogries of level B)<\/p>\n\n<p>You can put it either in this way<\/p>\n\n<p>Level A \/ Level B \/ Level C<\/p>\n\n<p>Level A \/ Level B \/ Level D<\/p>\n\n<p>or this way<\/p>\n\n<p>Level A \/ Level B \/ Level C<\/p>\n\n<p>Level B \/ Level D<\/p>\n\n<p>According to the plugin, the second one will be more efficient.<\/p><\/dd>\n<dt>2.How to import subcats with the same name<\/dt>\n<dd><p>From version 1.0.2, between each slash, you are allowed to put a delimiter to separate the category name and slug.\nThe 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.\nBy default, the delimiter is dollar(\"$\"), but you can change it to any character you want, except slash(\"\/\").<\/p>\n\n<p>eg:<\/p>\n\n<p>input<\/p>\n\n<p>Level A1 \/ Level B$level-b1 \/ Level C$level-c1<\/p>\n\n<p>Level A2 \/ Level B$level-b2 \/ Level C$level-c2<\/p>\n\n<p>output<\/p>\n\n<p>Level A1 \n      - Level B \n              - Level C<\/p>\n\n<p>Level A2\n      - Level B\n              - Level C<\/p><\/dd>\n<dt>3.Can I remove the order by id feature?<\/dt>\n<dd><p>At the version 1.0, I didn't provide a switch for this feature.\nBut if you want to do this, simply open the 'categoryImport.php' file with your notepad.\nFind the line 100, you should see a line of code like this:<\/p>\n\n<p>add_filter('get_terms', 'order_category_by_id', 10, 3);<\/p>\n\n<p>If you find that, put two slash at the beginning of this line:<\/p>\n\n<p>\/\/add_filter('get_terms', 'order_category_by_id', 10, 3);<\/p>\n\n<p>Save and close the file. That's it.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>slug editing allowed. This feature is made to support importing subcats with the same name under different categories. <\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Preview was added. Now you can have a preview after you paste the category data into the textarea to see whether your format is appropirate.<\/li>\n<\/ul>","raw_excerpt":"This is a plug-in allowed user to bulk create categories with certain input format. Meanwhile, the plugin forces the category to display by id.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11955"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jamc"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11955"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11955"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11955"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11955"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11955"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}