Timeline for Dynamically add / duplicate custom meta in custom post types
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 15, 2012 at 11:36 | answer | added | Yoosuf Mo | timeline score: 1 | |
Nov 4, 2011 at 19:52 | vote | accept | unfulvio | ||
Nov 2, 2011 at 18:06 | answer | added | unfulvio | timeline score: 2 | |
Nov 2, 2011 at 8:46 | history | edited | unfulvio |
edited tags
|
|
Nov 2, 2011 at 8:37 | comment | added | unfulvio | Yes. I know how to create a standard meta box, but I want to add dynamically new fields and fieldsets from backend admin. Imagine there's a fieldset with fields "room" and "room price", how to add more rooms and prices (more fieldsets) with an "add another room" button? I suppose data could be saved in an array, I just wanted to know if there was some ready solution, plugin to be used or some guide I could use to learn how to. Thanks | |
Nov 1, 2011 at 14:34 | comment | added | sanchothefat | I'm not entirely sure what you're asking still. Do you need to know how to create additional meta boxes on the custom post type edit screen or how to save the post meta or something else? Are you asking how best to build the form for entering the information? | |
Nov 1, 2011 at 14:25 | comment | added | unfulvio | I see, but the seasons wouldn't be the same for every entry. Each "accommodation" entry could have theirs. Anyway, back to the original question to add/duplicate custom metas in general, is there a straight answer to this? (suppose the meta is just a simple string of text... let's forget about dates, since they involve datepickers and perhaps this complicates things as you also point out) - thanks ! | |
Nov 1, 2011 at 13:05 | comment | added | sanchothefat | There's a lot going on to answer here so I'd think about breaking it up a bit. In a nut shell you need to look into date pickers that can let you define the seasons via a settings page and then think about using taxonomies to categorise the different rooms. | |
Nov 1, 2011 at 9:50 | history | asked | unfulvio | CC BY-SA 3.0 |