Estoy tratando de agregar un campo específico utilizado enBuddyPress que muestra los juegos que juega la gente. Quiero que aparezca en la lista del directorio de miembros justo debajo de su nombre. Pero no importa lo que haga, no aparecerá.
Lo he añadido aquí:
* 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" );
?>
¿Qué he hecho mal?
Respuestas
0 para la respuesta № 1Prueba esto <?php echo xprofile_get_field_data( "games", bp_get_member_user_id() ); ?>