<?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>
									Widget for unregistered users - General Discussions				            </title>
            <link>https://wpforo.com/community/general-discussions/widget-for-unregistered-users/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 13 May 2026 00:29:35 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Widget for unregistered users</title>
                        <link>https://wpforo.com/community/general-discussions/widget-for-unregistered-users/#post-59235</link>
                        <pubDate>Thu, 21 Oct 2021 10:48:05 +0000</pubDate>
                        <description><![CDATA[Hi @aima-forum,
wpForo has custom development, which can make that work for you, if you are interested contact salesgvectors.com]]></description>
                        <content:encoded><![CDATA[<p>Hi <span>@aima-forum,</span></p>
<p>wpForo has custom development, which can make that work for you, if you are interested contact salesgvectors.com</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Chris</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/widget-for-unregistered-users/#post-59235</guid>
                    </item>
				                    <item>
                        <title>Widget for unregistered users</title>
                        <link>https://wpforo.com/community/general-discussions/widget-for-unregistered-users/#post-59145</link>
                        <pubDate>Wed, 20 Oct 2021 21:31:09 +0000</pubDate>
                        <description><![CDATA[I have created a shortcode in the function.php file that only shows content to unregistered users:
function no_logged_user_content( $atts, $content = null ) {
	if ( is_user_logged_in() &amp;am...]]></description>
                        <content:encoded><![CDATA[<p>I have created a shortcode in the function.php file that only shows content to unregistered users:</p>
<pre contenteditable="false">function no_logged_user_content( $atts, $content = null ) {
	if ( is_user_logged_in() &amp;&amp; !is_null( $content ) &amp;&amp; !is_feed() ) {
		return '';
	}
	return $content; 
}
 
add_shortcode( 'member', 'no_logged_user_content' );</pre>
<p>Now in the text widget, I can only add content for unregistered users:</p>
<pre contenteditable="false">Information only to unregistered</pre>
<p>Please help to refine this code so that you can differentiate information for admins, moderators, registered, guests ... Make several shortcodes for each user group.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>st7878</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/widget-for-unregistered-users/#post-59145</guid>
                    </item>
							        </channel>
        </rss>
		