Possible Bug: When Displaying a Members Loop Above Cover Image on Member Profile
-
Hi,
When trying to run a simple custom member loop (like the code example at bottom of page) on a member’s profile page, directly above their cover image header (determined it only happens when the custom loop code is ran anywhere before the <?php do_action( ‘bp_member_header_actions’ ); ?> section of that code ), it breaks the private message button.
When you click the private message button to send a message to a member it tries to email the first member on the custom members loop instead of the actual member. Very odd.
I need this working on and tested this on multiple Buddypress themes that utilize their own Buddypress folder structure (e.g., wp-content/themes/theme_name/buddypress) instead of those that rely on default buddypress files (e.g., wp-content/plugins/buddypress).
I think this is a bug in Buddypress (only when using themes that override default buddypress files with their own as mentioned previously), however, I’m hoping somebody will have some answers or tips to get a simple members loop to display above the cover image header on a members profile. This should just work but doesn’t, very weird.
Interestingly, a members loop displays above the cover image header fine on all themes that use the Buddypress default files including default WordPress themes like 2015.
This appears to be a bug. Ideas? Any tips to get a members loop to display above cover image headers on member profile pages?
I tried everything. Disabled all plugins of course, tested on 10 themes (3 that override buddypress files, 5 that don’t, and 2 default WordPress themes). Breaks only on themes that override buddypress files with their own.
Additional Testing Notes: During my testing I outputted a default Buddypress widget (Buddypress: Whos Online widget – which uses a custom loop itself) above the cover image header and it didn’t break the private message button. However, when cloning that widget as a custom plugin and performing the same procedure to output it above the cover image header, it breaks the private message button on all themes that override Buddypress files but not those that utilize the default Buddypress ones.
<?php if ( bp_has_members( 'type=newest&max=6' ) ) : ?> <?php while ( bp_members() ) : bp_the_member(); ?> <a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar('type=full&width=125&height=125') ?></a> <?php endwhile; ?> <?php endif; ?>
Thank you for your help! I know this is a long thread. Wanted to be thorough.
- The topic ‘Possible Bug: When Displaying a Members Loop Above Cover Image on Member Profile’ is closed to new replies.