Skip to main content

All Questions

Tagged with
0 votes
0 answers
23 views

Problem with custom user fields default value and retrieval

I created 2 custom fields for users on my site, a Company name and a checkbox for whether a user has download access or not. Here is the snippet for the functionality: add_action( 'edit_user_profile', ...
Miroslav Kazimirovic's user avatar
0 votes
0 answers
23 views

Need some suggestions with Relationship fields and CPT/ACF

I am tasked with creating a Student/Teacher Portal where among other things, I need a way to build a way for Admins to assign Teacher with Students based upon Subject and Age group (Age for students). ...
RitZz's user avatar
  • 1
1 vote
0 answers
214 views

Create Unique and Customized User ID for Website Members in WordPress

I want a Feature which can allow Custom User ID creation at Registration on WordPress. This will be different from the User ID that WordPress creates at Registration. This one is something that is ...
Gamicord's user avatar
  • 111
0 votes
1 answer
14 views

Display Additional Info

Hello guys, i have this problem. I added this additional field but i can't get the value for that specific field I'm using this code but shows nothing: ($field['type'] === 'cedula' && !empty($...
ingenierodos neuromedia's user avatar
0 votes
1 answer
1k views

User query - getting values for custom meta keys/fields

I am beginner at customizing wordpress but have some experience in PHP coding. I'm struggling to figure out how to display all existing meta keys (custom fields defined by ACF) for all users that have ...
Vesna Mačković's user avatar
0 votes
1 answer
956 views

ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?

I am looking for a way to query users based on a user meta entry for an advanced custom field which has a given value and itself is from a given layout type. For example, let's say I have the ...
David Wolf's user avatar
2 votes
1 answer
4k views

ACF: How to get the full field name (meta_key) by a field key?

In Advanced Custom Fields: Which function can I use to get the full meta key of a field by its field key? So, if I have a field with the name some_field and the field key field_sd54hfs5df: How do I ...
David Wolf's user avatar
0 votes
1 answer
50 views

Delete user meta but only if found in array

I created a SAVE button that saves a page's URL to the user meta in an array. I'm trying to now create a REMOVE button but I'm finding that when delete_user_meta is used it deletes all entries in the ...
Jayce's user avatar
  • 3
0 votes
1 answer
2k views

How to get data from user meta custom fields created with acf-pro plugin?

I need to get user meta from the database and WordPress has the awesome function get_user_meta() for this purpose but, the problem is I need not default meta field. I need to get data from a custom ...
Victor Sokoliuk's user avatar
0 votes
1 answer
694 views

How to add fields in custom registration form, validate it and aave to db? [closed]

I use a WP theme with a custom registration form. I want to add two fields to it (for phone number and company name). What to add to the php file of the form and what to the function file of theme ...
Vladimir Dimitrow's user avatar
1 vote
1 answer
3k views

meta_query for a string inside a meta field containing a comma-separated list

In my project the WP users have a custom meta field "usergroup" containing a comma separated list of values. The meta field can contain values like this: WS,CT,IS,TS,TS-IS,TS-WS,TS-CT Now I ...
Nicolai's user avatar
  • 13
0 votes
2 answers
463 views

How to save multiple values with same meta_key, each value linked to another tag id

Let´s say a user signs up to multiple memberships, each on a different date. User signs up to: Membership A on 05.03.2021 Membership B on 17.05.2021 Membership C on 29.07.2021 I would like the dates ...
Elv1s's user avatar
  • 3
1 vote
1 answer
31 views

How do I create a column in Users list and display user data from custom registration field

Our registration form has a custom field for Hospital Name. In SQL wp_usermeta the meta_key is user_registration_hospital. I have tested a number of snippets in the functions.php file to add a "...
spamis's user avatar
  • 11
0 votes
2 answers
962 views

check for duplicate user meta data before updating

I have added the ability for a social security number to be added for users. This field can be edited on the individual users screen but the data is saved to the usermeta table. When editing a new ...
user10980228's user avatar
0 votes
1 answer
70 views

Custom Field Repeating When Using foreach

I'm trying to display user avatars by login user name using custom fields like this - And here's the code - function user_avatar() { $name = get_post_meta( get_the_ID(), 'user_name', true )...
Brad Dalton's user avatar
  • 6,936

15 30 50 per page
1
2 3 4 5