Title: Get post meta supposedly return string but array
Last modified: August 24, 2016

---

# Get post meta supposedly return string but array

 *  [pricklepantz](https://wordpress.org/support/users/pricklepantz/)
 * (@pricklepantz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/get-post-meta-supposedly-return-string-but-array/)
 * Hi i have this code that should return string because the last parameter is true(
   according to the reference here [http://codex.wordpress.org/Function_Reference/get_post_meta](http://codex.wordpress.org/Function_Reference/get_post_meta)).
   However i keep getting array in return.
 * `$email_list = get_post_meta($cpnid, 'customer_email', true);`
 * I should be getting comma separated value like this
    [email1@dom.com](https://wordpress.org/support/topic/get-post-meta-supposedly-return-string-but-array/email1@dom.com?output_format=md),
   email2@dom.com,email3@dom.com
 * but i get a word “Array” instead…
 * Thanks for your help.

The topic ‘Get post meta supposedly return string but array’ is closed to new replies.

## Tags

 * [get_post_meta](https://wordpress.org/support/topic-tag/get_post_meta/)

 * 0 replies
 * 1 participant
 * Last reply from: [pricklepantz](https://wordpress.org/support/users/pricklepantz/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/get-post-meta-supposedly-return-string-but-array/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
