Remove 'last active' from directory, buddypress

How can I remove 'last active' from the buddypress directory list? And also replace it with an overview of the member and or something from their profile? One of the form fields for example?

http://www.mdnbeta.org/members/

Thank you

  • Michael Bissett
    • Recruit

    Hey @whosjack, you're a busy man today! :slight_smile:

    This would require the creation of a custom members loop template. You'll notice from line 57 of:

    /buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php

    That the "bp_member_last_active" function is employed:

    <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>

    You can try copying the template I referenced, placing it in:

    /wp-content/your-theme-folder-name/buddypress/members/

    And changing that function there. As you're looking to output a profile field (I'm assuming that it's one of the extended profile fields [XProfile, for short]), you should find this post to be helpful:

    https://wordpress.org/support/topic/display-profile-fields-in-the-members-directory-all-members#post-3725103

    Hope this helps! :slight_smile:

    Kind Regards,
    Michael

    Edit: Forgot to write in the line number & path to the file in question before, sorry about that!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.