Skip to main content
edited tags
Link
unfulvio
  • 1.8k
  • 7
  • 32
  • 63
Source Link
unfulvio
  • 1.8k
  • 7
  • 32
  • 63

Dynamically add / duplicate custom meta in custom post types

I am using Custom post types in one of my themes

I have one custom post type called "accommodation" with meta boxes to add details such as type of rooms (single, twin, double...); each room has a price according to different season (high season, low season, peak season - each could be ). However the room types could differ among individual "accommodation" post entries (suppose one has a room called "de luxe", another has a room type "budget", not just single, twin double), and not all entries have the same rooms (ie some could not have a "dorm" type), therefore the admin should be able to manually insert different types of rooms. Each room should have a price too. And each room could have price variation according to season. Season period should be defined with a range date picker. Additionally, there could be multiple high/low season within the year.

How would you arrange this?

thanks a lot for any help!