<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Display buddypress username in navigation &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 11 Oct 2025 17:55:46 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-153277</guid>
					<title><![CDATA[Display buddypress username in navigation]]></title>
					<link>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-153277</link>
					<pubDate>Wed, 26 Nov 2014 15:55:52 +0000</pubDate>
					<dc:creator>Gatera</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>I wanted to display the user&#8217;s username in the navigation menu when they are logged in. I found a few solutions but they do not work perfectly.</p>
<p>First I used this function bp_loggedin_user_id() and it displays the ID number nicely, with no problem. However since what I need is the name I went on to use bp_get_displayed_user_fullname()</p>
<p>When I am on the profile page, the user&#8217;s name displays nicely, but when I navigate to another page, nothing shows.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-153501</guid>
					<title><![CDATA[Reply To: Display buddypress username in navigation]]></title>
					<link>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-153501</link>
					<pubDate>Wed, 26 Nov 2014 21:04:41 +0000</pubDate>
					<dc:creator>Friech</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there.</p>
<p>Thanks for writing in! To assist you with this issue, we&#8217;ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.</p>
<p>Cheers.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-153788</guid>
					<title><![CDATA[Reply To: Display buddypress username in navigation]]></title>
					<link>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-153788</link>
					<pubDate>Thu, 27 Nov 2014 08:07:59 +0000</pubDate>
					<dc:creator>Gatera</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>I am currently still mainly working on my localhost, however I have a demo site up at village.rw</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-154120</guid>
					<title><![CDATA[Reply To: Display buddypress username in navigation]]></title>
					<link>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-154120</link>
					<pubDate>Thu, 27 Nov 2014 18:12:54 +0000</pubDate>
					<dc:creator>John Ezra</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Does your demo have the same setup as you local? Also note since this has to do with a 3rd Party plugin, depending on what we find, we may or may not be able to support the issue.</p>
<p>Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:</p>
<p>&#8211; Link to your site<br />
&#8211; WordPress Admin username / password<br />
&#8211; FTP credentials</p>
<p><strong>Don&#8217;t forget to select Set as private reply. This ensures your information is only visible to our staff. </strong></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-154447</guid>
					<title><![CDATA[Reply To: Display buddypress username in navigation]]></title>
					<link>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-154447</link>
					<pubDate>Fri, 28 Nov 2014 13:41:56 +0000</pubDate>
					<dc:creator>Gatera</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>No. The demo does not have the set up am currently inquiring about. I found how to display the name. I put the following code in my functions.php and it works great.</p>
<pre class="prettyprint">add_filter( 'wp_nav_menu_items', 'my_custom_menu_item');

function my_custom_menu_item($items)
{
    if(is_user_logged_in())
    {
        $user=wp_get_current_user();
        $name=$user-&gt;user_firstname; // or user_login , display_name, user_lastname
        $ppicture=$user-&gt;bp_displayed_user_avatar;
        $items .= '&lt;li&gt;' .$ppicture;
        $items .= '&lt;li&gt;&lt;a href="' . bp_loggedin_user_domain( '/' ) . '"&gt;'.$name.'&lt;/a&gt;';
    }
    return $items;
}</pre>
<p>However I am now trying to get the buddypress profile picture to show up too. I&#8217;ve run into the same issue once again. when I use the function bp_displayed_user_avatar(); the picture only shows when I am on my profile. When I navigate elsewhere it doesn&#8217;t show. I am thinking there has to be some code in the profile page that enables the function to return a result. And that code is missing on other pages which is why it returns empty. But I don&#8217;t know what it is exactly.</p>
<p>Kind regards</p>
<p>Vital</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-154860</guid>
					<title><![CDATA[Reply To: Display buddypress username in navigation]]></title>
					<link>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-154860</link>
					<pubDate>Sat, 29 Nov 2014 03:27:10 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Gatera,</p>
<p>How about this one?</p>
<pre><code>add_filter( &#039;wp_nav_menu_items&#039;, &#039;my_custom_menu_item&#039;);

function my_custom_menu_item($items)
{
    if(is_user_logged_in())
    {
        $user=wp_get_current_user();
        $name=$user-&gt;user_firstname; // or user_login , display_name, user_lastname

ob_start();
bp_displayed_user_avatar( &#039;type=full&#039; );  
$ppicture= ob_get_clean();

        $items .= &#039;&lt;li&gt;&#039; .$ppicture;
        $items .= &#039;&lt;li&gt;&lt;a href=&quot;&#039; . bp_loggedin_user_domain( &#039;/&#039; ) . &#039;&quot;&gt;&#039;.$name.&#039;&lt;/a&gt;&#039;;
    }
    return $items;
}</code></pre>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-155632</guid>
					<title><![CDATA[Reply To: Display buddypress username in navigation]]></title>
					<link>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-155632</link>
					<pubDate>Mon, 01 Dec 2014 09:12:20 +0000</pubDate>
					<dc:creator>Gatera</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>Thanks for the help. It works even better than what I had. However there is still the issue of it only showing when am on the profile page. When on another page nothing shows.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-155751</guid>
					<title><![CDATA[Reply To: Display buddypress username in navigation]]></title>
					<link>https://theme.co/archive/forums/topic/display-buddypress-username-in-navigation/#post-155751</link>
					<pubDate>Mon, 01 Dec 2014 12:12:11 +0000</pubDate>
					<dc:creator>Kosher K</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>Can you put your local set-up to your online demo and provide us with wordpress and FTP access of that site?</p>
<p>Its hard to check on your issue if we can&#8217;t check the actual set-up you have.</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

