• Resolved tmarnell

    (@tmarnell)


    My organization is using categories in Connections to track active group memberships. We need a repeatable field group in our custom metabox to record membership in previous years for reporting, like:

    1) Category (Select)
    2) Start Date (Datepicker)
    3) End Date (Datepicker)

    In the metabox API class, I see a case for ‘repeatable’ in the switch for field type, but when I attempt to create a repeatable field with subfields, WordPress prints out the error “Warning: Invalid argument supplied for foreach() in class.metabox-api.php on line 845”.

    How can I set up the metabox to have a repeatable set of fields like this?

Viewing 1 replies (of 1 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    The repeatable fields option in the Metabox API is not complete and has not had work on it in years due to the lack of interest or need. It’s basically just a skeleton that is probably best removed.

    You can still accomplish what you want. I suggest using the Open Hours addon as an example. It has repeatable fields for each day of the week.

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Metabox with Repeatable Fields’ is closed to new replies.