title: Illegal string offset for 'url' when using WordPress Advanced Custom Fields
body: <p>I am converting a Bootstrap template into a WordPress theme.</p>
  
  <p>For custom fields I am using the plugin <strong><a href="https://wordpress.org/plugins/advanced-custom-fields/" rel="nofollow">Advanced Custom Fields</a></strong>. The issue is when I am trying to add an image with the help of <strong>Advanced Custom Fields</strong>, I get the following error:</p>
  
  <blockquote>
    <p>Warning: Illegal string offset 'url' in C:\wamp64\www\my-site\wordpress\wp-content\themes\bootstraptowordpress\page-home.php on line 31</p>
  </blockquote>
  
  <p>However when I am adding text through this plugin it shows <strong>no error</strong>.</p>
  
  <p>I have no other plugins installed other than ACF.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$home_page_logo = get_field('home_page_logo');
  
  &lt;div class="front_logo"&gt;
  
     &lt;?php if( !empty($home_page_logo)): ?&gt;
  
        &lt;img src="&lt;?php echo $home_page_logo['url']; ?&gt;" alt="&lt;?php  echo $home_page_logo['alt']; ?&gt;" /&gt;
  
     &lt;?php endif; ?&gt;
  
   &lt;/div&gt;
  </code></pre>