Home › Forums › General Issues › Querying a subfield to retrieve an image › Reply To: Querying a subfield to retrieve an image
Hi @jonnyboggon
I’m afraid I don’t quite understand the issue, so please forgive me if I’m wrong.
The string you got is called serialized string. You can convert it to an array by using the unserialize() function like this:
$image_ids = unserialize($image_id);
$cropped_id = $image_ids['cropped_image']
Because this is more related to PHP, for further support kindly get in touch with PHP community.
If that’s not what you want, could you please explain the issue again in more detail?
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.