To get the WordPress side and XenForo side matching, the following was added to the header.php of a child theme. This adds the username with a link to the profile page within XenForo as well as a login/logout menu item.
[php] if ( is_user_logged_in() ) {wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) );
global $current_user, $XF;
get_currentuserinfo();
echo ‘
‘;
} else {
wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) );
echo ‘
‘;
}
[/php]