The reason you get the “First” Array is that you don’t use the “single” option of the get_user_meta function. Try this:
$arr = get_user_meta($user->ID, 'wpcf-team-experience-member-type',true);
$options = array();
if(is_array($arr)){
foreach($arr as $key => $value){
foreach($value as $arrvalue){
$options[] = $arrvalue;
}
}
}
var_dump($options);
This should dump all the options that maybe are in there.
Happy Coding,
Kuchenundkakao
Related Posts:
- Building a scalable WordPress favouriting plugin – one serialised meta value array or many meta records
- Upload files programmatically to users
- Redirect to another page using contact form 7? [closed]
- Auto populate a user custom field from another user custom field
- Get all user meta_keys and then group users by matching values
- How do I hide posts across all loops based on the value of a custom field?
- Using Wishlist Member and I need to access a user’s status
- update_user_meta() misfires sometimes
- Custom User meta field display
- Cannot update user display_name field
- Execute js files doesn’t seem to work
- WordPress metaboxes – textfield suggestion automatically populated
- Char limit on custom blog-post form? [closed]
- Unable to select image using custom image field type
- Every new post/draft has a custom field variable “yst_is_cornerstone” showing
- Custom Post Type Fields
- How do I enforce users to fill a determined custom field using WyPiekacz?
- Shortcode to update user meta
- Adding class to last list item? Not WP generated
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Sticky option for custom post types without using custom fields or plugins
- Any idea how to get something like this to work? [closed]
- What form should the $query media query array have for an Elementor page builder function? [closed]
- Integer in Array returns null
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- Order posts by meta key ( Using ACF )
- How to add fields in the WordPress editor?
- Add to array, redirect and display
- Search users with custom meta data
- WordPress function to add text warning on every pages [closed]
- Add user meta after a user has registered and logged In [closed]
- Add key and value to an array in another file
- Adding option values as an array using a multi selectable select box
- WordPress /users/me endpoint request forbidden
- How to add an extra, independent set of custom fields?
- Price comparison table based on Custom Post Type?
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- How can I store data from custom fields to custom tables?
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- Custom Fields for Page Edits
- “After file loaded” action
- Plugin that lets visitors Like a post (not facebook) and stores likes in custom meta?
- Parent Child Custom Fields with Advanced Custom Fields
- grab or load text on demand
- How can I add user profile fields to my mailpress mailout
- Dictionary-style definition list plugin
- Advanced Custom Fields Plugin – Images not displaying
- Adding custom Field To The Posts Listing
- How to create repeater field manually, without plugin (ACF Pro)?
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- WordPress Phone Field Check (use numbers, spaces and pluses)
- What snippet do I need to type to show my ACF field show up on my theme?
- Can export gallery but can’t import it Wp all import
- Is there a way to make [Table Of Content] plugin while not using revision data?
- Table of contents (TOC) plugin is not showing header tag
- Linking form to user meta fields
- Best approach to make all tags searchable by the wordpress search function
- need to find duplicated meta value in custom filed and view the posts that have the same value
- Create a pdf from the entries in DB
- Help with autofilling field
- how to find out which plugin disable custom field for post
- Get user edit functions in frontend for site admin
- Preset custom fields
- What database state changes happen after a post is manually “updated” with no changes?
- Register PODS Custom Field with WPGraphQL [closed]
- get_post_meta shortcode returns empty field
- Creating an array from form inputs before it is posted to the options database
- custom fields not displaying on wordpress site
- WordPress hide post from custom post-type on a single page
- Create multiple posts when a custom post is created
- Adding an item to an anonymous array inside a filter?
- Why Custom fields description is not working WordPress Version 5.4.2?
- Adding Custom Endpoint in WordPress Rest API
- General Term for this form Field
- How do I change the functionality of an image slider which is part of ACF?
- Make custom post types using ACF
- User updating their profile wipes my custom fields
- Problem Advanced Custom Fields PRO
- How to pass multiple custom fields as shortcode’s parameters
- How to make this custom capability work? [duplicate]
- How To Export User’s Custom Fields in CSV or XLSX
- Meta Key array building with multiple input values from fields
- Custom product page’s style for printing
- Custom plugin issue – Notice: Trying to get property of non-object in
- Store custom field’s multiple values in one user meta key
- If I am not writing a theme, how do I add custom fields to a user for a plugin
- Plugin error “array_key_exists(): The first argument should be either a string or an integer” [closed]
- Taxonomy question
- Modifying meta keys in User Meta Pro using user_meta_pre_user_register not working
- How to get post that has non zero or greater than zero meta value
- How can I call functions from a custom plugin?
- Creating Nested custom fields
- Problem with conditional woocommerce custom checkout field
- Create Biographies
- How to use get_user_by in plugin
- WordPress doesn’t save a post revision when changing CMB2 custom fields
- Do something with thumbnail image on post publish
- Confusing problem with displaying message recipient metadata
- How to add wordpress plugins in along with my standalone theme