<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Question about retrieving user avatar from php - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/question-about-retrieving-user-avatar-from-php/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 10 Aug 2026 22:49:00 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Question about retrieving user avatar from php</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/question-about-retrieving-user-avatar-from-php/#post-31296</link>
                        <pubDate>Sat, 07 Sep 2019 06:07:35 +0000</pubDate>
                        <description><![CDATA[You can use this code to get user avatar by UserID:&lt;?php echo WPF()-&gt;member-&gt;get_avatar($userid); ?&gt;]]></description>
                        <content:encoded><![CDATA[<p>You can use this code to get user avatar by UserID:</p><pre style="background-color: #ffffff;color: #000000;font-size: 12.0pt"><span style="color: #ff3034;font-weight: bold">&lt;?php </span><span style="color: #008d00;font-weight: bold">echo </span><span style="color: #0000e5;font-style: italic">WPF</span>()<span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">member</span><span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">get_avatar</span>(<span style="color: #4985c9;font-weight: bold">$userid</span>)<span style="color: #313131">; </span><span style="color: #ff3034;font-weight: bold">?&gt;</span></pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/question-about-retrieving-user-avatar-from-php/#post-31296</guid>
                    </item>
				                    <item>
                        <title>RE: Question about retrieving user avatar from php</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/question-about-retrieving-user-avatar-from-php/#post-31287</link>
                        <pubDate>Sat, 07 Sep 2019 01:05:52 +0000</pubDate>
                        <description><![CDATA[Solved through global $wpdb]]></description>
                        <content:encoded><![CDATA[<p>Solved through global $wpdb</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>gamedevhq</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/question-about-retrieving-user-avatar-from-php/#post-31287</guid>
                    </item>
				                    <item>
                        <title>Question about retrieving user avatar from php</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/question-about-retrieving-user-avatar-from-php/#post-31286</link>
                        <pubDate>Fri, 06 Sep 2019 23:47:10 +0000</pubDate>
                        <description><![CDATA[Hi, I&#039;m working on a plugin that needs to grab the users avatar. Currently, I&#039;m also working with a membership plugin, and we verify if the &quot;account&quot; is verified like this: &#039;user_confirmed&#039; ...]]></description>
                        <content:encoded><![CDATA[<p>Hi, <br /><br />I'm working on a plugin that needs to grab the users avatar. Currently, I'm also working with a membership plugin, and we verify if the "account" is verified like this: <br /><br />'user_confirmed' =&gt; $user-&gt;pmpro_email_confirmation_key,<br /><br />Is there any equivalent to get the avatar url for someone? <br /><br />I've tried: <br /><br />'avatar' =&gt; $wpforo_profiles-&gt;avatar<br /><br />or <br /><br />'avatar' = $user-&gt;data-&gt;avatar <br /><br />but both are coming back null. <br /><br />Any help would be great! <br /><br />To further clarify, here's some other examples that are working. For example, to get the user name: <br /><br />'name' =&gt; $user-&gt;data-&gt;user_nicename<br /><br />Thanks!</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>gamedevhq</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/question-about-retrieving-user-avatar-from-php/#post-31286</guid>
                    </item>
							        </channel>
        </rss>
		