helgatheviking / Radio-Buttons-for-Taxonomies

Turn any WordPress taxonomy into a list of radio buttons, which forces users to select only 1 term!
53 stars 28 forks source link

[Feature Request] Make 'em required #60

Open leymannx opened 5 years ago

leymannx commented 5 years ago

Dear Kathy,

I'm wondering if the following feature would be a desirable thing to have and if you think this would be difficult to implement:

helgatheviking commented 5 years ago

@leymannx That's a good idea... have gotten it before( see #6 ). But it's not something I will be able to add any time soon. I am open to PRs though!

It would probably also require changing the admin UI so that each taxonomy's settings are saved as taxonomy meta instead of in a Rb4t-specific admin page. Someone suggested that in the forums, but for a single option, it didn't make sense. As you begin to add options, it makes more sense.

Currently there's a radio_buttons_for_taxonomies_no_term_$taxonomy filter that allows you to remove the "no term" option (not sure if that even still works after the Gutenberg compat was added). I'm not sure how a required status would effect that. Should required remove the "no term" option automatically?

jaboi commented 4 years ago

This plugin appears to be compatible with Radio Buttons for Taxonomies: https://wordpress.org/plugins/required-taxonomies/

helgatheviking commented 6 months ago

Could I get your feedback on the layout proposed in #110