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!
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.