<?php
$image = get_field('image');
if( !empty($image) ): ?>
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
<?php endif; ?>
The only way around 8t was to not check lazy loading at all 🙂
I added a more comprehensive description here: https://github.com/alexdobras-at-office/acf_relational_selection_boxes
with pictures and code, please help 🙂
Hi, could you tell me what is 10 & 3 from
add_filter( 'acf/fields/post_object/query/name=my_field', [ $this, 'my_filter' ], 10, 3 );
Actually it’s very easy:
in a particular field group go to Screen Options and check slug and Field Keys so they will appear on screen.