<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Developer&#8217;s Corner &#8211; WordPress 101</title>
	<atom:link href="https://wordpress101.imaginarytree.com/category/developers-corner/feed/" rel="self" type="application/rss+xml" />
	<link>https://wordpress101.imaginarytree.com</link>
	<description>A site for learning WordPress</description>
	<lastBuildDate>Tue, 11 Aug 2015 18:39:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>MAMP and Location of the mySQL dump path</title>
		<link>https://wordpress101.imaginarytree.com/2011/07/03/mamp-and-location-of-the-mysql-dump-path/</link>
					<comments>https://wordpress101.imaginarytree.com/2011/07/03/mamp-and-location-of-the-mysql-dump-path/#respond</comments>
		
		<dc:creator><![CDATA[jegan]]></dc:creator>
		<pubDate>Sun, 03 Jul 2011 15:25:44 +0000</pubDate>
				<category><![CDATA[Developer's Corner]]></category>
		<category><![CDATA[develop]]></category>
		<category><![CDATA[local]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[mySQL dump path]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP-DBManager]]></category>
		<guid isPermaLink="false">http://wordpress101.imaginarytree.com/?p=496</guid>

					<description><![CDATA[I&#8217;ve been using MAMP which has allowed me to develop my WordPress sites locally. I&#8217;ve recently installed the wp-dbmanager in order to do backups before doing major changes to a test site and had trouble finding the mySQL dump path. Thanks to the help from Adrian Tomic, I was able to set the dump path ... <a title="MAMP and Location of the mySQL dump path" class="read-more" href="https://wordpress101.imaginarytree.com/2011/07/03/mamp-and-location-of-the-mysql-dump-path/" aria-label="Read more about MAMP and Location of the mySQL dump path">Read more</a>]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.mamp.info/en/downloads/index.html" target="_blank">MAMP</a> which has allowed me to develop my WordPress sites locally. I&#8217;ve recently installed the wp-dbmanager in order to do backups before doing major changes to a test site and had trouble finding the mySQL dump path. Thanks to the help from <a href="http://www.adriantomic.se/blog/blog-post-2/" target="_blank">Adrian Tomic</a>, I was able to set the dump path quickly.</p>
<blockquote><p>The path to the “files” are as follows.</p>
<p>To mysqldump: /Applications/MAMP/Library/bin/mysqldump<br />
To mysql: /Applications/MAMP/Library/bin/mysql</p></blockquote>
<p>This small post it to help me remember for future sites I need it for &amp; it may help others.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wordpress101.imaginarytree.com/2011/07/03/mamp-and-location-of-the-mysql-dump-path/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>A Simple Way to Share Privileged Information</title>
		<link>https://wordpress101.imaginarytree.com/2010/08/06/a-simple-way-to-share-privileged-information/</link>
					<comments>https://wordpress101.imaginarytree.com/2010/08/06/a-simple-way-to-share-privileged-information/#respond</comments>
		
		<dc:creator><![CDATA[jegan]]></dc:creator>
		<pubDate>Fri, 06 Aug 2010 15:53:38 +0000</pubDate>
				<category><![CDATA[Developer's Corner]]></category>
		<guid isPermaLink="false">http://wordpress101.imaginarytree.com/?p=168</guid>

					<description><![CDATA[Whether you&#8217;re selling retail and wholesale items, or simply need to share some content with registered users, or alternatively, content only with visitors, then this simple solution will come to the rescue! It&#8217;s so simple and easy to follow, you&#8217;ll feel the power of dynamic site content! Content for users who are logged in Just ... <a title="A Simple Way to Share Privileged Information" class="read-more" href="https://wordpress101.imaginarytree.com/2010/08/06/a-simple-way-to-share-privileged-information/" aria-label="Read more about A Simple Way to Share Privileged Information">Read more</a>]]></description>
										<content:encoded><![CDATA[<p>Whether you&#8217;re selling retail and wholesale items, or simply need to share some content with registered users, or alternatively, content only with visitors, then this simple solution will come to the rescue! It&#8217;s so simple and easy to follow, you&#8217;ll feel the power of dynamic site content! <span id="more-168"></span></p>
<h3>Content for users who are logged in</h3>
<p>Just paste the following code on your <em>functions.php</em> file:</p>
<pre>add_shortcode( 'member', 'member_check_shortcode' );

function member_check_shortcode( $atts, $content = null ) {
	 if ( is_user_logged_in() &amp;&amp; !is_null( $content ) &amp;&amp; !is_feed() )
		return $content;
	return '';
}
</pre>
<p>Once done, you can add the following to your posts to create a portion or text (or any other content) that will be only displayed to registered users:</p>
<pre>[member]
This text will be only displayed to registered users.
[/member]
</pre>
<h3>Content for users who are not logged in</h3>
<p>Alternatively, you may wish to share information to only people NOT signed in. Just paste the following code on your <em>functions.php</em> file:</p>
<pre><code>add_shortcode( 'visitor', 'visitor_check_shortcode' );

function visitor_check_shortcode( $atts, $content = null ) {
	 if ( ( !is_user_logged_in() &amp;&amp; !is_null( $content ) ) || is_feed() )
		return $content;
	return '';
}</code></pre>
<p>Anytime you write a post/page, add this to only show content to users that are not logged in:</p>
<pre><code>[visitor]
Some content for the people just browsing your site.
[/visitor]</code></pre>
<p>Easy and useful!</p>
<p><em>Credits goes to <a href="http://justintadlock.com/archives/2009/05/09/using-shortcodes-to-show-members-only-content" target="_blank">Justin Tadlock</a> for this simple and elegant solution! Thanks also to <a href="http://www.wprecipes.com/" target="_none">WP Recipies</a> for sharing this helpful tip!</em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://wordpress101.imaginarytree.com/2010/08/06/a-simple-way-to-share-privileged-information/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
