title: Wordpress get_post_metadata() returns serialized array
body: <p>I'm using Wordpress and Calderawp forms to build a survey site and I've run into an issue with checkbox selection results.  </p>
  
  <p>I've used a Caldera processor to push each collected field in my survey form to a custom field within a custom post type.  My issue is that get_post_metadata is returning a massive, serialized array that looks like a class object.  </p>
  
  <p>Here is a screenshot of the result of one of the custom fields I'm referring to:
  <a href="https://i.stack.imgur.com/bNaDl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bNaDl.png" alt="enter image description here"></a></p>
  
  <p>And, here is my current attempt to alter the output:</p>
  
  <pre><code>/** 
   * Alter output of custom fields 
   */
  add_filter( 'get_post_metadata', 'custom_get_post_metadata_filter', 10, 4 );
  function custom_get_post_metadata_filter( $value, $post_id, $meta_key, $single ){
  
      //This prevents infinite loop
      remove_filter( 'get_post_metadata', 'custom_get_post_metadata_filter', 10  );
  
      $value = get_post_meta( $post_id, $value, true );
      add_filter( 'get_post_metadata', 'custom_get_post_metadata_filter', 10, 4 );
  
      foreach ( $value as $key =&gt; $val ) {
          $unserialized = unserialize($val);
          echo 'key: ' . $key . '| val: ' . $unserialized . '&lt;br/&gt;';
      }
  
  }
  </code></pre>
  
  <p>The result of this code is something like: <br/>
  key: some_key| val:<br/>
  key: another_key| val:<br/>
  key: yet_another_key| val:<br/>
  ...</p>
  
  <p>I also just tried to print the <code>$val</code> and the result is another <code>Array</code></p>
  
  <p>Additionally, I've tried to use multiple foreach loops with setting a new variable, such as:</p>
  
  <pre><code>$my_key = $val['some_key'];
  
  foreach($my_key as $k =&gt; $v) {
      echo $v;
  }
  </code></pre>
  
  <p>...and I've found that the nested arrays go layers and layers deep.  </p>
  
  <p>Has anyone experienced this issue and found a solution?</p>