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
I will use php or javascript to build a table based on the serialized data stored in the hidden field value
Oh yeah that would definitely be another way to make it work (or nested repeaters perhaps), but visually isn’t too friendly, is it? I mean if the table has many cells that is.
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
http://wordpress.org/plugins/posts-to-posts/
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.
Cheers
wow, thanks, I will try it out and send some feedback here or github
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
+1, if you plan to develop a solution can contribute on GitHub
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.