Running newer version of PHP (newer than 5.4, I think) causes errors with the plugin when the plugin is activated and with normal use. Specifically, the functions in the plugin’s class should be specified as static if they are executed statically or reference self
instead of $this
.
Hello,
I was trying to use this together with the Shopp e-commerce plugin and the order column wasn’t showing up on the shopp custom taxonomies.
I managed to solve this by changing the add action in the class construct from:
add_action( 'init', array(&$this, 'init'), 99 );
to
add_action( 'admin_init', array(&$this, 'init'), 99 );
Any chance you could put this in the next update?
Thanks for such a great plugin.
]]>Hi,
First of all, thanks for a great plugin. It’s great to find a custom taxonomy order plugin that actually works and doesn’t use a silly drag and drop page…
There seems to be a conflict with the admin columns and quick edit fields. It’s not preventing the plugin from working but could be potentially confusing to some using the site admin.
The quick edit shows an order field for each additional column that has been added to the taxonomy admin table.
For example I’ve added some meta to my custom taxonomy shopp_departments using (this is in my themes’ functions.php):
// Register the column for departments meta
function department_add_dynamic_hooks() {
$taxonomy = 'shopp_department';
add_filter( 'manage_' . $taxonomy . '_custom_column', 'department_taxonomy_rows', 15, 3 );
add_filter( 'manage_edit-' . $taxonomy . '_columns', 'department_taxonomy_columns' );
}
add_action( 'admin_init', 'department_add_dynamic_hooks' );
function department_taxonomy_columns( $columns ) {
$columns['frontpage'] = __('Front Page', 'rastafairies');
return $columns;
}
function department_taxonomy_rows( $row, $column_name, $term_id ) {
$t_id = $term_id;
$meta = get_option( "taxonomy_$t_id" );
if ( 'frontpage' === $column_name ) {
if ($meta == true) {
return $row . 'Yes';
} else {
return $row . 'No';
}
}
return $row;
}
The above code results in two order fields being shown in the quick edit, while the first does nothing the second receives the value but neither display the currently set value.
I’m also using the Taxonomy Images plugin, which when activated adds yet another order field to the quick edit (as it also adds an admin column).
I’m not sure if this is due to my code (and the taxonomy images code) or the code in this plugin and it’s more of a bug than a real problem. Still I think it needs to be addressed.
Thanks for all the work on this so far, if i can provide you with any more info please let me know.
]]>Any time I use the Quick Edit, the Order field gets cleared. I didn’t notice it when I first set the order on all of my terms, since I was wanting to enter the number myself, but went back to edit the term slug without touching the order and my value for the order had disappeared.
]]>On the fr_FR translation file, “Order” should not be translated in “Commande”, “Ordre” is the most appropriate word.
]]>Hello ?? I’m trying this plugin on a hosting environment and it displays this on top of the page:
Warning: spl_autoload() [function.spl-autoload]: Unable to access k35r0vc.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42
Warning: spl_autoload() [function.spl-autoload]: Unable to access k35r0vc.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42
Warning: spl_autoload() [function.spl-autoload]: Unable to access k35r0vc.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42
Warning: spl_autoload() [function.spl-autoload]: Unable to access k35r0vc.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42
Warning: spl_autoload() [function.spl-autoload]: Unable to access videopress.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42
Warning: spl_autoload() [function.spl-autoload]: Unable to access polldaddyshortcode.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42
Warning: spl_autoload() [function.spl-autoload]: Unable to access k35r0vc.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42
Warning: spl_autoload() [function.spl-autoload]: Unable to access k35r0vc.class.php in /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php on line 42
I can’t open wp-admin too because of the same error and also this error.
Warning: Cannot modify header information - headers already sent by (output started at /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php:42) in /home/stopecom/public_html/wp-login.php on line 362
Warning: Cannot modify header information - headers already sent by (output started at /home/stopecom/public_html/wp-content/plugins/term-menu-order/term-menu-order.php:42) in /home/stopecom/public_html/wp-login.php on line 374
Could any help be provided? Thanks!
https://www.ads-software.com/extend/plugins/term-menu-order/
Hi there,
Just a heads up. I’m running WP 3.4.2 with Term Menu Order 0.4 and Events Manager 5.2.3. When I go to Events > Event Categories and Quick Edit one of the categories, there are two ‘Order’ fields that pop up. If a value has been entered, then neither field is populated with the value.
I don’t know if it’s a problem with other custom taxonomies or just particular to EM.
Works otherwise!
https://www.ads-software.com/extend/plugins/term-menu-order/
]]>I’ve added the translation for Portuguese Brazil (pt_BR) here:
https://github.com/billerickson/Term-Menu-Order/issues/1
Cheers
]]>on “ns_tmo_plugin.class.php” line 25 if you set:
add_action(‘init’, array(&$this, ‘init’), 99); will make sure custom taxonomies are also included if created using “functions.php” and not a plugin.
Thanks,
Alysson Bortoli
https://www.ads-software.com/extend/plugins/term-menu-order/
]]>In NS_TMO_Plugin->deactivate()
, the column “menu_order” gets dropped from the terms table. This means all this data gets thrown away and you need to start over upon reactivation. Shouldn’t it be better to only remove this data when the plugin gets uninstalled?
https://www.ads-software.com/extend/plugins/term-menu-order/
]]>I noticed in term-menu-order.php
a whole block of code is added just for setting up the autoloader functionality for the plugin. In this case, isn’t it over-engineering things? I mean, all you need to load is one class.
A simple require
or include
statement seems enough, and probably faster too. I would be interested to get your view on this. Thanks for a good plugin nevertheless!
https://www.ads-software.com/extend/plugins/term-menu-order/
]]>the menu_order is ignored! ??
]]>