0
我試圖在BuddyPress中添加一個特定字段,用於顯示人們玩什麼遊戲。我希望它顯示在他們名下的成員目錄列表中。但不管我做什麼,它都不會出現。bp_member_profile_data - 無法獲得顯示的結果
我在這裏補充吧:
* Fires inside the display of a directory member item.
*
* @since 1.1.0
*/
do_action('bp_directory_members_item'); ?>
<?php
/***
* If you want to show specific profile fields here you can,
* but it'll add an extra query for each member in the loop
* (only one regardless of the number of fields you show):
*
* bp_member_profile_data('field=the field name');
*/
bp_member_profile_data('field=games');
?>
我有什麼錯?