Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to limit the number of taxonomy values in a Wordpress post?

I have defined a series of custom post types (namely "PortfolioPage" and "PortfolioGallery").

Each of them uses a custom taxonomy called "Artist".

Is there any way to limit the end-user to enter AT MOST ONE artist per PortfolioPage / PortfolioGallery post?

like image 845
Francesco Gallarotti Avatar asked Feb 09 '11 04:02

Francesco Gallarotti


1 Answers

You could cause the custom taxonomy to use radio buttons rather than checkboxes, have a look here: https://wordpress.stackexchange.com/questions/7456/altering-the-appearance-of-custom-taxonomy-inputs

like image 133
deadlyhifi Avatar answered Sep 21 '22 18:09

deadlyhifi