advanced custom fields wordpress image how to use code example
Example: displaying a image background with acf options
<div id="mainPhoto" style="background-image: url(<?php the_field('background_image'); ?>);">
<div id="pageTitle">
<?php the_field('page_title'); ?>
</div>
</div>