Support » Plugins » Hacks » Multiple dates in custom fields – best architecture?

  • I have a client that has classes/workshops. Some are one day, some are multiple days (usually random days). The client wants to show these dates in loops and on the class posts.

    I was thinking that I could add a custom meta box, with X number of text inputs with the same name, then hide/show with jQuery (for better UX). I would also hide the default Custom Meta box from the UI. Then, store the datestamp in postmeta as a string.

    On the front end, grab the custom fields via post id, convert datestamp to date, and print.

    Is this the best way to get the desired result?

  • The topic ‘Multiple dates in custom fields – best architecture?’ is closed to new replies.