Skip to:
Content
Pages
Categories
Search
Top
Bottom

display email in member directory

  • Avatar of rthomasTechnology
    rthomasTechnology
    Participant

    @rthomastechnology

    Hi Everyone,

    I’m trying to display a users email address (the one used when they sign up) in the members directory. I managed to do it by accident at one point, but didn’t save what I had done. I’ve been inside of the members-loop.php, but I seem to be missing something simple. Does anyone have a sample of the code that would display the users email?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of danbp
    danbp
    Moderator

    @danbp

    Avatar of rthomasTechnology
    rthomasTechnology
    Participant

    @rthomastechnology

    That’s not it. I’m in members-loop.php. That (as I understand it) is the file that controls what people see when they go to the default members directory in BuddyPress (the page that shows you everyones icon, their name and when they were last active). I want to add the users email addresses to this screen. At one point I found a line of code and pasted it between:

    <div class=”item”>
    <div class=”item-title”>
    “><?php bp_member_name(); ?>

    <?php if ( bp_get_member_latest_update() ) : ?>

    <span class=”update”> <?php bp_displayed_user_email(); ?></span>

    <?php endif; ?>

    </div>

    and

    <?php 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=email email’ );
    */

    ?>
    </div>

    which made the email addresses show directly under the names of the site members. I can’t find that code again.

    Thanks
    Randy

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.