title: Wordpress Advanced Custom Fields Array to List Wrapped in HTML
body: <p>I am using wordpress + advanced custom fields</p>
  
  <p>I have a multiple selection checkbox for items from 1-10. </p>
  
  <p>I need to have it so the return array will show a list of the items in bold and with breaks. </p>
  
  <p><strong>Custom field name:</strong> article-name</p>
  
  <pre><code>&lt;?php foreach(the_field('article-name') as $article) {
  echo '&lt;strong&gt;'.$article.'&lt;/strong&gt;&lt;br /&gt;';
  } ?&gt;
  </code></pre>
  
  <p>It displays the array, then gives me an invalid argument warning. <strong>What am I doing wrong?</strong></p>