Title: get_user_meta returns empty array
Last modified: August 21, 2016

---

# get_user_meta returns empty array

 *  [bsapaka](https://wordpress.org/support/users/bsapaka/)
 * (@bsapaka)
 * [12 years ago](https://wordpress.org/support/topic/get_user_meta-returns-empty-array/)
 * I am trying to display custom field data on a custom post type using the following:
 * `<?php`
    `$meta_values = get_user_meta( get_the_ID() );` `var_dump($meta_values);``?
   >`
 * This returns an empty array. What am I doing wrong?

Viewing 1 replies (of 1 total)

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [12 years ago](https://wordpress.org/support/topic/get_user_meta-returns-empty-array/#post-5111874)
 * You’re using **user** meta where I think you want to use **post** meta:
    [http://codex.wordpress.org/Custom_Fields](http://codex.wordpress.org/Custom_Fields)

Viewing 1 replies (of 1 total)

The topic ‘get_user_meta returns empty array’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/get_user_meta-returns-empty-array/#post-5111874)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
