You can use the function xprofile_get_field_data( $field, $user_id, $multi_format)
* @param mixed $field The ID of the field, or the $name of the field.
* @param int $user_id The ID of the user.
* @param string $multi_format How should array data be returned? 'comma' if you want a
* comma-separated string; 'array' if you want an array.
Related Posts:
- Manually set global $post vars with an ID, in order to use template tags
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- Hook if somebody saves plugin options?
- Output before and after the loop
- How to override normal WordPress search in Buddypress? [closed]
- Define Function in functions.php or plugin and call in theme loop
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- How can I include a setting that has a variable number of values in a settings page using register_setting?
- Saving Plugin settings to the database
- How can I let users to access plugin functions based on roles?
- check for the current screen
- Fastest way to loop through all posts?
- How does WordPress ensure plugins run at the same time and how does it solve a plugin’s dependency on another one?
- post expire after x days
- Settings API – input always updates over validation
- redirect on theme switch – WordPress
- Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?
- Can’t get plugin settings page to save data
- Two people sharing user in WordPress [closed]
- Why this global array is returning NULL from a callback function
- Display content from custom post type if match to main post category
- Wp favorite posts get user favorites in profile using buddypress [closed]
- how do i remove posts from a WP_Query so the pagination is right?
- Override global query results without hooks
- rt media plugin count not working in shortcode [closed]
- Use wordpress functions in another PHP file
- How to get specific setting by settings_fields()?
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Add An Activity Filter By User Id In Buddypress Plugin
- Buddypress – Add the post_id in the bp_activity_add function
- After plugin activation all users marked as Spam
- Insert content of a post into another
- Checkbox conflict in my custom plugin admin page
- Problem with the Loop – want to limit the access to three free articles
- Bulk update all posts from plugin settings screen
- media page returnig to 404 in rtmedia [closed]
- Implementing an image hosting website using WordPress? [closed]
- Change the display of Settings API (do_settings_sections)
- Settings API saved values not getting shown in the dropdownbox
- WordPress Plugin manipulate have_posts()
- Calling the_excerpt from inside a plugin template file
- Recent posts per category loop?
- Can I use register_settings and unregister_setting once the settings page has loaded?
- Duplicate New User Registration notices (BuddyPress and bbPress both installed)
- Bulk update wordpress posts
- How to get a list of bundled products using wp_query in woocommerce
- Trying to add_action in a loop
- Update WP option by plugin
- How to save plugin custom settings page fields
- Get post content from outside the loop with plugin shortcode usability
- BuddyPress: filter member based on Xprofile Field
- How to change php variable value using wp setting api
- Settings API Message Error is global
- 500 error when updating plugin option
- Remember the Meta Value With Radio Buttons
- Output after specific post in the loop
- Plugin is creating posts twice
- Polldaddy doesn’t show up on own theme
- How to enable WPML in BuddyPress Multilingual Plugin in a single website? [closed]
- Do WordPress plugins suport multisite site?
- Add custom PHP and HTML to the_content()
- How to modify the Loop from a plugin (instead of a theme)
- BuddyPress admin bar links are broken [closed]
- Using BuddyPress > ‘Register page’ [closed]
- Summary and Comments on Main landing Page
- Editable select options in quick edit OR in plugin settings
- How to save Setting pages data to the database?
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- HTTP Error upload ( localhost )
- How do I render content from a wp_editor in a plugin setting field?
- Settings Fields not showing up in Submenu Page
- How to save the option’s new values plus old value without overwrite old one
- Limiting buddy press features based on membership level (PMPro)
- How do I add languages?
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- How do I add a textarea (multirow) option to my WordPress plugin?
- Place content inside the Post Loop
- Buddypress Member list not showing admin and mods
- WordPress Settings – Custom Button actions
- Creating a register settings class that supports extended classes
- Unable to Retrieve Setting Value for my Plugin
- Displaying image from a repeatable group
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- ‘all’ hook and add_action issue (class based plugin)
- Fake Single WordPress Post (Page) Loop
- how do you point ‘screen_function’ to a function in the same class? [closed]
- single.php fires more than once after clicking on any post to view with different post id each time
- How do i use postMash to order posts in a custom loop?
- Buddypress Plugin for register user from other site’s [closed]
- Extend my plugin settings with hooks
- Getting Post Permalink Outside of Loop Not Working
- Trying to display posts but getting the pages as output
- how to set approval of admin for wordpress posts submitted by the user?
- How to dispaly post informations (such as titles) in an admin plugin menu page?
- How to display content depending on the Woocommerce Product Category
- move setting data from wordpress api to codestar freamwork
- Page with redirect
- When to store store plugin options as a single database record?
- Custom Login and Password Reset for BuddyPress Website
- Randomly display activity posts on home page with buddypress