Support

Account

Home Forums General Issues Use JetPack's Photon CDN for Image fields Reply To: Use JetPack's Photon CDN for Image fields

  • Hi!

    Could someone help me out with getting photon working for me. My code for ACF images looks like this:

    <div id="section-2" class="wrapper">
    <div class="wrapper2">
    <?php echo wp_get_attachment_image(get_field('hero_image_2'), 'full', 0, array('class' => 'bilder2')); ?>
    </div>
    </div>

    I understand that I need to add
    apply_filters( 'jetpack_photon_url')
    but I’m not really sure how.

    Much appreciate some help!