Quick Edit and Admin Columns Problem
-
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.
- The topic ‘Quick Edit and Admin Columns Problem’ is closed to new replies.