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?
- Ways to have multiple front-page.php templates that can be swapped out?
- Where can I find a schema of wordpress plugin core architecture?
- 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 to Loop Plugin Option Field Set?
- Automatically Creating Posts for Popular Forum Topics or Products [closed]
- Save and retrieve custom plugin options value
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- Using tabs for wordpress plugin
- How to handel multiple checkbox field in the admin settings page with Settings API
- Custom plugin settings: clicking “save changes” does not display success message
- 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 to notify users of blog updates a la Admin Plugin Update notifications?
- How can I let users to access plugin functions based on roles?
- check for the current screen
- Template for custom post type shows all posts instead of just one
- 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?
- Plugin set default setting value when it activated
- post expire after x days
- Get page slug in Admin menu
- Stop the form of beign submitted on “Save changes” custom option page
- Add a Custom Permalink option in the Permalink Admin Screen?
- Settings API – input always updates over validation
- plugin to search entire posts, blogs, forum, users [closed]
- Can’t get custom posts of taxonomy to show
- Wp die causing 500 Internal Server Error?
- redirect on theme switch – WordPress
- How to get member list based on role by using buddypress?
- 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
- Integrate BuddyPress & Facebook
- How to get specific setting by settings_fields()?
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Most efficient way to use classes to create admin pages using Settings API
- Show admin notice on incorrect value on form field
- 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
- Cannot display settings field
- 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?
- There was a problem uploading the cover image in buddypress, while uploading profile image?
- 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?
- Create post loop that displays pages by cat ID
- Place content inside the Post Loop
- Buddypress Member list not showing admin and mods
- WordPress Settings – Custom Button actions
- Option page not updating multiple records in settings api
- WordPress 4.1 plugin only save 1 field to database
- Cannot reset a loop in a plugin template
- Creating a register settings class that supports extended classes
- Unable to Retrieve Setting Value for my Plugin
- Displaying image from a repeatable group
- Validating values using Settings API?
- Multiselect value in wp_query
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- ‘all’ hook and add_action issue (class based plugin)
- Fake Single WordPress Post (Page) Loop
- Edit Buddypress Groups Activity Page Text [closed]
- How to Change MU/BuddyPress Group Blog New Installation Defaults [closed]
- 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?
- Make buddypress posts likes count show to all users [closed]
- Buddypress Plugin for register user from other site’s [closed]
- Extend my plugin settings with hooks
- I want to remove the register/login WordPress top bar from my website
- 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?
- BuddyPress group filter
- Outputting custom field query from a plugin to the website header
- Different login and logout for wp-admin while using buddypress
- How to display content depending on the Woocommerce Product Category
- move setting data from wordpress api to codestar freamwork
- Page with redirect
- FacetWP custom display based on post type [closed]
- How to create a buddypress group automatically if a topic is created
- When to store store plugin options as a single database record?
- Custom Login and Password Reset for BuddyPress Website
- BBpress – No topics & reply post_type accessible for admin users
- Randomly display activity posts on home page with buddypress