Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments: Include fields in acf-gallery items and generically #5

Open
mhrisse opened this issue Dec 5, 2014 · 1 comment
Open

Comments

@mhrisse
Copy link
Contributor

mhrisse commented Dec 5, 2014

@PanManAms ,

following up on my last PR, I am wondering how we can explain to ACF that it is a great idea to include the ACF fields strapped to an attachment also within a acf-gallery field (and even a acf-gallery field nested in a flexible content field).

Example:

https://www.evernote.com/shard/s97/sh/d31acdac-021f-4041-9ec4-df63c10b12d3/60dc0303002cf1b1209cf2600daf309c

Ideally we find a generic solution that takes care of that for all kinds of nesting.
Any ideas appreciated.

@elliotcondon
Copy link

Hi @mhrisse

This could be achieved by hooking into the acf/format_value/type=gallery filter (http://www.advancedcustomfields.com/resources/acfformat_value/).

This filter will allow you to customize the returned data from ACF and you can load in the extra custom fields to the $value array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants