Advanced Custom Field User Help URL

I have this exact thing working on a current project.

Here’s the code:

<div class="photo-feature" style="background: url(<?php the_field('the-image', $page->ID) ;?>) no-repeat center center; "></div>

Keep in mind a couple of things:

  1. You may need to use $post->ID or $page->ID if you’re using a custom query.
  2. Make sure you’re not overriding your background CSS anywhere else (use inspector to double check)

Finally – you should take the single quotes out of your inline CSS.

style: url(path) not style: url('path')