Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道我如何在好友新闻循环中获取会员 ID:
`<?php while ( bp_members() ) : bp_the_member(); ?>`
有 bp_member_name,但我不知道如何获取 id....有什么想法吗?
我相信你可以使用:
bp_get_member_user_id()
那应该让您获得会员ID。
希望这可以帮助。
我在好友新闻论坛中找到了答案:
bp_member_user_id() 回显 ID
和 bp_get_member_user_id() 获取 ID