I think buddypress has a get* version of that function that returns the value instead of showing it on the screen.
So just cut the returned string after a certain amount of characters, like 50:
$profile_bio = bp_get_member_profile_data( 'field=Brief Biography' );
if(strlen($profile_bio) > 50))
$profile_bio = substr($profile_bio, 0, 50).'...';
echo $profile_bio;
If there’s no get function you can always use output buffering:
ob_start();
bp_member_profile_data( 'field=Brief Biography' );
$profile_bio = ob_get_clean();
// rest of the code is the same
Related Posts:
- How to display random users with avatars
- How to update BuddyPress xprofile fields programmatically? [closed]
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- How to set the default avatar of buddypress avatar [closed]
- Dequeue script to prevent javascript event conflict on wordpress child theme
- Hide tab Buddypress profile for visitors, not logged in users
- How do I pull avatar from post using BuddyPress? [closed]
- Changing author links on homepage to buddypress profiles – without affecting ability to link to author archive throughout the site
- Unhook the comment form in Buddypress
- How can i hide content if not friend in Buddypress? [closed]
- Sessions in word press [duplicate]
- How do I get the current edit page ID in the admin?
- Order posts (across the whole site) by metadata date
- Disable visual editor on one specific page
- Apply custom role capabilities to administrator (without plugin)
- Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php?
- In a WordPress plugin, how do you output HTML code inside the DOM header? [closed]
- Different ‘WP_CONTENT_URL’ for different subsites in Multisite setup?
- Linking thumbnail to full size image
- is_front_page not working in functions.php
- VERY new to coding – keep breaking site trying to add to functions.php
- Preferred Use of home_url()?
- How to enqueue JavaScript for specific WordPress pages only?
- Functions.php reverted to new one
- Exclude Empty Child Categories in Menu
- Get page slug and assign a variable within functions.php
- Make “sidebar template” the default template for new pages
- Custom roles can’t access to wp-admin
- How to specify which Gutenberg blocks are available in the editor for a page template
- Refactor create_function
- Logic to Print/echo a css class only for 1st post and ignore all post after 1st? [closed]
- Attach parent category template to all subcategories
- How to insert a text in all pages and posts before or after specific places?
- Add class or ID to any WordPress function
- How to filter out shortcode when displaying the_excerpt() in the loop?
- Remove Font-Awesome MaxCDN Link & Load Locally
- How to remove howdy dropdown menu content
- Change Admin Bar “Visit Site” URL
- exclude a category from a search on a specific page
- How do I pass arguments for multiple functions hooked to a single action?
- Stop turning small dashes into longer ones
- Execute function after a post has been published
- Last updated date function
- Possible to display shortcode based on the category?
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- How to set default archive image without overriding first attached image? [closed]
- Toggle User Roles with button
- Passing a variable via wp_head and then calling it on the page
- Hard-coding custom menu elements for menu manager
- Limit length of first excerpt in the loop
- Do not add content filter on page template
- Function to update post_meta based on existing post_meta
- check if the user is owner of current page
- Custom styles.css sheet for visual editor
- Publishing just a Facebook URL without full code snippet
- Filter an WordPress Function in (general-template.php)
- attachment page template? only show attachments for current post?
- Conditional statement not working in function
- Remove the month and year from a WordPress Date?
- Show some menu sub items as dropdown under a menu item
- Set “woocommerce_is_purchasable” to false for specific “$product->is_stock_status”
- How to insert class in each list of categories?
- The correct way to add a JavaScript in the functions.php [closed]
- How to remove some item from WordPress Dashboard for user Author
- How to make a new function that includes a template
- Disabling Author Page only for subscribers
- Showing user profile data on front-end
- How to register a menu based on a ACF condition
- Breaking up multiple words and inserting an image after first word
- Why is this function crashing my wordpress installation? [closed]
- colorbox not loading in
- Can I use ‘Featured Image’ as a hero image and a thumbnail?
- How to Override Page Template if URL matches query?
- Save_post – Warning: Cannot modify header information
- Woocommerce Display Discount On cart
- Modify content inside post before first publish
- Pass an argument into a function to extract from array
- how to remove a tag in the_category function
- Copying a widget class to functions.php results on a blank page
- WordPress undefined function error on using add_action() in functions.php
- How to create admin ajax function for my contact form
- No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file
- Changing the register url is not working
- Newest comments first not working
- Pass arguments to function class with do_action()
- How to a override parent theme page that has been included with require_once?
- how to display featured image for single post for a specific category
- Database Query not working
- Can I use a function to return HTML and the result of another function?
- save_post hook – headers already sent?
- Excerpt length: get 2 paragraphs
- How to use WP_rewrite?
- Wp get archive only text not link
- can not call functions in function.php
- Display post_meta-by_key on product catalogue
- What are the parameters are used in add_action and filters?
- Does functions.php apply to every page?
- Creating mixture of shortcodes to use in the visual/text editor
- How to overwrite image if it already exists – WordPress, Gravity form
- Change TinyMCE undeline outpout