在成员和群组循环中使用 BuddyPress 封面图像

在成员和群组循环中使用 BuddyPress 封面图像

Codex Home → Using BuddyPress Cover Images inside the Member and Group Loops
Using BuddyPress Cover Images inside the Member and Group Loops

Since BuddyPress 2.4 Groups and Member are able to upload Cover Images to be used on the single Group and Member pages. If you would like to use Cover Images when building custom loops you can use the following code to retrieve the cover images whilst inside your loop.
Inside Groups Loops

'groups',
'item_id' => bp_get_group_id(),
));
?>

<img src="">

Inside Members Loops

'members',
'item_id' => bp_get_member_id(),
));
?>

<img src="">

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注