title: Wordpress custom post type: returning *all* values of a multiple select list field
body: <p>I am echoing all the custom field values from a custom post type (created with <em>Pods</em>) within the Wordpress loop in a dedicated php template (no Pods template). This works for all custom fields except for a <code>relationship / simple / multiple selection list</code> field. There only the first one of the multiple selected values is echoed/returned.</p>
  
  <p>I am using this code in the php template:</p>
  
  <pre><code>while ( have_posts() ) : the_post();
    $title = get_the_title();
    $image = get_the_post_thumbnail();
    $location = get_post_meta(get_the_id(), 'location', true);
    $types = get_post_meta(get_the_id(), 'types', true);
    etc.
  </code></pre>
  
  <p>Later on I am echoing all these values. The field I have the problem with is <code>types</code>:</p>
  
  <p>When I echo <code>$types</code>, only the first selected value of that field is echoed/returned. I thought it  would probably be an array and tried <code>print_r($types)</code> to check that, but that also only displays one (the first selected) key/value pair, no array.</p>
  
  <p>The field selection type is <code>multiple-select</code>, the format <code>checkboxes</code>, if that’s of any relevance.</p>
  
  <p>Any ideas what I can do to get and display all selected values of that field?</p>