The user-meta tag has no wiki summary.
8
votes
3answers
708 views
How to create a front end user profile with a friendly permalink
I want to create a public front-end profile page with a friendly url like this format.
mysite.com/user/someusername
Any idea on how can i achieve this? I know it has something to do with rewrite ...
5
votes
2answers
424 views
get_users is expecting unserialized meta_value
I'm trying to get all users assigned to a custom usermeta. I know that get_users() is supposed to work; however, it doesn't seem to be working. What I have is a usermeta storing a category ID and I'm ...
4
votes
3answers
2k views
Get basic Image Uploader on User Profile Page
I am trying to add an image uploader to the user profile pages. I do have it up and running on a basic registration page, but somehow the same, but slightly adjusted code does not work when added to ...
3
votes
3answers
459 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 ...
3
votes
4answers
515 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 ...
3
votes
2answers
2k views
Allowing an email as the username?
Is it possible to allow people to utilize their email as their username?
3
votes
1answer
119 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 ...
3
votes
1answer
129 views
How do you make the email field on the profile page read only for subscribers?
I would like to make the email field on the profile page for subscribers read only. They can see their email but not change it. I want only admins to to be able to change users email address.
2
votes
2answers
789 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
5answers
2k 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 = ...
2
votes
3answers
431 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 ...
2
votes
1answer
167 views
How do I update a specific object in an array, in user meta?
I have this array, below, to set custom user meta (lh_userbadges) in user_meta but I'm not exactly sure how to update just parts of the array later on...
$lh_user_badges = array(
...
2
votes
1answer
182 views
Post-Registration, post-meta hook?
Is there a hook in WP to access meta data of a user JUST after they have registered and meta data has been added to the database?
I was reading to use profile_update, but wouldn't that be invoked ...
2
votes
1answer
295 views
Add mass action to wp-admin/users.php
I'm heavelly modified my Wordpress, it's amazing what you can do with wordpress hooks, actions.. But i'm not able to find how can i add mass action for users. Let's say i select 5 users and i want to ...
2
votes
2answers
533 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 ...
2
votes
1answer
185 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 ...
2
votes
1answer
227 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 ...
2
votes
1answer
416 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 ...
1
vote
2answers
842 views
How do you update user_email on the front end in WP 3.3?
I am using the following code and everything in the user profile is updating except the user's email.
In the template:
global $current_user, $wp_roles;
get_currentuserinfo();
/* Load the ...
1
vote
1answer
35 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?
1
vote
2answers
652 views
Getting $user_id for the_author_meta outside the loop in multisite
So I am currently running a multisite install where the super admin creates all new sites. One of the templates we're using has a blog page for a loan officer. I am extending the user profile so the ...
1
vote
2answers
354 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 ...
1
vote
1answer
38 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 ...
1
vote
1answer
51 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 ...
1
vote
1answer
41 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
107 views
remove user_meta data from database for all users
I'd like to create a button for admins to be able to delete from table wp_usermeta -> key: 'ref_credit' for all users.
Is there simple resource friendly way to do this? does wp have built in function ...
1
vote
1answer
4k views
How to get a buddypress user profile link and a certain user profile field for the current post author?
I want to replace get_author_link() and get_the_author_meta($feld)
with something equivalent to point to the author of the current post Buddypress user profile page and retrieve a specific profile ...
1
vote
1answer
890 views
Plugin that would allow WordPress Authors to “follow” other Authors and query “Activity Info” from that
I have a WordPress blog that is all user based Authors that submit content and such. Currently in the site, you can view other authors profiles but basically just view their content from the ...
1
vote
1answer
103 views
wp_update_user doesn't update and update_user_meta does
I'm building user profile page where users could update their profile on the front-end. User profile is extended with a few custom fields, like 'Twitter', 'Facebook' and 'City'.
The following code ...
1
vote
1answer
226 views
Adding data to an array in usermeta and displaying it in a loop
I have a front end post form where I take a file upload of an image. That image gets stored as a custom field which is easy enough to do. What I need to do though is store each unique image url for ...
1
vote
2answers
94 views
How to tell whether a user meta value has increased or decreased [closed]
I store a custom user meta value for my users that is stored as a number like a score. I need a way of telling whether it has decreased or increased from its last value. So when I display it I can ...
1
vote
1answer
121 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?
1
vote
1answer
487 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 ...
1
vote
1answer
471 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:
...
1
vote
4answers
1k 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 ...
1
vote
1answer
994 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
564 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 ...
1
vote
1answer
491 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 ...
1
vote
1answer
256 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 ...
1
vote
1answer
28 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
vote
1answer
89 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
37 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 ...
1
vote
1answer
23 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
134 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
85 views
Job of meta_key meta_value fields in database tables
I'm researching the structure of WordPress database and there is something that really get me confuesd.
Could someone please explain, what is the exact job of meta_key and meta_value fields in ...
1
vote
2answers
637 views
Can I create front-end editable user profile pages with Wordpress? How do I do it?
I'm trying to build a WP site where using the front-end, each user can:
Register through the front end using basic fields
Log in
Create their own profile page using multiple forms
Upload text, image ...
1
vote
2answers
111 views
How may I filter get_users() similarly to pre_get_posts?
I have filtered posts, pages and custom_post_types based on $current_user custom usermeta field values using pre_get_posts().
Is there a similar method/function to alter get_users() based on ...
1
vote
1answer
380 views
Show a list of recently viewed posts to a user
I have a lot of video posts on my site and I'm looking to show the user a list of posts they've recently viewed. I'm guessing the best route is to just add the post id to an array in their usermeta ...
1
vote
1answer
188 views
Custom User Field in Dashboard Widget
I checked justin tadlocks custom profile field tutorial and wanted to add the field in the custom dashboard widget but it seems it's not working. I want to show all the user information in this ...
1
vote
1answer
81 views
Incrementally add or substract from usermeta field
I'm trying to create a system to add credits to a user account and then later subtract from the credits when the user submits a post.
I have the functions I need to trigger the adding credits and the ...