Home › Forums › ACF PRO › Illegal string offset › Reply To: Illegal string offset
@hube2 Hi man! How would I solve the same problem for an gallery field?
I use
<?PHP if(get_field('fotos')) : $images = get_field('fotos'); ?>
<img src="<?php echo $images[0][sizes][home]; ?>" alt="" />
<?PHP endif; ?>
And [08-Aug-2017 16:29:17 UTC] PHP Warning: Illegal string offset ‘home’ in
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.