{"id":26900,"date":"2013-12-24T21:03:25","date_gmt":"2013-12-24T21:03:25","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/i-order-terms\/"},"modified":"2025-12-14T14:43:39","modified_gmt":"2025-12-14T14:43:39","slug":"i-order-terms","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/i-order-terms\/","author":7489766,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.3","stable_tag":"1.5.3","tested":"6.9.4","requires":"3.5","requires_php":"5.6","requires_plugins":null,"header_name":"I Order Terms","header_author":"Igor Jerosimic","header_description":"","assets_banners_color":"","last_updated":"2025-12-14 14:43:39","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/i-order-terms\/","header_author_uri":"http:\/\/igor.jerosimic.net\/","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":21240,"num_ratings":11,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"x64igor","date":"2013-12-28 14:02:19"},"1.1.0":{"tag":"1.1.0","author":"x64igor","date":"2013-12-28 14:02:19"},"1.2.0":{"tag":"1.2.0","author":"x64igor","date":"2014-01-03 09:14:35"},"1.3.0":{"tag":"1.3.0","author":"x64igor","date":"2014-04-16 19:37:30"},"1.3.1":{"tag":"1.3.1","author":"x64igor","date":"2015-11-24 23:57:59"},"1.4.0":{"tag":"1.4.0","author":"x64igor","date":"2016-12-10 00:30:30"},"1.5.0":{"tag":"1.5.0","author":"x64igor","date":"2019-07-02 22:49:01"},"1.5.1":{"tag":"1.5.1","author":"x64igor","date":"2025-11-07 18:36:46"},"1.5.2":{"tag":"1.5.2","author":"x64igor","date":"2025-11-11 12:22:44"},"1.5.3":{"tag":"1.5.3","author":"x64igor","date":"2025-12-14 14:43:39"}},"upgrade_notice":{"1.5.3":"<ul>\n<li>Declared support for WordPress 6.9<\/li>\n<\/ul>","1.5.2":"<ul>\n<li>Fixed version label<\/li>\n<\/ul>","1.5.1":"<ul>\n<li>Add nonce for AJAX requests to prevent CSRF attacks<\/li>\n<li>Force AJAX message as text content<\/li>\n<\/ul>","1.5.0":"<ul>\n<li>Added check\/uncheck all checkbox in options<\/li>\n<\/ul>","1.4.0":"<ul>\n<li>Minified assets and fixed text domain usage<\/li>\n<\/ul>","1.3.1":"<ul>\n<li>Shows taxonomy name next to taxonomy label in plugin settings<\/li>\n<\/ul>","1.3.0":"<ul>\n<li>Sort (drag&amp;drop) is now available right after you add new term, no need to refresh page like before<\/li>\n<\/ul>","1.2.0":"<ul>\n<li>Settings page rewritten and drag &amp; drop now able to change parent of dragged item<\/li>\n<\/ul>","1.1.0":"<ul>\n<li>Added settings page for plugin<\/li>\n<\/ul>","1.0.0":"<ul>\n<li>Initial release<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":11},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3393636,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3393636,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.2.0","1.3.0","1.3.1","1.4.0","1.5.0","1.5.1","1.5.2","1.5.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3393636,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3393636,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"The screenshot of Category section after drag and drop reorder operation.","2":"Settings section where you can select which taxonomy should be sortable."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1896,4644,91,1901],"plugin_category":[57],"plugin_contributors":[82339],"plugin_business_model":[],"class_list":["post-26900","plugin","type-plugin","status-publish","hentry","plugin_tags-order","plugin_tags-sort","plugin_tags-taxonomy","plugin_tags-terms","plugin_category-taxonomy","plugin_contributors-x64igor","plugin_committers-x64igor","plugin_support_reps-x64igor"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/i-order-terms\/assets\/icon-128x128.png?rev=3393636","icon_2x":"https:\/\/ps.w.org\/i-order-terms\/assets\/icon-256x256.png?rev=3393636","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/i-order-terms\/assets\/screenshot-1.png?rev=3393636","caption":"The screenshot of Category section after drag and drop reorder operation."},{"src":"https:\/\/ps.w.org\/i-order-terms\/assets\/screenshot-2.png?rev=3393636","caption":"Settings section where you can select which taxonomy should be sortable."}],"raw_content":"<!--section=description-->\n<p>Plugin can be used for reordering categories, tags and custom taxonomies. This plugin is primarily intended as an aid to theme developers.<\/p>\n\n<p>Plugin supports multisite installation.<\/p>\n\n<h4>Requirements<\/h4>\n\n<p>The minimum requirement is that you have at least WordPress 3.5 installed.<\/p>\n\n<h4>Example usage<\/h4>\n\n<p><strong>Fetching sorted terms from a custom taxonomy will be enabled by default:<\/strong><\/p>\n\n<pre><code>$terms = get_terms( 'your-taxonomy-name' );\n<\/code><\/pre>\n\n<p><strong>If you wish to sort by name (disable plugin's custom sorting) you will have to set 'i_order_terms' to 'false':<\/strong><\/p>\n\n<pre><code>$terms = get_terms( 'your-taxonomy-name', 'i_order_terms=0' );\n<\/code><\/pre>\n\n<h4>Warning<\/h4>\n\n<p>Plugin adds a new column to the 'term_taxonomy' table, make sure to backup your database before installing. Column is removed when you delete the plugin.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>You can download and install \"I Order Terms\" plugin by using the built-in WordPress plugin installer. Or you can upload plugin folder \"i-order-terms\" manually to your \"\/wp-content\/plugins\/\" directory.<\/li>\n<li>Activate the plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>You will need to enable plugin for taxonomy that you wish to sort.<\/li>\n<\/ol>\n\n<h4>Enabling plugin for taxonomy<\/h4>\n\n<p>You can use the settings page or add code in your function file. There are two options you can use to make taxonomy sortable:<\/p>\n\n<p>1) You can enable sorting when registering taxonomy:<\/p>\n\n<pre><code>register_taxonomy( 'your-taxonomy-name', 'your-post-type', array(\n    'label' =&gt; __('Category'),\n\n    \/\/ this parameter is used to enable\n    \/\/ sorting for taxonomy 'your-taxonomy-name'\n    'i_order_terms' =&gt; true,\n));\n<\/code><\/pre>\n\n<p>2) Other option is to pass an array of taxonomies (or tags\/categories) via filter \"i_order_terms_taxonomies\" in your functions file like this:<\/p>\n\n<pre><code>function custom_i_order_terms_taxonomies($taxonomies) {\n    $taxonomies = array_merge($taxonomies, array('taxonomy', 'category'));\n    return $taxonomies;\n}\nadd_filter('i_order_terms_taxonomies', 'custom_i_order_terms_taxonomies');\n<\/code><\/pre>\n\n<p>This will enable taxonomy sorting for 'taxonomy' and 'category' taxonomies.\nNaturally, you will have to provide your taxonomy names.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='will%20this%20work%20on%20wordpress%20multisite%3F'><h3>Will this work on WordPress multisite?<\/h3><\/dt>\n<dd><p>Yes, it will work on multisite installation.<\/p><\/dd>\n<dt id='what%20permissions%20are%20required%20for%20users%20to%20reorder%20terms%3F'><h3>What permissions are required for users to reorder terms?<\/h3><\/dt>\n<dd><p>User needs to have \"manage_categories\" permission to be able to order terms.<\/p><\/dd>\n<dt id='where%20can%20i%20report%20a%20bug%3F'><h3>Where can I report a bug?<\/h3><\/dt>\n<dd><p>You can report bugs from the contact form on my website at <a href=\"https:\/\/www.igorware.com\/contact?referrer-ver=I-Order-Terms\">https:\/\/www.igorware.com\/contact<\/a>.\nPlease make sure to include plugin version when reporting bugs.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.5.3<\/h4>\n\n<ul>\n<li>Declared support for WordPress 6.9<\/li>\n<\/ul>\n\n<h4>1.5.2<\/h4>\n\n<ul>\n<li>Fixed version label<\/li>\n<\/ul>\n\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>Add nonce for AJAX requests to prevent CSRF attacks<\/li>\n<li>Force AJAX message as text content<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<ul>\n<li>Added check\/uncheck all checkbox in options<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>Minified CSS and JS assets<\/li>\n<li>Fixed text domain usage<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Shows taxonomy name next to taxonomy label in plugin settings. This should avoid confusion when there are several taxonomies with same label<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Sort (drag&amp;drop) is now available right after you add new term, no need to refresh page like before<\/li>\n<li>Improved security by preventing directory browsing<\/li>\n<li>Removed screenshots from plugin folder, this should save you some bandwidth :)<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added a link to settings on plugin page<\/li>\n<li>Settings page completely rewritten to use WordPress Settings API<\/li>\n<li>Drag &amp; drop can now be done in different levels i.e. you can now change parent of dragged item<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Added settings page for plugin<\/li>\n<li>Removed limitation of accepting only one taxonomy when using functions like get_categories and get_terms<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Allows theme developers to add order\/sort functionality for categories, tags and custom taxonomies.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26900"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/x64igor"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26900"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26900"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26900"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26900"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26900"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}