<?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: Showing the post password form for excerpts in WordPress</title>
	<atom:link href="http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress</link>
	<description>Life, Blogging, and WordPress</description>
	<lastBuildDate>Wed, 23 May 2012 07:51:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cmegown</title>
		<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-732114</link>
		<dc:creator>cmegown</dc:creator>
		<pubDate>Tue, 06 Mar 2012 03:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1721#comment-732114</guid>
		<description>Is there a better way to do this now with v3.3.1? I tried this, and it ends up spitting out two password forms: one that is generated by the code above, and one that is generated by default. And yes, I am using the_excerpt.

Thanks, and I hope to hear from you folks soon.</description>
		<content:encoded><![CDATA[<p>Is there a better way to do this now with v3.3.1? I tried this, and it ends up spitting out two password forms: one that is generated by the code above, and one that is generated by default. And yes, I am using the_excerpt.</p>
<p>Thanks, and I hope to hear from you folks soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alicia</title>
		<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-419453</link>
		<dc:creator>Alicia</dc:creator>
		<pubDate>Tue, 13 Sep 2011 18:34:10 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1721#comment-419453</guid>
		<description>Thanks for sharing Justin.
This is just what I need!!
 I will try this on my blog. :)</description>
		<content:encoded><![CDATA[<p>Thanks for sharing Justin.<br />
This is just what I need!!<br />
 I will try this on my blog. <img src='http://justintadlock.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty</title>
		<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-406251</link>
		<dc:creator>Marty</dc:creator>
		<pubDate>Fri, 26 Aug 2011 16:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1721#comment-406251</guid>
		<description>Just what I needed, thanks!</description>
		<content:encoded><![CDATA[<p>Just what I needed, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Modifying Wordpress Password Protected Pages With Teaser</title>
		<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-205431</link>
		<dc:creator>Modifying Wordpress Password Protected Pages With Teaser</dc:creator>
		<pubDate>Fri, 18 Jun 2010 00:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1721#comment-205431</guid>
		<description>[...] to add the code to display the excerpt. I tracked down the code for adding a custom filter to modify the password protected text, and decided that this was the best way to be able to extract and display the custom excerpt as a [...]</description>
		<content:encoded><![CDATA[<p>[...] to add the code to display the excerpt. I tracked down the code for adding a custom filter to modify the password protected text, and decided that this was the best way to be able to extract and display the custom excerpt as a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale</title>
		<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-178677</link>
		<dc:creator>Dale</dc:creator>
		<pubDate>Mon, 22 Feb 2010 11:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1721#comment-178677</guid>
		<description>I don&#039;t suppose anyone knows how to allow the excerpt to show on a protected post? Like a teazer...</description>
		<content:encoded><![CDATA[<p>I don&#8217;t suppose anyone knows how to allow the excerpt to show on a protected post? Like a teazer&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Secreto</title>
		<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-176194</link>
		<dc:creator>Samuel Secreto</dc:creator>
		<pubDate>Tue, 26 Jan 2010 16:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1721#comment-176194</guid>
		<description>This is exacly watch I was watching to do in my blog,I was relly neeed of this feature!
Thanks a lot  and congratulations for your excellent blog!</description>
		<content:encoded><![CDATA[<p>This is exacly watch I was watching to do in my blog,I was relly neeed of this feature!<br />
Thanks a lot  and congratulations for your excellent blog!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-136706</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Wed, 01 Jul 2009 11:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1721#comment-136706</guid>
		<description>I&#039;m sorry Justin, I have misunderstood your post!</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry Justin, I have misunderstood your post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J Mehmett</title>
		<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-136641</link>
		<dc:creator>J Mehmett</dc:creator>
		<pubDate>Wed, 01 Jul 2009 05:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1721#comment-136641</guid>
		<description>Justin, I don&#039;t know, why its not save to post a code in the comments area. It goes to the moderation queue or it gets eaten by Akismet :(

Back to the comment, it was nothing but a possibility of replacing the default text with a friendly one in the excerpt instead of showing the login form.

&lt;pre&gt;&lt;code&gt;function excerpt_protected( $content ) {
	if ( post_password_required() )
		$content = &quot;Hey, this is a password protected post, the admins of this blog are smart enough to check their loyal fans, so they decided to protect some certain content for the sake of goodness.&quot;;

	return $content;
}&lt;/code&gt;&lt;/pre&gt;

The above code replaces the default: 

&lt;blockquote&gt;
There is no excerpt because this is a protected post. 
&lt;/blockquote&gt;

...with:

&lt;blockquote&gt;
Hey, this is a password protected post, the admins of this blog are smart enough to check their loyal fans, so they decided to protect some certain content for the sake of goodness.
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Justin, I don&#8217;t know, why its not save to post a code in the comments area. It goes to the moderation queue or it gets eaten by Akismet <img src='http://justintadlock.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Back to the comment, it was nothing but a possibility of replacing the default text with a friendly one in the excerpt instead of showing the login form.</p>
<pre><code>function excerpt_protected( $content ) {
	if ( post_password_required() )
		$content = "Hey, this is a password protected post, the admins of this blog are smart enough to check their loyal fans, so they decided to protect some certain content for the sake of goodness.";

	return $content;
}</code></pre>
<p>The above code replaces the default: </p>
<blockquote><p>
There is no excerpt because this is a protected post.
</p></blockquote>
<p>&#8230;with:</p>
<blockquote><p>
Hey, this is a password protected post, the admins of this blog are smart enough to check their loyal fans, so they decided to protect some certain content for the sake of goodness.
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Tadlock</title>
		<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-136490</link>
		<dc:creator>Justin Tadlock</dc:creator>
		<pubDate>Tue, 30 Jun 2009 17:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1721#comment-136490</guid>
		<description>&lt;a class=&quot;comment-link&quot; href=&quot;http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-135307&quot; title=&quot;Comment 135307&quot; rel=&quot;nofollow&quot;&gt;J Mehmett&lt;/a&gt; &#8212; Sorry.  Your comment is long gone now.  You can try posting it again if you want.

&lt;a class=&quot;comment-link&quot; href=&quot;http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-136378&quot; title=&quot;Comment 136378&quot; rel=&quot;nofollow&quot;&gt;Danny&lt;/a&gt; &#8212; Nope, this was all done on WordPress 2.8.  I&#039;m sure it&#039;s probably the same on 2.7.  Remember, this deals with excerpts only (just in case you are using the full post).</description>
		<content:encoded><![CDATA[<p><a class="comment-link" href="http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-135307" title="Comment 135307" rel="nofollow">J Mehmett</a> &mdash; Sorry.  Your comment is long gone now.  You can try posting it again if you want.</p>
<p><a class="comment-link" href="http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-136378" title="Comment 136378" rel="nofollow">Danny</a> &mdash; Nope, this was all done on WordPress 2.8.  I&#8217;m sure it&#8217;s probably the same on 2.7.  Remember, this deals with excerpts only (just in case you are using the full post).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://justintadlock.com/archives/2009/06/24/showing-the-post-password-form-for-excerpts-in-wordpress#comment-136378</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Tue, 30 Jun 2009 10:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1721#comment-136378</guid>
		<description>Hey Justin, is this code referred to WordPress 2.7? I ask you because in 2.8 it works without editing functions.php... Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hey Justin, is this code referred to WordPress 2.7? I ask you because in 2.8 it works without editing functions.php&#8230; Thanks in advance!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

