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

learn more… | top users | synonyms (2)

0
votes
0answers
127 views

wp_capabilities for administrator (sharing user tables)

I'm attempting to share only the user tables across two separate wordpress websites. I'm not a hardcore coder or anything but I know just enough to understand and tweak things. I found this question ...
0
votes
1answer
544 views

Updating wordpress user meta data array (unexpected multiple arrays)

So I am trying to update a user meta data array that I have previously stored with this function: function oe_charge_customer( $customer ) { // load the stripe libraries ...
1
vote
1answer
123 views

Get user's ID on logout

Is it at all possible to get a user's ID in a function right at the point of log out? I tried to hook it to wp_logout, but it just returns null when trying to get the user's info. I'm wondering if ...
0
votes
0answers
48 views

Unsetting/Removing custom meta data on a page

I've made a custom meta box where you can upload an image attached to the post. I've done this since the image isn't placed in the normal content area but separate. /*** Custom post upload ***/ ...
5
votes
2answers
256 views

Add default WordPress tag meta box to User Profile

I've set up my user profiles to allow custom taxonomies following this tutorial. Ideally, I'd like to use the default Tag meta box from the Post screen, so users can easily add new taxonomies and ...
0
votes
0answers
9 views

Check user_meta_key on login [duplicate]

im trying to setup user activation on wordpress. Ive already setup 2 meta keys on user register: is_active and activation_key - here is function: add_action('user_register', ...
0
votes
0answers
134 views

Wordpress Subscribe to Receive Update notifications on a Post

I have been looking around for a wordpress plugin/function that allows users to subscribe to a specific post to receive updates from that post. For example, anybody who subscribes to receive updates ...
0
votes
1answer
36 views

How to output taxonomy term (incl. link to archive) on author.php?

I have used the excellent tutorial of Justin Tadlock on Custom user taxonomies in WordPress to add a Blog custom taxonomy to both my Posts post_type as well as the user object_type. In his tutorial ...
1
vote
2answers
49 views

Average Account Age

I'm trying to see if there is a way to find an average age of user accounts which came through my wordpress site not including the age of the administrator account. When I say age I don't mean their ...
0
votes
1answer
75 views

Does WordPress Need BuddyPress to Handle Large Amounts of Users?

I understand that technically there can be 18446744073709551615 users (db limitations). But I heard at a talk that the vanilla install of WP in actuality can't handle many users that well due to ...
0
votes
1answer
53 views

Randomize Users

I'm trying to randomly display my users and I was wondering if I could edit the answer on this page to suit my needs (multiple users instead of a single user): Sidebar random author spotlight Here's ...
0
votes
0answers
157 views

Sort users by custom user meta value

I'm trying to sort users by a custom meta value "user_business" which is their business name that way when users are listed they're sorted alphabetically by their business name as they should be. I'm ...
3
votes
2answers
173 views

Search multiple meta keys at once

How would I modify the following SQL Query to allow me to search multiple meta keys at once? e.g. user_business AND user_about In the end I'll be searching about 40 - 50 different meta keys; or if ...
0
votes
1answer
123 views

WP_User_Query not searching

I currently have the following code, and a user named "Clark Farm" in the user_business table. The code below returns nothing. If I remove the search term then all of the users are listed. I'm trying ...
2
votes
1answer
195 views

Where the Nickname is being used in WordPress

I see most of the place is using the "Display name", so why I need to set a Nickname? Where it is being used?
0
votes
1answer
38 views

Display all existing members

How would I (using a loop) pull in all of the existing users? I'm trying to loop through these users and then pull in meta data for each one.
0
votes
0answers
88 views

how to pull and display field data into a users back office in a members environment using affiliate plugin

I am using two plugins which work well together. In fact one is s2memeber so I can have a members area, the other is called affiliate pro so I can use referrals to fill up the members area. However, I ...
0
votes
3answers
145 views

custom user meta query

I've been trying to get this query to work but it keeps failing to return any rows SELECT a.ID FROM wp_users a, wp_usermeta b WHERE b.user_id=a.ID AND ( (b.meta_key='firstname-groom' AND ...
0
votes
1answer
72 views

how do I add role and capability after I create a new user

I have a simple requirement: 1. create a user 2. create a role for the user 3. add capability for the role First, create a new user $uid = wp_insert_user($userdata); Second & Third, create a ...
0
votes
1answer
38 views

Array of user ids to list of user names

I'm outputting an array of user ids from metadata like so: $awaygoalby = unserialize($post_meta_data['report_away-scorers'][0]); and I want to change each user id to the user name. So I was hoping ...
0
votes
1answer
64 views

Using IDX feed to display agent's and listings with agent's info associated for Real Estate Website

Trying to figure out how to get a user/agent to be associated with their IDX/mls number. Have been trying to find a way around this since Diverse Solutions does not give a feed for agent's info, ...
0
votes
1answer
23 views

Get user_meta values for a user for an array of meta_keys?

I would like to retrieve the meta_values for an array of meta_keys for a user. Is there a function in WordPress core that offers this functionality? Something that would work like this: ...
0
votes
0answers
68 views

Automatically create a post for new user, only allow access to that post

I saw this question being answered with a very interesting idea, namely to create a corresponding post whenever a user is being created. This allows me to create custom taxonomies for that custom post ...
0
votes
0answers
184 views

How to hook into drag-and-drop / collapse-funktion from backend?

I am building a free theme for knowledgemanagement. At the frontend i want to drag and drop and collapse the elements (articles, widgets, ...). I look a lot of time to several tutorial but can't get ...
1
vote
1answer
139 views

Showing user ID on user main page from screen options

On the user main page in the screen options, you have some choices for displaying user information e.g.. e-mail, role, posts etc.. Is there a way to be able to display the user's unique ID?
0
votes
2answers
218 views

Show image if author meta (profile fields) exists outside loop

I am trying to show the profile fields (like AIM, Jibber) outside the loop. I managed to do that with <?php global $post; $author_id=$post->post_author; ?> <?php $field='aim'; ...
0
votes
2answers
35 views

User Meta stuff

Ok I am trying to make a page the list user meta. http://pastebin.com/rw1t7Mgp The part I am stuck on is $our_children = get_user_meta ($user_id,"our_children"); it is a meta field with an array ...
0
votes
1answer
31 views

How to store array in usermeta in wordpress

I have a custom user registration form and am trying to store multiple values in the usermeta. This is a sample code I am using, however it just stores the last option selected (i.e. if I select from ...
0
votes
1answer
234 views

Reduce number of SQL queries inside WP_Query loop to fetch author data

This question applies to scale and does not concern typical blog implementations. I'm working on a web app where I'm running standard WP_Query to fetch some custom post types. This usually results in ...
0
votes
1answer
124 views

Display Country Flag in Profile Wordpress/Buddypress

Hoping someone could help me with a question regarding displaying country flags next to a member name. Right now I am using a custom meta containing country and then echo the flag back if the ...
1
vote
1answer
97 views

Query users by capability - uninstall/deactivate callback

The situation Running on MU, I'm writing an open source/publically and freely available plugin. As I used add_screen_option() to allow users to easily setup the admin page to their likings, I'm left ...
0
votes
0answers
57 views

Sort by user meta data

I am using the plugin: ep-display-user and can't get it to sort by meta. This is my code: function epdu_get_users($visible){ $user_ids = $this->wpdb->get_col("SELECT ID FROM $this->table ...
0
votes
1answer
45 views

Matching usermeta at registration to categories of content

I'm trying to connect some user_meta data from registration form to some categories set up in admin to filter the presentation on the page. This one is tripping me up because the question has multiple ...
0
votes
1answer
63 views

Get custom_user meta value and add entry

I created a custom user meat value and want to add a new key/value to this array. But somehow I can't get it to work correctly, I always get a new array in side the array so that I always have e new ...
1
vote
0answers
82 views

Update User Meta after Registration [closed]

After a user registers, I am creating two pages of two different custom post types, and then need to store a custom meta value in their user data to assist with redirects later. I've found that if I ...
1
vote
1answer
256 views

Separate table or usermeta

We are creating custom fields for users like annual income, gender, city, country, etc. There are about 10 odd new fields. We will be importing approx. 30,000 records for each user in a month through ...
0
votes
0answers
79 views

get_the_author_meta

I am just wondering if get_the_author_meta() returns value after unserializing in case it is stored in database as a serialized array? Until today, on my script, this has been returning data in form ...
0
votes
0answers
88 views

WP_User::__set doesn't persist custom fields as it claims

Looking through WP_User in version 3.5.1, the magic methods __get and __set supposedly read and write from custom fields, per their comment blocks. /** * Magic method for accessing custom fields * ...
1
vote
1answer
580 views

User defined password at registration - registration email sends auto generated pass

Updating some meta fields on registration and providing the user the option to pick a password yet the registration email sends the auto generated password. User defined password works and not emailed ...
1
vote
1answer
192 views

update_user_meta doesn't work with AJAX

I try to keep user subscription in a metadata var. The function is called by AJAX. Ahe AJAX is called but the metadata does not seem updated on frontend. Here is the code: jQuery <script ...
1
vote
1answer
190 views

How to save data of an input field to an array

I'm writing a plugin to edit my profile page. How can I save data of an input field to the database and then display it? This is my code. The first part is the display in HTML: <form method ...
0
votes
1answer
162 views

duplicate user metadata key values

I've spotted that some of my users have duplicate metadata key values (my only fault because i inserted data directly to the wp_usermeta table!). This query for example SELECT * FROM `wp_usermeta` ...
-1
votes
2answers
348 views

Show User Their Password

I've got a few automated scripts that run to notify users of certain updates to the application, etc... and for one in particular, I need to be able to display the users user_login and their password. ...
1
vote
2answers
119 views

Can I prevent “wp_user_level” from getting added to wp_usermeta on registration?

I've heard this meta key is obsolete, but they are still getting created every time a user registers. Can I prevent this? I'm trying to slim down that table.
1
vote
1answer
718 views

How to get user-meta from Social Login registered users?

It looks like social login plugins (such as Wordpress Social Login, OneAll etc.) do not create users in the original wp-database as regular registration from Admin dashboard. Hence it is not possible ...
1
vote
1answer
405 views

Extend the wp_users table

I'd like to to extend the wp_users table in my WordPress' database. Why? I want people to add more information about themselves when they sing up at my website. I know how to extend it, but I'm ...
0
votes
1answer
84 views

Distinguish profile user and admin user IDs / get ID of user being edited

On the user-profile page of my site I want to allow admin role users to be able to edit specific user-meta fields of subscriber role users. How can I distinguish between the two user IDs. The ...
1
vote
1answer
107 views

Possible bug: update_user_meta is updating two unique meta entries

On a CPT page I am checking to see if the user is logged in; if they are, I'm checking to see if they have a meta entry which is 'session-' + the current page's stub. If they do, I increment the value ...
1
vote
1answer
78 views

Is it possible to store visitors IPs in wp_postmeta table?

Or in any of the other 11 Wordpress tables. I also need to store: submission date, name, contact number in the same table. What approach would be best? A custom table or using a standard table?
0
votes
1answer
38 views

Test if key is in user_meta array

I want to associate certain users by means of a custom key stored in the user_meta for both users. There may be more than one-one relationships, so it'll be in an array. If 2 users have the same key ...