Home › Forums › ACF PRO › Problem retrieving image object from a specific page ID › Reply To: Problem retrieving image object from a specific page ID
Hi James,
Basically, you’ll just need to add an image field to any given page, and choose “Image Array” as the output.
Then, in index.php, try to pull in the image object into a variable, passing the ID of the page you’ve chosen as the second parameter.
You should find that it works inconsistently — sometimes returning just the image ID rather than the object.
Here’s a link to a video that shows my particular situation… probably about as clear as mud. 🙂
https://dl.dropboxusercontent.com/u/51884620/ACF%20Issue.mp4
If you need further detail or code, just let me know.
Thanks!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.