tybruffy / ACF-Reusable-Field-Group

Advanced Custom Fields Plugin to reuse Field Groups
54 stars 16 forks source link

Does not work inside repeater fields #7

Open daltonrooney opened 9 years ago

daltonrooney commented 9 years ago

Thanks for this very cool idea, I've been looking for something like this for a very long time. Unfortunately it seems like reusable field groups don't work inside repeater fields or flexible field groups. I did find a fork of this repo that fixes these issues, perhaps it would be worth working together to generate a pull request? https://github.com/mvpdesign/acf-reusable-field-group

Cheers, Dalton

tybruffy commented 9 years ago

This is an issue referenced in #5. I never gave much thought to using it in a repeater field or flexible content field, it was originally, primarily meant just to display fields on different page layouts/post types easily.

I'd definitely be interested in your help to get a pull request up, because you are not the only one with this issue.

When ACF saves data from a repeater field it saves it like repeater_name_0_subfield_name, and I believe one of the primary issues wen I looked into this before is that it doesn't do that properly for the reusable field.

ghost commented 9 years ago

+1 for the repeater/flexible support :)