-
Notifications
You must be signed in to change notification settings - Fork 101
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
ACF Options page #48
Comments
@omzy83 no no, for ACF stuff only use |
@jgrossi I think you misunderstood... I created the gallery in the Options page because it will be used on different pages on the site. I.e the same gallery with the same images reused across different pages. |
@omzy83 hum good call, I don't think we already have |
As a workaround for now, I have done this which seems to work:
|
@omzy83 cool, but maybe we can think in a general method to handle this. |
@jgrossi hey has this moved forwards at all? would really like to use this in a active project! |
@OwenMelbz not actually, maybe someone can create a PR for that? |
I am currently working on a pr for this, unfortunately it requires a bunch of changes. The more complex fields like repeater or even image need to retrieve additional data from wp_posts and wp_postmeta. The logic for this is currently in the single field classes. The acf option page stores its data in wp_options though, that's why its not working with the current approach. |
How do we retrieve values from an Options page?
https://www.advancedcustomfields.com/resources/options-page/
I added a gallery field within an options page, when I do
Option::get('gallery')
it outputs an array (which is correct), however that array only containskey => value
pairs, like this:How do I get the actual images?
The text was updated successfully, but these errors were encountered: