WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get with


the meta_key where the meta_value is 'ive-read-this'

But I do not get the value. What should I do?

share|improve this question
up vote 0 down vote accepted

I agree with @Simon Blackbourn, but for arguments sake, here's one technique:

$data = get_user_meta( $user_id );
$data = wp_list_filter( $data, array( 'ive-read-this' ) );
$keys = array_keys( $data );
share|improve this answer

Bearing in mind I haven't seen the rest of your code or know the context of your question, I would suggest that you're doing it wrong: you should always know the name of a usermeta that you're trying to retrieve.

If you're trying to determine if a post has been read by a user, you could save the user ID as a postmeta, maybe that's a better solution?

share|improve this answer
Yes, i also thought about going that way. But anyway it takes me wonder if, it's possible this way.. – mnewmedia Nov 12 '12 at 11:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.