Hello.
I thought I could represent the message tab on any page by inserting the code from messages.php as a PHP snippet on other pages. However, nothing is being displayed on the page, and it seems to be returning 0. I want to display the content of the message tab content on pages other than the logined user’s profile page. Are there any limitations, such as it only appearing on pages with ‘slug=members’? I would appreciate some advice on how to display the content of the message content to other page.
messages.php
>>>
<nav class=”<?php bp_nouveau_single_item_subnav_classes(); ?>” id=”subnav” role=”navigation” aria-label=”<?php esc_attr_e( ‘Messages menu’, ‘buddypress’ ); ?>”>
<ul class=”subnav”>
<?php bp_get_template_part( ‘members/single/parts/item-subnav’ ); ?>
</nav><!– .bp-navs –>
<?php
if ( ! in_array( bp_current_action(), array( ‘inbox’, ‘sentbox’, ‘starred’, ‘view’, ‘compose’, ‘notices’ ), true ) ) :
bp_get_template_part( ‘members/single/plugins’ );
else :
bp_nouveau_messages_member_interface();
endif;
?>