Doesn’t work in yarpp template
-
Hi,
As I have run out of ideas I will try to ask here for help.
I have this piece of code that displays image:
$grafikaPolecane = get_field('okladka_wpisu'); <img class="lazy okladkaWpisu" data-src="<?php echo $grafikaPolecane['sizes']['malyNews']; ?>" alt="<?php echo $grafikaPolecane['alt']; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" />I use it in many places like single, archive and YARPP Template file.
All worked fine, till some update (don’t know which one).Now this code doesn’t work in YARPP template, leaving empty spaces.
Var dump shows this : string(52) “{“original_image”:”116548″,”cropped_image”:”116548″}”
Tried adding post id to acf field, no change.Any idea ?
The topic ‘Doesn’t work in yarpp template’ is closed to new replies.