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

learn more… | top users | synonyms (2)

0
votes
0answers
7 views

Update user meta when user login

I have created a custom field last login time, i want to fill it with last time user login date and time. function fb_add_custom_user_profile_fields( $user ) { ?> <h3><?php _e('User ...
0
votes
0answers
19 views

not logged in user's Any Idea? please [on hold]

i searched on google and i found last login user plugins, but what i want is Wordpress list not logged in user's since six month?
0
votes
0answers
14 views

same users different websites other then wordpress

I am creating a network of sites. I have some wordpress installations as well as some other scripts installations. I know that i can use single wordpress users table for different wordpress ...
0
votes
1answer
20 views

query post by author gender

I'm using utimate member plugin on my website. for each member (author), I have a field to store the member gender. (Homme / Femme). the data is stored in my database, inside wp_usermeta. meta key ...
0
votes
0answers
40 views

Use Google Analytics' User ID function with Wordpress site

I need to integrate the user ID function with my wordpress site. Been looking for a dedicated plugin but closest thing I could find was https://en-gb.wordpress.org/plugins/google-analytics-adder/ but ...
0
votes
0answers
28 views

Show list users based on two custom field values

I'm kinda stuc. I have added an extra field in the user profile for my authors, called ArtistCategory which can be Tattoo or Piercing. I'm using this key and value to filter for menu and gallery ...
1
vote
0answers
16 views

Allow role to edit users at lower level with only specific metadata

How to allow a custom role, company-administrator, to be able to edit/create/delete users lower than their level, subscriber, where some metadata is matched? To elaborate: I'm making a membership ...
0
votes
2answers
176 views

Gather posts into a cart/lightbox and share with another user

Ok I've almost completed a Wordpress site that is a multi-user Image Library. This is a private site, where users must be logged-in to view it. The average user cannot get to the backend (wp-admin) ...
0
votes
1answer
26 views

The Simple and Correct Way to Add User Meta

I want to give points to users to their activities like writing posts, writing comments, etc. I thought to use user meta to store points. I know that I can use add_user_meta... But the problem ...
0
votes
0answers
45 views

How to show twitter link preview (Card View)

I want to ask about my problem. I can't show twitter link preview for my website and for information, I just add this code i get from WP Beginners <?php #twitter cards hack if(is_single() ...
4
votes
2answers
43 views

Building a scalable Wordpress favouriting plugin - one serialised meta value array or many meta records

I am trying to build a simple Wordpress favourite post plugin that is scalable and could handle 1000s or 10000s of users or more. There are several different approaches that I have seen in other ...
0
votes
1answer
10 views

Getting a users username in get_user_meta

I am getting people's first and last names this way: $_UFName = get_user_meta($_uid, 'first_name', true); $_ULName = get_user_meta($_uid, 'last_name', true); where $_uid is the persons id I ...
0
votes
1answer
35 views

Save buddypress xprofile data to author meta

I have created a buddypress extended profile field "description" and would like to save the data entered to the "descripion" profile field of the user (DEfault wordpress Biography description field) ...
0
votes
1answer
19 views

Users are required to login to my site. How define user.member boolean, its permissions, and conditionally display/handle behavior based on it

Users are required to login to my site. They are redirected to the login page and not allowed past the login page until they authenticate. Once authenticated, they can access most of the website. ...
0
votes
3answers
50 views

Updating user meta on save post

I have a custom post type called 'programmes' that details seminar information. Using a form visitors to the site can signup to a specific 'programme', once they have completed the form a new user is ...
0
votes
1answer
24 views

How to add custom detail page for a Subscriber at Admin Panel

I have created a custom page which shows the list of Users(Role = 'Subscriber'). I named this page "Reporting" & It is based on wp_list_table. Now I want to show the user details (having custom ...
1
vote
0answers
28 views

Customize Avatar using user meta

I have a customer where all the users are synchronized through an API every night. This API gives me the profile picture for each user and it is stored as a user meta with meta_key = 'image'. Is ...
0
votes
1answer
38 views

Custom user field from woocommerce product

Here is what i try to get. On only one specific woocommerce product (ID 6211) i whant on the checkout a custom text field. This field should be associated with the user that check out. Then on the ...
0
votes
1answer
17 views

Creating multiple profiles under one user to assign to particular posts

I am working with WP Job Manager at the moment quite a lot and currently on each job you would like to post you enter a set of details about the company the job is with. This info is then echoed out ...
0
votes
1answer
31 views

UserMeta Changes Meta Value for Post ID

I am building a proprietary LMS(learning management system), and am attempting to add a simple bookmarking function that saves the $post->ID for the last page visited within my "course" CPT(custom ...
0
votes
0answers
30 views

ACF - Update User Meta Checkbox Values

I am using ACF and I have extended the user profile so it includes additional textboxes and checkbox values. On the frontend the user can update their user profile which is working as follows:- ...
3
votes
1answer
44 views

Can I count the number of users matching a value in a multiple value key?

I'm trying to find the number of users having a certain value in a custom field. The problem is that this custom field allow multiple values. This code works well when the meta_key allows only one ...
0
votes
0answers
19 views

wordpress query between zipcodes not working

Ok, I have this code that checks for zipcodes in the database, normally I can simply do a between query, but the zipcodes are stored in the following way: zip_code::2025 (meta_value in the usermeta ...
0
votes
0answers
17 views

Add wordpress category id to user meta with button

I want to know which categories my users are most interested in so I want to add a button to categories theme so if they click it that is saved to user meta. Similar to this: Let user subscribe to ...
0
votes
1answer
49 views

Upload files programmatically to users

i'm using pods plugin to add new custom fields to user so i added 4 files custom fields and then trying to upload files to this fields from registration page and create new user but when i upload the ...
1
vote
1answer
43 views

Creating a custom post type upon registration

I'm struggling to find the best/quick easy solution to this problem: I have a plugin that creates companies but stores all of the company info as a user so all information is in the user's profile. ...
1
vote
1answer
74 views

Update user meta using with ajax

I want to edit user meta on the front using an ajax form, this is what i have: The form has the user ID: <form id="<?php echo $current_user->ID; ?>"... This is the script:: ...
1
vote
2answers
43 views

Wordpress SQL Issue not returning correct reselts

So, I have been working on an SQL query involving the users and usermeta tables in wordpress. I am not getting the correct results. I have the following query written SELECT * FROM ...
1
vote
0answers
38 views

Update user profile information from functions.php

I have the following function in my functions.php file:- function apply_for_job() { $job_id = $_GET['job_id']; $user_id = get_current_user_id(); $prev_value = get_field('applied_jobs'); ...
0
votes
0answers
29 views

get author id outside loop for posts showed by shortcode in a page

i have a page (like: site.com/PAGE), and this page address will display all posts from all authors(posts are custom post type). if address contain the author slug like: site.come/PAGE/USER, display ...
0
votes
0answers
30 views

Textarea is not displaying user data

I am trying to make a form which is editable by user and if the user already added some text it should show that. Once user press submit button, text should be replaced with new text which is input by ...
1
vote
1answer
44 views

How to display user's avatar on their profile page?

I'm trying to figure out a simple way to display the user's avatar on their profile page. It seems like it would be a very simple thing to do, but I can't figure it out. Is get_avatar(); not the right ...
1
vote
1answer
38 views

Query posts based on the meta key values of logged-in users?

I searched in WordPress Codes, and all of the online forums and tutorials about this but could not find any relevant solution. What I am trying to achieve is to create a query that lists posts for a ...
0
votes
1answer
25 views

Save editor's value in user meta and retrieve it

I am making user meta fields. I have to implement a field named business_profile and implement editor on it. I have implemented the editor but I can't seem to either save its value or retrieve it. ...
3
votes
4answers
592 views

How to filter users on admin users page by custom meta field?

The Problem WP appears to remove the value of my query variable before it gets used to filter the list of users. My Code This function adds a custom column to my Users table on /wp-admin/users.php: ...
0
votes
1answer
59 views

Buddypress avatar image in database [closed]

I want to get path of buddy-press profile pic directly in database to be used on other then word-press platform but i am not able to find it in database.. because i can't use buddy-press functions in ...
1
vote
1answer
67 views

Display user meta by different user role

I have added in my functions.php child theme some user meta and works no problem, but I need to display this data only inside a user profile with a specific user role named "rivenditore" and if is ...
0
votes
1answer
30 views

Update another users meta

I'm using gravity forms and have a fairly extensive profile for each user. They are able to add 5 other forms of data to their profile/user meta. My users are able to send an email to a non user and ...
3
votes
1answer
53 views

Issue with foreach on duplicate meta_key's

Im storing using add_user_meta custom values that get sent to the front page of the website. Here is the php code. $user_query = new WP_User_Query( array( 'fields' => 'ID' ) ); ...
4
votes
1answer
68 views

Grouping users under parent user

What it needs to be like: one "super user" with user role company normal users with user role employee I don't want "super user" to be able to have more capabilities, especially admin-like ...
3
votes
1answer
112 views

How to get last login Access Date and time

I have seen similar question Here at First and Second. But these two are not close to my code. Let me show my code here. add_action('wp_login', 'set_last_login'); //function for setting the ...
0
votes
1answer
39 views

delete_user_meta Delete one value out of array

The code I have is not working cause the value saved as array and I'm not sure how to fix this. // Remove favorite authors from current users DB function fav_author_remove_user(){ ...
0
votes
1answer
48 views

update_user_meta add value on the top on existing value

I'm working on a plugin that will allow people to favorite authors on WP site. When you click on Favorite this author button, it will send author ID to below function and save that value in DB. ...
0
votes
1answer
30 views

Querying users by meta value and getting a strange answer

Here is my case: I am trying to get all users with some value related to a specific meta key. In other words, I don't want to select users that have nothing on that meta key (mps_finalDate). So here ...
0
votes
1answer
84 views

Checkbox not showing as checked on UserProfile (even with checked=“checked”)

I have a dynamic list of checkboxes that are showing on a user profile in the admin area (user-edit.php). A user should be able to select the checkboxes which will save their selections as an array ...
0
votes
1answer
131 views

How to change user role using hook

I have created some custom user field , so i can manage my users as dealer in my website . Now my problem is with that user role , i want to make something in my function.php to check if my custom ...
0
votes
1answer
139 views

How to echo billing phone number under My Account in Woocommerce? [closed]

We're wish to get customer's billing_phone number & then put it under "My Account" or "My Address" section. This way, our billing support can look up for a number to call from the front-end, w/o ...
0
votes
1answer
27 views

Store extra user values permanently

I need to store an extra value for users. I have made an extra field on the users page and on the "add new user" page. When adding a new user the extra value is stored using "update_user_meta": ...
2
votes
1answer
146 views

What is rich_editing?

I wanted to learn more about shortcodes with button implementation since I do not use them much and I have been doing a lot of research on the topic and the questions and tutorials I run across use a ...
0
votes
1answer
47 views

Show number of posts by logged in user

How to display the number of posts written by the logged in user. Here is what i got from the codex so far <?php echo 'Number of posts published by user: ' . count_user_posts( 5 ); ?>