Replace the default taxonomy boxes with a custom metabox that uses radio buttons... effectively limiting each post to a single term in that taxonomy.
Replace the default taxonomy boxes with a custom metabox that uses radio buttons… effectively limiting each post to a single term in that taxonomy.
A plugin options page allows the user can select which taxonomies she’d like to switch to using the custom radio-button style metabox.
Originally based on the the class by Stephen Harris
Support is handled in the WordPress forums. Please note that support is limited and does not cover any custom implementation of the plugin. Before posting a question, read the FAQ and confirm that the problem still exists with a default theme and with all other plugins disabled.
Please report any bugs, errors, warnings, code problems to Github
plugin
folder to the /wp-content/plugins/
directoryThis was a feature added in version 1.4, but due to some faulty logic on my part probably wasn’t showing it everywhere that I intended.
It has come to my attention that not everybody likes this feature, so I have enabled an easy way to disable it for taxonomies that you wish to make mandatory. Simply add the following to your theme’s functions.php or your site’s custom functions plugin.
add_filter( "radio_buttons_for_taxonomies_no_term_{$taxonomy}", "__return_FALSE" );
So for example, to disabled the “No term” option on a taxonomy called “genre” you’d do the following:
add_filter( 'radio_buttons_for_taxonomies_no_term_genre', '__return_FALSE' );
Removed ‘tabify_add_meta_boxes’ action, as it is doubled by do_action( ‘add_meta_boxes’)in settings-posttype.php of Tabify Edit Screen.
get_all_taxonomies()
which allows for private taxonomies to be saved in options if they’ve been added via filtermanage_{$post_type}_posts_custom_column
, etc"manage_taxonomies_for_{$post_type}_columns"
doesn’t do anything to quickedit, so removeddisable_ui()
method in favor of adding to manage_{$post_type}_posts_custom_column
hook$wp_taxonomies
variableshow_admin_column
argument when registering taxonomy