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!
Thanks for share useful information