Skip to:

members-loop.php – Not Updating?

  • zigsolutions


    I am trying to make some modifications to members-loop.php so that the member activity in the member list of a group does not display. This is the line that I need comment out:

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

    -The latest version of BuddyPress installed
    -I’ve tried to update the buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php file
    -I’ve tried to copy the structure buddypress/bp-templates/bp-legacy/buddypress/ over to my-child-theme-directory/buddypress/ in my child theme directory and make modifications there to my-child-theme-directory/buddypress/members/members-loop.php. (I copy the entire BuddyPress bp-legacy folder into the child theme).

    The interesting thing is that I can make edits and changes to other sections like the my-child-theme-directory/members/single/cover-image-header.php and remove activity information for individual user. It just seems that for whatever reason the listing of all the members (which I thought was controlled in members-loop.php) the edits are not showing up.

    I’m thinking that maybe it’s pulling this information from another location although I have tried to search through all files with no luck.

    Any help is greatly appreciated! Thank you so much!

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

  • shanebp


    It could be that your theme is loading its own version of members-loop.
    To confirm switch momentarily to a WP theme like 2013 and see if your edits appear.



    That was great thinking! I tried to enable 2013 with the change made to members-loop.php with no luck. It still shows the Activity.

    The theme that I am using is not a true BuddyPress theme. It’s just a normal WordPress theme but I know that shouldn’t really matter for what we are talking about I don’t think.

    I’ve also tried changing it in the bp-themes/bp-default/ which I believe is not really used anymore correct?

    Thank you so much! Any other suggestions?



    Using WP 2013 theme, I can overload the members-loop and the changes are visible.
    iow. I can’t duplicate your issue.

    Try adding some text to the top of your template overload.

    Check your plugins/bp-custom.php, if you have one, for functions re the members loop.

    Deactivate any plugins re members loop.



    Here are the items that I’ve tried based on your previous suggestion:

    – Add text to different parts of the members-loop.php file and it doesn’t show up
    – Where it calls the page in the members/index.php I’ve commented that call out:

    <div id=”members-dir-list” class=”members dir-list”>
    <?php /* bp_get_template_part( ‘members/members-loop’ ); */ ?>
    </div><!– #members-dir-list –>

    – Checked the plugins/bp-custom.php that I created and removed the code in that file.
    – Disable all the plugins that are attached to BuddyPress
    – Renamed the members folders in the following locations to members2 to see if it affected displaying the members and it doesn’t seem like it references any of the locations: buddypress/bp-templates/bp-legacy/buddypress/members/, buddypress/bp-templates/bp-legacy/buddypress/members/ and my-child-theme-directory/buddypress/members/
    – The last thing I tried was to copy the buddypress/ folder into the WP 2013 theme and run it through that completely and still I don’t see the changes. Even after I change the theme to the BuddyPress Default theme and update members-loop.php it still shows that information.

    Not sure what else to try :P. Thank you for all your help so far! I’m very stumped!



    Found it! I needed to make the change to my-child-theme-directory/buddypress/groups/single/members.php instead of the members-loop.php in my-child-theme-directory/buddypress/members/.

    That took a while but glad I was able to find it. Now instead of the Activity information I want to display the Company field which is a custom field. I think I saw the code to do this and will try it tomorrow but it should be pretty straight forward right?

    Thanks again for all your help!!



    I just added this line of code to the members.php file under where I commented the Activity information and it worked like a charm!

    //Add the Company information to the members loop
    bp_member_profile_data( ‘field=Company’ );




    Thanks for share useful information

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘members-loop.php – Not Updating?’ is closed to new replies.
Skip to toolbar