5 years, 6 months ago
I would like to know if there is an easy way to output the whole private message thing ( inbox and outox ) in the member’s profile without having to go to /member/messages ?
Is there a function I can call, directly in member-header, to show that, or do members absolutely need to click on the message tab, load member/messages page and scroll down to see it ?
I tried to put
<?php bp_get_template_part( 'members/single/messages' ); ?>
somewhere in my member-header.php file, but it only appears when I click on the Messages tab and load the member/messages page ( it duplicated the messaging part ).
I looked at bp-messages-template.php and saq lots of code about the “slug”. I think it has something to do with the fact that I can’t display inbox/outbox without being at the member/messages page…
Can someone tell me at least if I’m looking in the right direction ?
This will help:
Private Messages Loop
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service