Try this:
$author_id = get_the_author_meta('ID');
echo bp_core_fetch_avatar ( array( 'item_id' => $author_id, 'type' => 'full' ) );
Defaults:
array(
'item_id' => false,
'object' => 'user',
'type' => 'thumb',
'avatar_dir' => false,
'width' => false,
'height' => false,
'class' => 'avatar',
'css_id' => false,
'alt' => '',
'email' => false,
'no_grav' => false,
'html' => true,
'title' => '',
);
Related Posts:
- How to display random users with avatars
- How to set the default avatar of buddypress avatar [closed]
- Use local image for default avatar
- How to update BuddyPress xprofile fields programmatically? [closed]
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- How to limit character length in BuddyPress function output [closed]
- Dequeue script to prevent javascript event conflict on wordpress child theme
- How to add custom user avatar in wordpress
- Hide tab Buddypress profile for visitors, not logged in users
- 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]
- BuddyPress Edit activity function good practice
- set a Gravity Forms uploaded image as a user’s avatar
- Child Theme functions.php has no effect
- Setting a cookie in functions.php and it gets deleted when working on an other function
- Hide certain post types from editors
- Problem with add_rewrite_tag
- Add functionality to post editor
- Update add_image_size
- Language switcher for subdomains
- custom post with loading script per single post
- getExcerpt: Make ellipsis appear only if character limit is reached
- Define an extra field for all pages (with no plugin?)
- Function to draw random image from specified category destroys site logic – why?
- Issues with add_query_arg() not passing a variable
- update_post_meta not working in function
- WordPress permanently logging users out
- What add_action reference should I be using or should I use do_action?
- What is wrong with functions.php? Fills error log with same error
- Function returning queried meta value based on current post ID
- List all post title in category using functions.php
- wp_enqueue_script only works outside of action
- How can I include user meta information in the resulting array of a WP_User_Query?
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Adding custom field in menu options [duplicate]
- Quicktags external functions file
- Pagination in Search result
- Custom field not updating via functions upon publishing
- Pass max posts to Javascript
- Integrate WP Tiles into existing loop (index.php) and theme
- Updating site content after an AJAX call without a page reload
- disable WP_error: authentication_failed
- Function the_content
- Problem in outputting shortcode
- Edit TinyMCE Button Functionality
- need help with ‘… read more’ excerpt in functions.php
- Problem in shortcode outputting content
- Load a Child Theme’s style.css just before the closing tag
- Load CSS conditional on custom field is present
- Can’t wrap my head around this function – any help would be appreciated
- Modify sub_menu function to show pages below a specifically set page
- Figure inlined width trigger distorted layout
- Changing the color of post title [closed]
- Add custom class to all URLs on entire site
- wp_nav_walker that interacts with widgets to setup mega menu
- How To Get WordPress Categories Last Update Date?
- save_post hook – headers already sent?
- Expanding a function to call a plugin or show a link
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- How to add a meta information to the URL?
- Is it possible to change parameters of Parent theme function in the Child theme?
- Why are some custom javascript files working but some are not
- Getting error while trying to use custom comment function
- Error function main() is a non-object to construct my Ajax.php
- Load WP Admin scripts in a child theme functions file
- List Most Read Posts from last 7 days (with custom post type and other meta queries)
- Adding stick post button to edit post page
- add_role menu pages are not visible
- Preventing PHP Execution in Parent Theme
- Excerpt length: get 2 paragraphs
- Sanitize html, where to sanitize
- Settings in functions.php used by a plugin
- Remove heading tags on line break
- WordPress Javascript Widget jQuery Dependency Issue
- wp_upload_bits – define (sub)folder / (sub)directory before filename?
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- Apply height and width for the_content() inside youtube video tag
- How to mirror exactly the left admin menu on front end?
- Adding a filter with custom function to the menu / navigation
- Check if excerpt is empty at loop-portfolio
- Mail function not working with user accounts
- Open image size links in a page instead of direct image link
- Function to get the name in database table from the comma separated string
- Show custom default avatar instead of gravatar
- Function not recognizing page id?
- Add Function For Instances of Custom Text in Multiple Category IDs to display in post content
- Move captions under gallery images in twenty fourteen theme
- Increase Comment Author Gravatar Size On WordPress Default Comment Function
- Random text changing to weird icons in both admin & front end
- Register a widget area when a theme option has been saved?
- Blank child theme – functions.php problem
- Force changing the Site Title and add link
- Allow the access over wp-login.php
- Meta Box value not been pulled in
- Create input select image URL?
- Show the post date using the wp_get_archives() function?
- How to add a piece of code in function
- Why does my visual post editor break when I try to add a TinyMCE button?