title: Displaying different images with advanced custom fields
body: <p>I want to show two different images between the home page e the other page. To do that I'm using Advanced Custom Fields.</p>
  
  <p>In my header.php i have this:</p>
  
  <pre><code>&lt;?php
  
  $image = get_field('banner');
  
   if ( is_home() ) { ?&gt;
          &lt;div class="container-fluid container-first-image" style="background-image: url('&lt;?php echo $image['url']; ?&gt;'); background-repeat:no-repeat; background-position:bottom; background-size:cover; height:550px; color:white; font-family:'Alegreya Sans', sans-serif; font-weight:700; text-align:center; margin:0; padding:0; width:100%;"&gt;&lt;?php }
      else { ?&gt;&lt;div class="container-fluid" style="background-image: url('&lt;?php echo $image['url']; ?&gt;'); background-repeat: no-repeat ;background-position: center; background-size: cover; height: 350px; color: white; font-family: 'Alegreya Sans', sans-serif; font-weight: 700; text-align: center; margin: 0; padding: 0; width: 100%;"&gt;&lt;?php } ?&gt;
  </code></pre>
  
  <p>Using this code my home page shows up the latest image I've uploaded in a post instead of the image i want to show. In other page all works fine.</p>
  
  <p>In Settings --> Reading I've checked "Your Latest Post" in "Front Page Displays" item</p>
  
  <p>How can i fix this?</p>