Multiple dates in custom fields - best architecture? (1 post)

  1. skylenewman
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic