The user-meta tag has no wiki summary.
1
vote
2answers
427 views
wp_update_user not updating
In desperation I am asking for help in this forum too - if someone (ANYONE!) could take a look a this post and see if they could help I'd be eternally grateful
...
1
vote
1answer
69 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
88 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 ...
1
vote
1answer
251 views
Update user meta of author when post content is viewed
I have a value that I'm trying to store as user meta for authors on my site. I need it to update itself every time the content of a post is viewed for that author. Here's as far as I've gotten but it ...
0
votes
1answer
43 views
Countdown to date function?
When a user signs up on my site they have to select a date as part of resignation.
On their profile page I need to show a countdown to that date. Something simple like attached. How can I create this ...
0
votes
1answer
21 views
What is best for saving lot of extra detail of user?
In my site i need to store 200 extra data for each user. Now i know about the user meta option. But is it a good way to save 200extra field for each user?
Or should i create an extra table in the ...
0
votes
1answer
62 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 ...
0
votes
1answer
31 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 ...
0
votes
1answer
22 views
Identify admin/logout and more filters
I have several links I need to apply filters to them. Having hard time understanding from the documentation which are the correct filters I need to use.
I am not using the default theme.
This links ...
0
votes
1answer
132 views
Help integrating Custom post type meta field with custom profile fields
I have a custom post type for "locations" and I need to have "users" log in and be able to pick a location that is within a certain distance from them.
I have added some spots to the profile using ...
0
votes
1answer
68 views
get random users each time based on the meta key
I have many users on my website, out of some has status "elite". I am saving this status in meta key/value for each user ('meta_key' => 'elite_member', 'meta_value' => '1').
I want to display ...
0
votes
1answer
173 views
Display users in order by an “order” custom meta field
Alright, so here's my current code (which works, displaying the users in order by ID and excluding the admin user):
$site_admin = "1";
$order = 'ID';
$user_ids = $wpdb->get_col("SELECT ID FROM ...
0
votes
1answer
90 views
Getting label name of extra user fields
I'm using the plugin "Extra User Fields" to add extra fields to the user's profile. I know how to get the value of the field (get_user_meta/get_author_meta), but I also want the label as a string, but ...
-1
votes
1answer
271 views
Checking if meta_value exists for any user
I'm using gravity forms for a sign-up form and I set up a hidden field that is automatically filled with a random string generated and passed to the form by
...
-2
votes
1answer
96 views
Get all user with both meta_value
I was wondering if there were any efficient way of fetching all user comparing two different meta_key. I am currently fetching all user compared to the first meta, then loop trough the user_id to ...
1
vote
0answers
173 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
76 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 ...
0
votes
0answers
22 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
0answers
22 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
0answers
21 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
33 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
*
...
0
votes
0answers
50 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 ...
0
votes
0answers
51 views
Rank users by comments received on all of their posts
the piece of code below currently fetches a count of all the comments every user has written and ranks these users accordingly. I was wondering if anyone could figure out how to modify it to fetch ...
0
votes
0answers
38 views
Update 1 specific field wrapped in shortcodes on frontend?
I am working on a page template where users can update their profile fields on the front end. I am using profile builder pro and it works fine however I am trying to recreate a specific field so I can ...
0
votes
0answers
24 views
How do I save user_meta from user list column?
I have two additional columns on the user list view. 1 just grabs data that has been set, but I want to make 2 savable from column view.
So far I've this:
function modify_user_table($column) {
...
0
votes
0answers
30 views
Updating user_meta from pop-up form in back-end
I have created a custom wordpress backend area, which lists out all members on my wordpress site. Currently, there is a point system involved for loyalty rewards, which is maintained in this back-end ...
0
votes
0answers
52 views
How to access current user ID within wp_hash_password() function from plugin?
I am trying to change the way wordpress saves it password, to my own way. I was able to store the password in to the database, the way I wanted, overwriting wp_hash_password() function from my plugin. ...
0
votes
0answers
31 views
cap_key problem when sharing users and usermeta tables with two installation
I'm following this Custom User and Usermeta Tables to share users and usermeta tables with two installation.
define('CUSTOM_USER_TABLE', 'bloga_users');
define('CUSTOM_USER_META_TABLE', ...
