[英]How to display BuddyPress avatar in bbPress?
I have bbPress 2.1.2 and BuddyPress 1.6.1 installed on a 3.4.2 WordPress site. 我在3.4.2 WordPress网站上安装了bbPress 2.1.2和BuddyPress 1.6.1。
I want to display BuddyPress avatars on the forums by bbPress. 我想在bbPress的论坛上显示BuddyPress的头像。
How do I do that? 我怎么做?
I've tried 我试过了
include(WP_PLUGIN_DIR."/buddypress/bp-loader.php");
in header.php
在
header.php
and 和
called 叫
bp_get_member_avatar()
but no success 但没有成功
Try this. 尝试这个。 Let me know if this works for you.
让我知道这是否适合您。
echo bp_core_fetch_avatar( 'item_id='.get_post_author_id() );
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.