User meta data consists of key-value pairs pertaining to the according user ID.

learn more… | top users | synonyms (2)

1
vote
1answer
618 views

custom avatar removal

Hello i have implemented a custom avatar upload from front-end in my wordpress theme. It is working. User can add and remove customa avatar. My problem is when user selects to remove his/her custom ...
0
votes
1answer
843 views

wp_usermeta wp_usersettings

I would like to know what does these meta_value means for wp_usersettings meta_key in wp_usermeta table? meta_key: wp_usersettings meta_value: m1=o&m3=o&m0=o&m2=o Thanks
0
votes
2answers
1k views

Front end user meta options for users

I have created user meta options using this tutorial. Now I want to know how to allow users to edit (update) certain custom user meta options that I created. Users already have a template account ...
0
votes
4answers
1k views

Trying to display posts by authors in with specific user meta

Ok here's the solution: <?php $wp_user_search1 = new WP_User_Query( array( 'meta_key' => 'state' , 'meta_value' => 'NM', )); $listers1 = $wp_user_search1->get_results(); $lister_ids1 = ...
4
votes
2answers
1k views

get_user_meta() to Return User Meta Only for Current Blog in Multi Site

I've written a plugin that allows users to bookmark their favorite posts, but have run into a small problem when using it on a multisite network. Each time a post is bookmarked, the ID of that post ...
2
votes
2answers
1k views

Displaying additional User Contact Information

I have been advised how to add additional contact info fields to the User admin area here (Click here). However, I am not entirely sure how I can display the the field contents in a link within my ...
0
votes
1answer
128 views

Array: What is this value based on?

I need to do an import of an array of checkboxes, but there is a value that I don't how it is determined. The array is based on a user meta option that I created that shows a list of category ...
0
votes
1answer
461 views

Mass Update User Profile Checkbox Options

I created a checkbox option for the user_meta (user profile). They are checkboxes assigning users to categories. The problem is that I need to do a mass update for all of my users 1500+ and going ...
1
vote
1answer
774 views

Authors List page - How to include only those with wp_user_level as Author

At my Authors template page, I want to show a complete list of Authors only (i.e. wp_user_level=2) the code I used is like this: $current = (intval(get_query_var('paged'))) ? ...
3
votes
3answers
1k views

wp_get_current_user always returns 0

I'm new to wordpress and modifying the code that's already working on a website. I want to get user's ID but I haven't figured out yet how. The following sample code works on my local environment but ...
0
votes
1answer
343 views

Save custom field types with this function…?

I found this great article (right here) about creating and saving custom fields for user profiles. The problem is that it only saves text fields. I can't save checkboxes, radio, or any other field ...
1
vote
1answer
265 views

How is a user's primary blog determined?

The wp_usermeta database table has a primary_blog meta field for each user. Where is the value for that field set in the Admin Panel, and how can I override the default value?
0
votes
2answers
47 views

What can I do when an outside party hacks into my weblog and changes my display name?

Last night I wrote a mildly controversial blog post about religion on my weblog, and this morning I woke up to find that my display name had been changed to the name of a fanatic religious leader. The ...
1
vote
1answer
1k views

Search Users base on meta_value & meta_key

How can i use multiple meta_key and meta_value to search users? For example, i want to search & find user name is "David" & location in "London". I'm using this query, But nothings in ...
1
vote
1answer
577 views

Adding Custom User Profile data based upon Categories

Based upon the code found here: How To Add Custom Form Fields To The User Profile Page? How Could I alter this so that users could check one of several boxes based upon categories I have setup in the ...
1
vote
1answer
763 views

How to display specific posts with WP_Query?

I need some help with displaying some specific WordPress posts. User's on my site can click on an 'Add to favorite' link which will then store that post ID in the user_meta table for that user as an ...
2
votes
1answer
1k views

How to update serialized data in the user meta data

In my wp_usermeta table I have a field called "wp_s2member_custom_fields" In it is stored this value: a:2:{s:6:"alumni";s:3:"Yes";s:19:"donations_collected";s:2:"10";} I am trying to use: ...
0
votes
2answers
413 views

Removing “HTTP://” From the_author_meta?

By default WordPress prints http:// in front of URLS users add in their profile, which are called using the following code: <?php the_author_meta('user_url'); ?> Could somebody provide me the ...
2
votes
1answer
229 views

Add a member number to new user

I need to add a number to user as meta info (it's a 5 digit number) at the time they register. I assume I would use the user_register action to call a script. I also assume I would use ...
1
vote
2answers
497 views

What's the most efficient database method to add and query usermeta?

What's the most efficient way - concerning the database - to add and query extra usermeta fields to a profile? I need to add four additional fields of numeric and text data to a user profile and then ...
2
votes
8answers
6k views

Adding fields to the “Add New User” screen in the dashboard

I'd like to add the field "Company Name" to the add new user page in the admin panel. I've done quite a bit of searching and have been unable to find details on how to do this. I can easily add info ...
2
votes
2answers
3k views

How to search for users based on added user metadata

I have added several new fields to the user profile (areacode, company, affiliate, etc) and I would like to present a way to search on these fields. Please point me in the right direction.
1
vote
1answer
686 views

How do you add a custom option to user data?

I would like to add avatars to my users. I have a limited group on a site I'm working. Uploading isn't really a problem we can just put the images on the server and use URL's to set our avatars(Only ...
0
votes
3answers
1k views

Hide a nav menu item based on get_user_meta results

I'm trying to hide a navigation menu item under certain circumstances. Specifically, if a user is logged in AND has already registered their product bar code, I want to hide the 'Register Kit' link ...
1
vote
1answer
1k views

Create a new usermeta field for users

How do I create a new usermeta field with a drop down selection values? Im want to create a conditional statement for all users with a certain value of the new custom field I want. For example, The ...
1
vote
3answers
920 views

get_user_meta Short Profile Section

Ok so i have added a custom field into the users edit profile page where they can add a link to a url of an image they want. I am currently using this for contribitors and above but i also have a ...
3
votes
4answers
885 views

If Else Gravatar Author Picture

Ok so i have added a custom field inside of the WordPress edit profile field where a contributor and above can add a custom image if they do not use gravatar. Now i am trying to write a if else ...
2
votes
1answer
288 views

Querying Email Addresses for a List of Users with Same Last Name?

I have a site with many users and many of them have the same last name. I want to get the emails of all the users with the same last name (IE: Smith) that has a post related to a particular taxonomy ...
3
votes
3answers
947 views

LEFT JOIN, INNER OUTER JOIN, LEFT OUTER JOIN is driving me crazy. Please help?

fellow coders! I an having a hard time JOIN(ing) tables. I have a a lot of users on my site and many of them have the same last names. I am trying to get their emails by their last name. WP stores ...
3
votes
5answers
4k views

Problem storing arrays with update_user_meta

I am writing a function that adds an ID number to an array and puts the array in the usermeta. $_GET['auction'] is the post_id. Here is the function: $reminders = ...
1
vote
3answers
13k views

add custom field in user register form

In my WordPress based site, I want to add a custom field (e.g. type of user - employee, investor) in the user registration form in the admin side, without editing the core file. Can anyone please ...
1
vote
2answers
3k views

mysql query two database tables, users and usermeta and sort by custom meta int value

I am trying to get an array of site users sorted by a custom meta value (an int). I can query the users just fine and get them back to use in a foreach. I currently have the query results come back ...
1
vote
1answer
269 views

Is it possible to read a result if wp_update_user or update_user_meta fails?

I am using both wp_update_user() and update_user_meta() and I want to be able to check for an error, and if one occurs, output it to the user. Is this possible using something like $result = ...
1
vote
1answer
896 views

Author custom fields post meta, the code?

If I wanted to get a custom field of the current user I would use something like this. <?php echo get_user_meta($user_info->ID,'address_line_2',true);?> This time however I want the author so ...
2
votes
1answer
633 views

get_usermeta() deprecated in favor of get_user_meta(). But why doesn't it make use of it?

While coding WP I just wondered about this simple fact: get_usermeta() is deprecated since version 3.0. The warning suggests me to use get_user_meta(). Even the parameters are pretty similar, I ...
3
votes
2answers
3k views

Allowing an email as the username?

Is it possible to allow people to utilize their email as their username?
1
vote
1answer
288 views

In what part of the Wordpress core does the users table and usermeta table get joined?

I have been trying to work out just where in the massive jungle of Wordpress include classes the usermeta table is joined onto the users table and if so, how does it work? The one confusing thing ...