Support

Account

Home Forums General Issues Image field used in template not always returning image url Reply To: Image field used in template not always returning image url

  • Hi @ambrosegladwell

    Since your code is not in the loop it might also be a good idea to send the page ID along with it.

    
    <?php global $post; ?>
    <div class="parallax-bg medium-parallax-bg" data-stellar-background-ratio="0.4" style="background-image: url(<?php echo get_field('featured_header_image', $post->ID); ?>)">