Hi @hawaiirealestate,
Thanks for reaching out and sorry to have kept you waiting. It sounds like you want to take the value of one field and split it across four different hidden fields — is that right?
This kind of functionality is outside the scope of the ACF Theme Code plugin but if I were doing something like this, I’d explore the use of ACF’s acf/update_value filter to intercept the value before it is saved to the database and handle it accordingly.
Hope that helps. If you need more guidance on this one, the best place to ask would be the ACF support forums.
Cheers,
Phil
@hawaiirealestate, it seems we’re not understanding each other. Perhaps you are asking how to render hidden HTML input fields using the output of ACF Theme Code. If that’s the case, here are some resources that you might find useful:
PHP’s explode() function can be used to split a string into an array at a specified character. In your case, the character will be ‘-‘.
Given you’ll now have an array of values, you can loop through them using a PHP for or foreach loop. Learn more about loops in PHP here.
Given ACF Theme Code provides boilerplate code for use in a template, you are free to add any code you need to render your fields to suit your application. If you need to render hidden fields, you could echo the markup needed within your PHP loop. If you are unsure of how to write hidden HTML fields, you can learn about the required markup here.
If you don’t feel confident to implement these concepts, I suggest sourcing a developer to help you.
Cheers,
Phil