While creating a post, can I restrict the authors in the dropdown list based on their user role?

Question

I am running an online course website. The user roles include student, teacher etc. I’ve got 5 teachers so far, but the students are 200+.
When I am creating a course(with a custom post type “course”) as a super user, I need to select one of the teachers as the author. But since there are 200+ people in the author dropdown list it’s quite time-consuming to find the right one.
How can I make it so that when creating a course post only users with the role “teacher” will be shown in the author’s dropdown list?

0
shenkwen 2 weeks 2022-01-11T14:21:52-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse