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

learn more… | top users | synonyms (2)

1
vote
0answers
14 views

Hook or action to save profile fields at specific time

i want to make a field in the user profile to know who added this user, the problem is that this field displays the current logged in user, i wonder if the is a hook or action to make this custom ...
1
vote
0answers
30 views

get_user_meta returning old data

I have a page template that creates a user directory listing for certain of my site users. I have no caching plugin and I get the same result from local development server, remote development server ...
1
vote
0answers
19 views

Why does the usermeta table contain html entities?

As a plugin developer, I have been storing special characters like ampersand as is in MySQL tables, then converting them to html entities after retrieving them for display. Now I discover that (for ...
1
vote
0answers
67 views

Extending WP_User class and using this sub-class during the whole lifecycle

I am currently struggling with this software design issue I can't seem to get hold of. What I am trying to achieve is the following: for every user on our website, I want to do an API request to a ...
1
vote
0answers
43 views

User meta conventions / name registry, for social media links

The Yoast WordPress-SEO plugin adds some social media links to user_meta: function update_contactmethods( $contactmethods ) { // Add Google+ $contactmethods['googleplus'] = __( 'Google+', ...
1
vote
0answers
188 views

How to save the date/time of last update of an extra user profile field?

I have a function that adds and saves very well an extra field to the user profile. But, because the content of this field gets old very quickly, I need to know when the user refreshed it last time - ...
1
vote
0answers
213 views

Frontend Image Upload

I have the following code used at the top of my front end user profile page, everything works and displays fine except for the following problem .... If I upload an image and submit the form usermeta ...
1
vote
0answers
374 views

Wp_User_Query not sorting by meta key

I'm trying to list users sorted by a meta value. I store a score for each user in their user meta which is just a number but the loop isn't sorting. I include the score in the loop so that I can see ...
1
vote
0answers
98 views

How can I make the user names of commentors clickable links to the user's profile from the admin comment screen?

I've set up my wordpress blog to only allow logged in users to leave comments, but I need a way for the administrator to be able to go to a user's profile from the comment moderation screen. I don't ...
1
vote
0answers
3k views

Extra User Profile Field Upload File / Image

I have been following the following tutorial to try and an upload form to the user profiles. ...
0
votes
0answers
14 views

How can I develop a plugin for Rating Authors?

I am well familiar with plugin development in WordPress and have an understanding of user_meta. I was trying to find a way to find a plugin to rate user_type:"Authors" but could not find.
0
votes
0answers
27 views

How do I add and verify new user meta data?

I'd like to give users a field that they can fill out -- with an option for me to verify / not verify. Take for example every user has a field -- Total Cars Owned : [number] They can enter in ...
0
votes
0answers
24 views

Multiple Values for one meta field group

Im using WP (Buddypress specifically) to allow users to upload their job and education experience. I need to allow users to upload multiple instances for each (most people have gone to more than 1 ...
0
votes
0answers
14 views

How to change select field option pragmatically?

I have created one custom field (field type select) with the name specialization and have multiple options like doctor,dietitian in users profile in back end this fields are visible. suppose user ...
0
votes
0answers
17 views

Custom Permalink with Custom user meta mapped to posts published by user

I want to map a custom user Meta to the permalink in the form of http://localhost/%user_meta%/posts. The user_metais a custom user meta whose id=brand. The URL http://localhost/%brand%/posts should ...
0
votes
0answers
61 views

get user role value as a string from wp usermeta table into custom script

Just came accross while retriving wp_capabilities from wp_usermeta table, this returns serialize output a:1:{s:13:"administrator";b:1;} When i unserialized, it gives an array Array ( ...
0
votes
0answers
36 views

How to use Buddypress xProfile field as Wordpress Bio

First time using this forum. I need some serious help with this question. I am trying to display a user's bio without using the backend. Reason being, I do not allow my users to go through the backend ...
0
votes
0answers
95 views

View Gravity Forms data on a users papge

I am a newb to the CMS world. I decided to use Wordpress along with Gravity Forms to build a website. I'm using Gravity Forms along with the User registration add-on to gather the data I require, ...
0
votes
0answers
57 views

How can I programmatically show a specific (template) page, like author.php?

My current, hacky way, is this: Right now, in my functions.php file I have something like this: /** * Create the query var so that WP catches the custom /profile/username url */ function ...
0
votes
0answers
33 views

When to hook into edit profile action?

I have the following function which combines the values of a few user profile fields and saves them as a new user_meta called COMBINED_WORKSHOPS. The function works, but I don't know when/where to ...
0
votes
0answers
80 views

Limit the number of successful logins

I would like to retrieve the number of successful logins of a user and act accordingly. If user logged in more than 10 times, then log out user automatically with wp_logout() or similar. I would ...
0
votes
0answers
33 views

How can I detect if user has subscribed Memberpress product already

How can I detect if user has already bought a memberpress product. I'm searching something like this: if(have_subscription){ //code to add button }else{ // code to add something else } I have no ...
0
votes
0answers
101 views

Display Users by usermeta using foreach loop with multiple relationships

I'm getting a real headache trying to sort this one out. Here's my problem: I'm working on a feature for a site that requires Users to be displayed according to their association with a common ...
0
votes
0answers
27 views

Custom Post Type with /%shop_name%/gallery/%gallery% permastruct?

I have created a custom user meta = shop_name in User Profile and custom post type gallery I want my permalink to be in form of /%shop_name%/gallery/%gallery%. Every user has a custom user_meta = ...
0
votes
0answers
215 views

SQL query equivalent to WP User Query

I have the following WP user query code: //Get all users sorted by whatever $sorted_users = new WP_User_Query(array( 'orderby' => 'meta_value', 'meta_key' => 'satisfaction_rating', ...
0
votes
0answers
17 views

MySQL Trigger Help

I followed this question's answer to make my multiple wp installations to use a single user database, I want this: to happen every-time a new user registers. Can someone teach me how to make a ...
0
votes
0answers
39 views

Would like to add a “leaderboard” (custom field) to a custom post type

I've made a custom post type called a "Workout" that has an associated "leaderboard" just some text that has the top scores for the day. I'm trying to flush out the following use case: In the ...
0
votes
0answers
56 views

Custom User Authentication using Meta Data

I have inserted two custom fields called user_login_status and activation_code in wp_usermeta table. My code on login page function dlf_auth( $username, $password ) { global $user; ...
0
votes
0answers
21 views

when update user_nicename ,Englishi work well,but Chine will be empty

I builted a form to update user's profile. all fields worked ,but if I input something in Chinese,fileds will be empty,Code is blow: /* Update user nicename. */ if ( !empty( $_POST['nicename'] ) ){ ...
0
votes
0answers
14 views

Why all contributor that have post not have page

I have problem when moved from drupal to wordpress. Now i have user in contributor that have post in my site. This user cannot see his post in my site in homepage. To solved it i convert him to ...
0
votes
0answers
34 views

Include new meta_data in WP_User_Query

I'm trying to add a new meta field to the results that come from Wp_User_Query. Not keen to use get_user_meta() in a loop for each user returned as I believe that it'll make hundreds of database ...
0
votes
0answers
17 views

any way to bind a taxonomy term to o user to just query it afterwards?

I need somehow to add an existing term from an existing taxonomy to a user like a category of users, but not for the purpose of limiting them to posts is that easily possible? I found some plugins ...
0
votes
0answers
94 views

restrict_manage_posts for users?

restrict_manage_posts is great for allowing me to filter posts by taxonomy on the admin page. Is there any way of using a similar function for the users admin page - so I can filter by user meta data ...
0
votes
0answers
141 views

How to toggle delete/update user meta values?

I have multiple forms which stores extra user fields in usermeta table. For this i use foreach($user_meta_fields as $user_meta_field){ If($_POST[$user_meta_field] !=''){ ...
0
votes
0answers
52 views

Paginate User Query

I am trying to write a simple shortcode function that will return a list of users based on a given meta value. It functions fine, but I am trying to paginate the list. Here is my code: function ...
0
votes
0answers
41 views

Preventing concurrent update of data

I have to implement the update of some metadata. An algorithm try alter some global variables in order to minimize a global error function. This algorithm is triggered by users who ratings each other. ...
0
votes
0answers
169 views

Create custom fields/meta data gender+country - radiobuttons and dropdown on register screen for these fields

On register I want the user to select gender (radio buttons) and a country (dropdown from list of countries) as well as an agreement checkbox. I'd also like all of these to be editable on the user ...
0
votes
0answers
162 views

Custom Post Type admin order by usermeta value

I would like to allow admins(and users) to order the listing of posts by editor(custom role) last name(ASC or DES) while viewing the listing of posts in the admin area. I have a custom post type that ...
0
votes
0answers
289 views

Custom query to update user meta data (also with a custom table)?

I have add a custom table (wp_shopping_metavalues) to the WP install which looks like wp_usermeta. I am displaying user values from both tables. For the insert i use function ...
0
votes
0answers
88 views

Getting user meta value in default user list in wp-admin (MU)

is there any way I can get value from a specified user meta in the default user list in WPMU? I am talking about the wp-admin/network/users.php list. It lists Username, Name, E-mail, Registration date ...
0
votes
0answers
33 views

GET user's metadata, list it in descending order and GET user's list number

I have a custom user metadata with meta_key reputation. The value is numeric. It is like a points system. The higher value the user has, the higher reputation they have. How do I GET where each user ...
0
votes
0answers
190 views

UPME Known Issues - Unable to Save Custom Fields

When you have large number of custom fields, there are issues with saving and updating process. This is due to the maximum input variables constraints set by PHP. Currently you have to increase php ...
0
votes
0answers
178 views

Create a dropdown list displaying users meta data

I want to display a dropdown list of users using information from the wp_usermeta table. I know that there is a method wp_dropdown_users that outputs a select list of users but I can't figure out how ...
0
votes
0answers
68 views

User management missing after migration to new host

I just moved my WordPress 3.9 site to a different host by making a mysql dump and restoring it on the new server and uploading the files over. Pretty standard. However, now I've lost the ability to ...
0
votes
0answers
67 views

Add custom field for author and show list author order by that field

I am using variables $author_like_count to count like from all post of author. $author_like_count = $author_like_count + get_post_meta($post->ID, 'like_count', true); My question : How to set ...
0
votes
0answers
100 views

wp_usermeta key problem

I am trying to add a meta key to wp_usermeta but it does not work at all. The key would get value from a checkbox. I used the code from Wordpress codex tutorial and it's not adding anything. I will ...
0
votes
0answers
62 views

Use and get custom user metadata

I wanted to check if a post custom field matches the logged user's custom metadata. If it does then list only posts that match. I think that's possible.
0
votes
0answers
855 views

How to Update User Meta Field other than from profile?

I have created a dynamic meta field that is generated for each post type. I used the following to create the meta-field: <?php $args=array( 'post_type' => 'Course', 'status' => ...
0
votes
0answers
91 views

User Meta not Updated?

I've gone in and give custom meta fields for the users in the database, and have assigned all the appropriate values to them. I also have a page set up with all of the users being displayed with the ...
0
votes
0answers
1k views

Update user meta using Ajax on front end?

I would like to update some user meta information from the front end of a WordPress page when the user clicks on a button. I am attempting to pass along a string of data, and then updating the field ...