Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Message Loop Issues on Custom BP Theme

  • Avatar of MrMarkG
    MrMarkG
    Participant

    @mrmarkg

    Hi,

    I’m trying to create a theme that will use a basic set of BP functions (primarily messaging) and I’m having some issues.

    I’ve created WP Pages for the main functions with a custom menu bar which also shows the user name and number of messages in their inbox using:

    <?php if ( is_user_logged_in()) : 
    			  // get the currently logged-in user
    			$user = wp_get_current_user(); ?>
    			<li><a href="../cot_inbox.php">
    			<button type="button" class="btn btn-info">
    			<span class="glyphicon glyphicon-envelope"></span> 
    			<span class="badge"><?php bp_total_unread_messages_count() ?></span>
    			</button>
    			<?php // echo the user's display_name
    			 echo $user->display_name; ?>
    			 
    			  </a>
    			</li>
    			</ul>
    

    The page cot_inbox.php is where I want to display the user messages. However, even though I haven’t yet added a message loop to the page (which I created manually) I still get “Sorry, no posts matched your criteria.”

    So my questions are:

    1) Is this a caching/stroke db issue? I did originally have a message loop on the page but removed it
    2) What would be the recommended way to create an inbox/messaging page in Buddypress, if not by creating a new PHP page and adding in the content?

    Many thanks,

    Mark

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

The topic ‘[Resolved] Message Loop Issues on Custom BP Theme’ is closed to new replies.