Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Change the 'column_value()' function to this to fix filter conflicts.
- */
- function column_value($column_values, $custom_column, $term_id)
- {
- echo $column_values; // Echo the current values for custom columns, otherwise they will all be lost.
- if($custom_column === 'order') : // Check that this column is the 'order' column, otherwise all other values will be over-written.
- return get_term_meta($term_id, 'tax-order', true);
- endif;
- }
- /**
- * Add this to the CSS so that the column is not unnecessarally wide.
- */
- th.column-order, td.column-order, #order{
- text-align: center;
- width: 50px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement