0
votes
0answers
21 views

Join wp_users and wp_usermeta

I have a custom user meta named created_by, which is the ID of creator of this user. I want to create a view table like this for example: ID user_login created_by 2 andi admin How to ...
0
votes
1answer
23 views

SELECT from wp_users, get Displayname too

SELECT post_author, count(ID) as amount FROM dbold_posts WHERE WEEKOFYEAR( post_date ) = WEEKOFYEAR( NOW() ) AND post_status = 'publish' AND post_type = 'post' GROUP BY post_author ...
0
votes
1answer
23 views

Why checkbox is not saved in user profile page?

I added new options in user profile page. I added checkbox but it is not saving if all multiple options are checked. <input type="checkbox" name="neww" class="neww" value="one"<?php ...
0
votes
1answer
48 views

Delete user from frontend

Hi I am working on a frontend admin where a user must be able to delete his account. current_user() is a custom made function of me that retrieves the user meta data. Does anyone know how I can make ...
0
votes
1answer
40 views

Assign random (and unique) user meta upon registration

When a user registers, I need to assign a random but unique, 4-digit number as user meta data. The number will be static and not change: Not by the user himself or any user with a higher capability. ...
0
votes
0answers
17 views

Adding a function-based search to the Users admin page

On the Users admin page, I want to add a function-based search criterion. By default, there are filters to search by user role and there is a search box that searches the user data. I would like to ...
4
votes
1answer
84 views

How to create a template for a custom URI associated with the user

I am working on a site where I am using a plugin called Favorite Posts so logged-in users can add a post (a custom post type) to their favorites. I created a page called my-favorites which allows the ...
0
votes
1answer
41 views

User meta and public function security

I am using stripe to setup a system of buying credits, which can be used on my wordpress site. I save credits using wordpress user meta, and I increment those credits after a successful transaction ...
0
votes
0answers
38 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 ...
3
votes
2answers
297 views

user_login vs. user_nicename

When you call the get_users() functions, a list of user objects are returned. Each of those users has a number of properties. What is the difference between user_login and user_nicename in those ...
0
votes
1answer
74 views

Display and Allow users to edit their own profiles

I'm working on a site that would have different categories of users, and each user will have his own user profile page with a vanity URL, which he can share with others. The users are divided into ...
0
votes
0answers
34 views

Is it possible to make custom columns in the user.php file to be sortable based off meta values?

I've googled around and not seen any answer that really works so far so I thought I would check and see what others say. I'm working on a plugin that adds three different columns filled with meta data ...
0
votes
1answer
247 views

Add a button to users.php

I am working on a plugin that adds meta data for each user to the users.php table that is displayed by adding columns. I have that done but I would like to also add a button that will delete the meta ...
0
votes
2answers
38 views

Let users register weight each day and save it in DB

I need a way that lets my users register they're weight (kg) and maybe % of bodyfat and save that information on each user in the DB. Then i need a way to output that number again on the logged in ...
0
votes
1answer
23 views

Creating Custom user type just like custom post

Any method for creating custom user types just like custom post. am trying to achieve 2 different set of users with different user_meta fields.
0
votes
1answer
227 views

Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?

even though I think I understand the hierarchy of roles in WordPress, I never really bothered creating my own user roles or custom capabilities. What I need to achieve is to assign a few capabilities ...
3
votes
2answers
438 views

How to display custom user meta from registration in backend?

I'm considering using the hooks for the WordPress registration form to add some custom fields: https://codex.wordpress.org/Customizing_the_Registration_Form My question is, if it's even possible, how ...
0
votes
1answer
65 views

Validate user meta and redirect

I wanted to add some extra fields to obtain extra user info which I have added easily that looks like. The example code for a single form field, I added: add_action( 'show_user_profile', ...
0
votes
1answer
27 views

How to list users by custom field?

I have a custom user field in the standard database, called company. I want to output on to a page the usermeta info only of users whose company matches Widgets Inc ... How do I do that? What I'd ...
0
votes
1answer
204 views

wp_insert_user not creating account correctly when ID is manually set

So, I'm trying to create a new user account with wp_insert_user based on credentials I receive from a Facebook user profile. I want the new user account ID to equal the Facebook account ID (ex: ...
0
votes
1answer
72 views

Get users with different roles and call function on each of them (user_meta)

First of all, I have a custom function in functions.php that gets some author information. This works on great on single posts with a single author. <?php function the_author_box() { ?> <div ...
0
votes
3answers
428 views

How to order users alphabetically by their last name?

I use the following shortcode and function to display members of some departments: add_shortcode( 'list_of_members', 'members_listing' ); /* usage: [list_of_members department = 'psychology'] */ ...
0
votes
1answer
81 views

users and usermeta table

Is it mandatory for each user to have entries in usermeta table as well or it's optional? Recently, I came across a wordpress database which has thousands of users in user table however only a few of ...
0
votes
0answers
78 views

Let admin users edit member profiles from front end

I'm using WP User Frontend Pro, but the pro version lacks the feature of letting admins edit registered users profiles from front end. I'm building a web app using WordPress, and the administrator ...
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', ...
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
156 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
122 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
194 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
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 ...
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
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 ...
1
vote
1answer
96 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 ...
-1
votes
2answers
344 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
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 ...
0
votes
1answer
307 views

get_user_meta() doesn't include user email?

I simply wonder why <?php var_dump(get_user_meta(4)); ?> doesn't contain an email address of the user. Instead I have to use get_userdata(4)->user_email; to query the email of the user. ...
-1
votes
1answer
198 views

Problem with update_user_meta() meta_value

I am trying to insert a large number of user in to the wordpress db using wp_insert_user(). After inserting each user, I am trying to add an user meta for each user. I am doing like this: $meta_value ...
0
votes
2answers
255 views

Getting list of top 10 users and sort on last name

I would like to display a list of the top 10 authors based on the amount of posts that they have, and then sort them on last name. To my knowledge, this is not trivial since the last name of a user ...
1
vote
4answers
253 views

How we can get the user id by its display_name

I have user display_name and with this I want to get the id of that user. So, how can I get the user id?
0
votes
1answer
54 views

How to relate the Category to user?

I am developing one new plugin, In that i had a section to create new category, and having the field Created By(listing all the users in this field). I am storing the category name in WP_terms and ...
1
vote
1answer
117 views

Memory usage for scalable usermeta queries

Problem Some time ago I posted a question about the scalability of wp_usermeta architecture: my concern, as my client's database of users is growing fast, is now the memory usage of querying the ...
1
vote
1answer
295 views

How to use hyperdb to separate and share a user dataset between wordpress installs?

I'm looking for a way to separate my users and usermeta table to be in a different database than my main WP install. The end goal is sharing these table over a number of WP installs. From what I ...
0
votes
1answer
380 views

Using and saving custom dropdown boxes on user profiles

Okay, so I'm creating a website and am in need of help for some custom meta fields for user profiles. Currently I have the following in my functions.php file: //hooks add_action( ...
0
votes
2answers
287 views

How to build a fool proof AdSense revenue sharing model?

I have 5 author levels in my WordPress site. Levels are calculated using points - level 1 - level 2 - level 3 - level 4 - level 5 Authors getting impressions based on author levels like this. ...
3
votes
1answer
262 views

Show Biographical Info while creating new user

Is it possible to show the Biographical Info textfield while creating a new user? I know it's possible to add user bio by editing a user AFTER it has been created. But I would like to do this while ...