• Is there a way to use this image functionality for images included in a custom theme, instead of loaded through the_content()?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Felix Arntz

    (@flixos90)

    The plugin should actually transform attributes for any image rendered with the WordPress function wp_get_attachment_image(). Have you tried that, or are you using another method to print images in your theme?

    Thread Starter Creative Slice

    (@creativeslice)

    Thanks Felix. What about when using images from custom fields like this ACF:

    
    $image = get_field('image');
    <img src="<?php echo $image['sizes']['large']">

    Is there a way to have the lazyloading plugin work with those images too?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use for theme images?’ is closed to new replies.