WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Radio Buttons for Taxonomies

Use radio buttons for any taxonomy

Why do the metaboxes have a "No {$taxonomy}" ( ex: No Genre ) radio button!?

This 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' );

Requires: 3.8 or higher
Compatible up to: 3.9.1
Last Updated: 2014-5-13
Downloads: 8,195

Ratings

5 stars
5 out of 5 stars

Support

0 of 2 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

2 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,2,2
100,1,1
0,1,0 100,1,1 100,1,1
100,1,1
100,1,1
100,2,2