<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Wordpress Client Login and Password Protected Pages</title>
	<atom:link href="http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/</link>
	<description></description>
	<lastBuildDate>Thu, 13 May 2010 06:49:56 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jean</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-644</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Sun, 24 Jan 2010 23:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-644</guid>
		<description>Oh drat - it stripped the php opening statements! Oh well - feel free to email me if you want this code. I may just share it on my site &amp; post a link, if that is helpful to anyone else.</description>
		<content:encoded><![CDATA[<p>Oh drat &#8211; it stripped the php opening statements! Oh well &#8211; feel free to email me if you want this code. I may just share it on my site &amp; post a link, if that is helpful to anyone else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-643</link>
		<dc:creator>Jean</dc:creator>
		<pubDate>Sun, 24 Jan 2010 23:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-643</guid>
		<description>Thanks so much for this article. It was sooo helpful!

I added a few extra lines in the code to allow for page children to be visited by the user without being forbidden access.

First define the parent page by adding these 2 lines:

	$parent_title = strtolower(get_the_title($post-&gt;post_parent));
	$theparent = str_replace(&#039; &#039;, &#039;&#039;, $parent_title);

Next, in your if statement, add another or statement that allows a user access to the page if they are logged in and have the parent page username:

	&#124;&#124; is_user_logged_in() &amp;&amp; $username==$parent_title



In your clientpagetemplate.php page (whatever it&#039;s name is!) The code is placed like this (These are not complete php statements, it&#039;s just to help show location of new code.):

user_login );

	$parent_title = strtolower(get_the_title($post-&gt;post_parent));
	$theparent = str_replace(&#039; &#039;, &#039;&#039;, $parent_title);
 ?&gt;



---

Best wishes!</description>
		<content:encoded><![CDATA[<p>Thanks so much for this article. It was sooo helpful!</p>
<p>I added a few extra lines in the code to allow for page children to be visited by the user without being forbidden access.</p>
<p>First define the parent page by adding these 2 lines:</p>
<p>	$parent_title = strtolower(get_the_title($post-&gt;post_parent));<br />
	$theparent = str_replace(&#8216; &#8216;, &#8221;, $parent_title);</p>
<p>Next, in your if statement, add another or statement that allows a user access to the page if they are logged in and have the parent page username:</p>
<p>	|| is_user_logged_in() &amp;&amp; $username==$parent_title</p>
<p>In your clientpagetemplate.php page (whatever it&#8217;s name is!) The code is placed like this (These are not complete php statements, it&#8217;s just to help show location of new code.):</p>
<p>user_login );</p>
<p>	$parent_title = strtolower(get_the_title($post-&gt;post_parent));<br />
	$theparent = str_replace(&#8216; &#8216;, &#8221;, $parent_title);<br />
 ?&gt;</p>
<p>&#8212;</p>
<p>Best wishes!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leon Amarant</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-71</link>
		<dc:creator>Leon Amarant</dc:creator>
		<pubDate>Tue, 02 Jun 2009 02:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-71</guid>
		<description>full code posted on: http://wordpress.org/support/topic/217141</description>
		<content:encoded><![CDATA[<p>full code posted on: <a href="http://wordpress.org/support/topic/217141" rel="nofollow">http://wordpress.org/support/topic/217141</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://www.leonamarant.com/2009/05/12/wordpress-client-login-and-password-protected-pages/#comment-70</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Mon, 01 Jun 2009 21:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://leonamarant.wordpress.com/?p=50#comment-70</guid>
		<description>you mind sharing how you set up your parent client page as a redirect page as you mentioned in post 217141 on wordpress? i see the need to do this, so you don&#039;t have to set up a redirect each time you add a client. any help is appreciated.</description>
		<content:encoded><![CDATA[<p>you mind sharing how you set up your parent client page as a redirect page as you mentioned in post 217141 on wordpress? i see the need to do this, so you don&#8217;t have to set up a redirect each time you add a client. any help is appreciated.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
