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!
I will answer myself after some research 🙂
while there might be appropriate ways of coding this with some custom function, for me there’s no need to reinvent the wheel when there’s a neat plugin that does the job
it’s called “advanced custom fields”
http://wordpress.org/extend/plugins/advanced-custom-fields/
it has a “repeater” to let admins add more fields dynamically
it also manages datepicks and fieldsets… basically everything I need!
hope this is helpful to others
You must have a look at http://wordpress.org/extend/plugins/custom-fields-creator/
not neat as “advanced custom fields” but it does the job and its free of charge as well.
Hope it will be useful for others