title: Advanced Custom field thumbnail - wordpress
body: <p>I'm working on a website in wordpress, i'm trying to get the thumbnail from the advanced custom field of a post with this:</p>
  
  <pre><code>&lt;?php while ( have_posts() ) : the_post(); ?&gt;
      &lt;h1&gt;&lt;?php the_field('custom_title'); ?&gt;&lt;/h1&gt;
      &lt;img src="&lt;?php the_field('thumbnail'); ?&gt;" alt="" /&gt;
      &lt;p&gt;&lt;?php the_content(); ?&gt;&lt;/p&gt;
  &lt;?php endwhile; // end of the loop. ?&gt;
  </code></pre>
  
  <p>The problem it's that when I load the website, the url the image gets looks like this:</p>
  
  <pre><code>&lt;img src="5, , item_alt2, , , http://portfolio.local/wp-content/uploads/2012/09/item_alt2.jpg, Array"&gt;
  </code></pre>
  
  <p>So, as far as I see, the plugin it's working since looks for the image, but it loads an strange path to it, so it shows like "broken" image.</p>
  
  <p>What i'm doing wrong?</p>
  
  <pre><code> 5, , item_alt2, , , http://portfolio.local/wp-content/uploads/2012/09/item_alt2.jpg, ArrayNULL
  </code></pre>