title: Shortcode meant to output custom taxonomy instead outputting the word 'array'
body: <p>Attempting to output a custom post type taxonomy (property_type) as a shortcode. At the moment where it should output the taxonomy it simply outputs the word Array. Quite new to php, so possibly something simple I'm missing, or completely barking up the wrong tree.</p>
  <p>Code is:</p>
  <pre><code>function prop_type_shortcode() { 
  
   $terms = wp_get_post_terms($post-&gt;ID, 'property_type');
      if ($terms) {
          $out = array();
          foreach ($terms as $term) {
              $out[] = '&lt;a class=&quot;' .$term-&gt;slug .'&quot; href=&quot;' .get_term_link( $term-&gt;slug, 'property_type') .'&quot;&gt;' .$term-&gt;name .'&lt;/a&gt;';
          }
          echo join( ', ', $out );
      } 
      
   
  
  return $terms;
  } 
  
  add_shortcode('type', 'prop_type_shortcode');
  </code></pre>
  <p>Thanks in advance for any help.</p>