Crocoblock / suggestions

The suggestions for CrocoBlock project
191 stars 78 forks source link

Restrict custom taxonomy selection on custom post types #4082

Open Ssendam0101 opened 2 years ago

Ssendam0101 commented 2 years ago

Currently, taxonomy for custom posts is set on the right panel where all the other meta data is. In ACF and CPT UI Plugin, I can hide this section and also cause the taxonomy selection to be listed using the selection field type.

The reason this is helpful is: 1.) The user who doesn't look at the right panel is more easily able to see this selection with all the other fields. 2.) I can make sure the user can only select one taxonomy category for the custom post type.

An example of this is making a form for a team member or job application. I have a custom taxonomy of "Department". I don't want the team member to be in two departments and I want the user to be able to easily see where this lives.

Suggestion:

Floydtm commented 2 years ago

Could you add screenshots or videos to your request. Thank you!

Ssendam0101 commented 2 years ago

Sure thing - image below:

image

With ACF, you can hide the section on the right so it doesn't show up. Then with a selector field (or radio), I can have those options show up in the main form section so that users see it more easily and I can ensure that the post only has one custom taxonomy picked.