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

learn more… | top users | synonyms (2)

0
votes
1answer
10 views

update_usermeta don't work

When I return in the function $setfound, I become a white screen and when I return $setlink, it works fine. function editsteamlink(){ $setlink = $_POST['steamlink']."/?xml=1"; $setresponse = ...
0
votes
2answers
11 views

Is a user_meta research case-sensitive or not

I am using the Wordpress get_users() function to search for users with a specific meta_key value. $wordpress_user = get_users( array('meta_key' => 'unique_id', ...
0
votes
0answers
6 views

BuddyPress Members Loop does not filter members by meta_key usermeta and meta_value

I have this code: bp_has_members( 'meta_key=my_status&meta_value=activated' ) But it does not filter members who have usermeta key as "my_status" and value as "activated". Instead it shows all ...
0
votes
1answer
112 views
+50

using update_user_meta to rank users

I'm using a plugin that allows users to vote on posts, I'd like to add each vote that's cast to the authors user_meta so I can rank users the same way I rank posts. There's a couple of different ...
0
votes
0answers
19 views

Storing user meta as an array, empty array index shows as “Array” on front end

I am storing user meta data as a single entry in the DB as an array. If any of the array index values are empty, when I display the empty data it shows up as "Array". In particular in my user update ...
0
votes
0answers
11 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+', ...
0
votes
1answer
32 views

How to work with AJAX and Wordpress?

I'm working on my first plugin. I would like to add a follow button for the posts, so the logged in users can follow the authors. I placed the following lines into functions.php function ...
0
votes
0answers
14 views

Role Column Sorting

I'm trying to add sorting on Role column on user listing by desc and asc but I can get it work, it always show "No matching users were found." below are my code add_filter( ...
0
votes
1answer
28 views

Display a post count from a custom metabox selection

I was wondering if this is possible. I have a custom post type call projects that displays a metabox with drop down menu. In that drop down menu I have a few choices listed, draft, open, pending, ...
0
votes
3answers
120 views

User description only displayed for logged user

In my "About" page I list all WP users of the site. Then in author.php I display the description of the selected user with this code: <?php the_author_meta( 'description' );?>. Problem: this ...
0
votes
0answers
34 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
1answer
43 views

Is it possible in WordPress

I am trying to create a ranking based on user donation, my problem is I am not sure if wordpress user meta support append For each Project a user can donate money via paypal In WordPress User Meta I ...
0
votes
0answers
40 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
7 views

Default Custom Field User Data

I want to create a user meta that would either add or update In the user meta there are two custom field 'projects' and 'amount' so if user donated $1 to project A the user meta will create a row, ...
-1
votes
1answer
32 views

Store subscription details for users in Wordpress

I want to store subscription details of several category for users. how to store this to wp database. i am beginner to wordpress. whether i want to create new table or can i use meta ,taxonomy or ...
0
votes
1answer
37 views

Get users from all/specific blog by user_role and current_user role

Something I've needed and think a fair few people might need as well is: getting users from all or a specific blog based on the user_role's of the accounts they wish to see, while also differentiating ...
0
votes
1answer
63 views

Multiple User-Meta Values in One User-Meta Key

Currently, I am adding user metadata with the key position_name and a string value representing a user's position, such that I can retrieve a user's position by way of a call similar to: $position = ...
0
votes
1answer
46 views

Parsing a shortcode through an author meta textfield

I have been using the UPME plugin to design a member profile website that allows me to take information and show each user different profiles depending on a shortcode I put into a textarea field. The ...
0
votes
0answers
20 views

Using xprofile_insert_field

I'm trying to add a xProfile to BuddyPress, but I don't know where but my snippet is not working. I have tried so many stuff, but I just can't get it right. Hope you can help, here's the latest ...
0
votes
0answers
27 views

Using BuddyPress bp_xprofile_add_meta Function

I was working with BuddyPress' xProfiles, and I wanted to create something. So it possible to automatically create a xProfile field by adding a snippet to functions.php or a plugin using the ...
0
votes
2answers
32 views

How can I get user URL by id

I am using custom post types, and I have a problem getting the author URL to his profile. I can get the author ID using: $authers_interviewdoctor = get_post_meta( $post->ID , ...
0
votes
0answers
23 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
37 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
19 views

How to Log User Clicks on Link - CPT, User Meta, other?

In the sidebar, I have links that appear when a user is logged in. The links point to downloaders on various other sites as well as our own. I'd like to be able to log those user clicks so I can see ...
0
votes
1answer
25 views

Can user meta be shown or hidden depending on user logged in status?

Can is_user_logged_in be combined with jquery somehow to add/remove fields wrapped in a certain class? More specifically: I want to wrap the users' phone and email in class "private". Then if the ...
0
votes
0answers
38 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
2answers
127 views

Get meta value and associated user meta

I'm working on a site where users are able to publish posts with custom fields associated with them. I want to display meta values from all posts, and include which user created the post where the ...
1
vote
1answer
72 views

How to store custom user data on the database?

I'm developing a WP multi-site network which have a goal of 10,000 sub blogs. The site needs to store custom data related to the user. There are additional 20 fields of data for each user. What is the ...
0
votes
0answers
40 views

Update_user_meta fails with ajax when used multiple times quickly

I'm trying to update the status of the sidebar (visible or hidden) when the user clicks the hide/show button in the user_meta so that no matter what computer he's on, he'll see his settings saved. ...
0
votes
0answers
55 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
1answer
34 views

Wordpress Author Information show paragraph?

In back-end I'm update 3 paragraph in Author information. But it's showing frontend it's collapsed. And not showing paragraph. How to fix this problem. Ex: paragraph 1. paragraph 2. paragraph 3. ...
0
votes
1answer
44 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 ...
1
vote
3answers
62 views

get_*_meta doesn't always return an array

I find it annoying that functions like get_user_meta or get_post_meta will return an array if the meta key exists or false if it doesn't. This means I need to do a check like so: $meta = ...
0
votes
1answer
52 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
51 views

Hide user fields based off capability

I'm struggling with this one. I am trying to hide 2 user profile fields for the current user. Only the admin or user with "edit_users" capability should be able to view/edit these fields. Code: ...
0
votes
1answer
71 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
0answers
52 views

get_the_author_meta not working when sending emails

I can't seem to get "get_the_author_meta" working when sending welcome emails to users. I want to customize the content based on custom user meta. I can pull it in just fine on the front end, but I ...
0
votes
1answer
43 views

Minimize database queries to user tables?

I'm trying to come up with a strategic way to collect large amounts of usermeta data (and output to the screen) while keeping database queries low. Some pages, like the home page, single pages, and ...
0
votes
1answer
122 views

Updating User Meta with SQL Query

I have a Wordpress site that needed to have 9,000+ users imported to set up a Directory Listing. I imported them from an existing MySQL (non-wordpress) database and everything imported just fine. ...
0
votes
1answer
28 views

Store Foreach in user profile

I use a foreach to get visits / visitors per month with Analytics API. I need to store the results in the user profile the way it is displayed with an echo. I tried this but I don't get the right ...
0
votes
0answers
17 views

Save automatically data to user profile once or twice a day [duplicate]

The main goal : I am working on a panel which will display statistics of my user websites (external website). For that, I use the Google Analytics API. I save the Google Analytics profile number in a ...
0
votes
1answer
122 views

How to delete user meta by key

I'm a beginner with WordPress plugin api, php and ajax. I'm coding a training plugin for myself to save posts article to read them later, like favourites on web browser, with folders. I use oop to do ...
0
votes
1answer
52 views

Display and Update User Custom Meta via user-edit.php

Is there a For/Loop available to display all the available WordPress User Custom Meta Data so that when on the user.edit.php screen you can see and update all custom metadata? I understand methods ...
0
votes
1answer
83 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
1answer
111 views

WP Cron: Save third party data as user meta

Editors note: Twitter ID and Google Analytics only serve as examples and are exchangeable. TL;DR I want to save external data in a user profile once or twice a day. I added two custom fields in my ...
0
votes
1answer
55 views

Set user ID at time of wp_create_user

I'd like to add a new user to the WordPress user table. The code for wp_create_user works fine but it is adding the user incrementally to the next available ID in the user table. Instead, I want to ...
0
votes
1answer
43 views

Add new user and add meta at once

I am working on a custom sign up proces where a user first fills in his name and email, then receives an activation e-mail and then the sign up proces continues. The e-mail contains an activation ...
3
votes
1answer
187 views

Connect Users and Taxonomies

I'd like to send email notifications when new posts are saved. But users can select post categories they want to subscribe to. Available plugins are no solution to me – I really need my own code base. ...
0
votes
0answers
27 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 ...
0
votes
1answer
53 views

Meta box with front-end styling

I have a specific Gallery post of products that I release at the start of every Monday on my website, which differs from my other Gallery posts. These types of Gallery post don't require the Authors ...