oh I managed it
I created a hidden field like so:
<input type="hidden" id="<?php echo $field[ 'name' ]; ?>" name="<?php echo $field[ 'name' ]; ?>" value="<?php esc_attr( $field[ 'value' ] ); ?>" />
this can store my serialized data which is what I wanted
Repeater can add rows, but how about a variable amount of columns? These can only be pre-defined.
A simple hack could be using conditional logic and make a certain number of columns to appear. Sstill, the max amount has to be predetermined again and also the display of the rows will retain always the max number of columns due to current design constraints – so it won’t be very user friendly.
Thanks Elliot. I’m using extensively ACF in my WooCommerce setup. Now I’m the process of rebuilding the whole cart using ACF and custom forms, because my products have many meta and need specific user inputs. It’d be nice to organize these in the order post, but for this part I might have some limitations. Do you know where I could get freelancer help? Perhaps you could open a forum section just for that.
ps – somewhat related: I’ve read your latest blog post http://www.advancedcustomfields.com/blog/planning-future-thoughts-ideas-version-5/ and I’m very excited about this news. Maybe if you are looking for ideas you could further discuss it with your user base.
seems to work very nicely out of the box
although in the meanwhile I’ve opted to use P2P plugin because it has often a better handling of post relationships than ACF
it allows for reciprocal connections and stores data in its own tables, something that ACF doesn’t have
Yes after some thought I do have plans to write a custom field to upload/link files to cloud storages. It probably won’t take little time, but I think it might be useful. When it’ll be ready I’ll release it on Github and notify you and the community.
I just thought of a possible workaround, which might not be fit for every need but it’d suit any installation, regardless if one is using nginx, apache, etc:
an ACF file upload field / file manager that uploads files to a GoogleDrive, Dropbox or other cloud storage directory via WordPress but without using the Media Uploader, thus not uploading said file in /wp-content/uploads folder.
However it should give a mean to retrieve the file by an admin or someone with proper rights from frontend or wpadmin
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2023 Advanced Custom Fields.