128 reputation
5
bio website johnwebb.info
location Oklahoma
age 31
visits member for 2 years, 10 months
seen Sep 28 at 23:25

I like programming :)


Feb
4
comment get_users is expecting unserialized meta_value
I've tried it, but could you clarify what the object_id is. I assumed it was the user ID, but I wasn't sure. I tried it without it and I'm not getting anything. I tried it with just the update_user_metadata and $cat_id and its just responding Array. So I'm guessing that the $object_id is the key somehow. I couldn't exactly tell what this function was doing by looking at the Wordpress Codex.
Feb
1
comment get_users is expecting unserialized meta_value
Thanks for still helping. I'm not running through in serialization process. I'm just grabbing the POST data, which is an array, and then calling the update_user_meta function. Wordpress does the serializing own its own.
Feb
1
comment get_users is expecting unserialized meta_value
Thanks for helping Chip! I tested to see if I was getting the same error with other user_meta as you suggested and I tried wp_capabilities since it was serialized the way my data is and it wouldn't grab that info either. Maybe wordpress can't use the = operator on serialized data? I also tried putting the query in an array, but that just pulled all wp_capabilities, ignoring my query as far as meta-value.
Jan
31
awarded  Editor
Jan
31
revised get_users is expecting unserialized meta_value
added 96 characters in body
Jan
30
comment get_users is expecting unserialized meta_value
I appreciate the answer, but I've tried using the = operator and it didn't work since it's expecting a serialized response. I just tried using the "direct" WP_User_Query too, and unfortunately that didn't work either.
Jan
29
awarded  Student
Jan
29
asked get_users is expecting unserialized meta_value
Jan
29
awarded  Supporter
Jan
29
awarded  Scholar
Jan
29
comment Prevent certain subscribers from seeing specific taxonomies (changes frequently)
Dude! You are my hero! I've been battling this for hours. I had to modify things just a bit to get it working, but it's your answer that got me going down the correct path. Here's what I went with: $slug = $wp_query->query_vars['taxonomy']; $value = get_term_by('slug', $slug, 'taxonomy')->term_id; $a_terr = get_user_meta( $user, 'user-meta', true ); and then the check: if(!in_array($value,$a_terr)){//kick them out<br/>}else{}. Again, thank you!
Jan
29
accepted Prevent certain subscribers from seeing specific taxonomies (changes frequently)
Jan
29
comment Prevent certain subscribers from seeing specific taxonomies (changes frequently)
Yes, through usermeta.
Jan
28
asked Prevent certain subscribers from seeing specific taxonomies (changes frequently)
Jan
28
awarded  Autobiographer