<div id="mainPhoto" style="background-image: url(<?php the_field('background_image'); ?>);"> <div id="pageTitle"> <?php the_field('page_title'); ?> </div> </div>