Re: Creating a page with nav tab, subnav for Buddypress profiles
woops, just noticed that i accidentally put in $bp->loggedin_user->domain – Sorry! change it to – $bp->displayed_user->domain
Should fix your issue assuming that it’s grabbing the author name correctly in the ‘loop’. [haven’t tested it] If it doesn’t work you may need to use (off the top of my head)
`<?php
$args = array( ‘author’ => bp_displayed_user_id() );
$the_query = new WP_Query( $args );
// The Loop
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) : $the_query->the_post();
// Do Stuff (This is where you would put the_title, the_content etc. whatever you want to show)
endwhile;
endif;
// Reset Post Data
wp_reset_postdata();
?>`