Should I use a custom post type or a custom taxonomy when creating a relationship?

Question

I’m developing my own event plugin where I want to give the user that creates the event the ability to book different resources (conference rooms, projectors etc) in relation to the event. The user should only be able to book available resources (that are not booked at the same time).

I want to show a simple calendar with events, but I also want to show a calendar for each resource so the users can see when conference room A is available eg.

I have created a custom post type for “Events” with different custom fields for start and end date-time, organizer, event type etc. But I’m in doubt about how I should create the connection to the booking of the resources.

Should it be a relationship field to a “Booking” custom post type or a custom taxonomy (both with meaningful custom fields of course)?

I hope this scenario makes sense!

0
Torben 3 months 2022-05-17T14:42:32-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse