WordPress / meeting-calendar

The plugin powering https://make.wordpress.org/meetings/
https://make.wordpress.org/meetings/
GNU General Public License v3.0
36 stars 11 forks source link

Make teams a taxonomy with meta data #124

Open hlashbrooke opened 3 years ago

hlashbrooke commented 3 years ago

Teams are currently selected by the user typing the team name in a free text field, and then the event colour and label are assigned based on the content of that field. This means that a typo would mean that the team and colour would not be displayed on the frontend.

This should be updated to use a taxonomy - this would remove the room for error and make it easier for people to select the team.

The colour for each team is currently hardcoded into the plugin CSS, but if we use a taxonomy then the colour could be a taxonomy meta field that accepts a hex value. This would mean that you wouldn't need any code changes when adding a new team and it would make this plugin more generic and reusable elsewhere.