<?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"
	>

<channel>
	<title>Viper007Bond.com &#187; WordPress Code &amp; Hacks</title>
	<atom:link href="http://www.viper007bond.com/archives/category/wordpress/wordpress-code-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.viper007bond.com</link>
	<description></description>
	<pubDate>Mon, 25 Aug 2008 10:17:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>&#8220;Quoter&#8221; Validation Fix</title>
		<link>http://www.viper007bond.com/archives/2008/04/22/quoter-validation-fix/</link>
		<comments>http://www.viper007bond.com/archives/2008/04/22/quoter-validation-fix/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 10:45:21 +0000</pubDate>
		<dc:creator>Viper007Bond</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[WordPress Code &amp; Hacks]]></category>

		<guid isPermaLink="false">http://www.viper007bond.com/?p=316</guid>
		<description><![CDATA[Seems Quoter doesn&#8217;t play 100% nice with WordPress 2.5 (breaks page validation). It&#8217;s a simple fix though.
Open the plugin and find this text on line 568:
$text = wpautop($text, 0);
Before it, add this dirty little fix:
$text = str_replace( array('&#60;p&#62;&#60;p&#62;', '&#60;/p&#62;&#60;/p&#62;'), array('&#60;p&#62;', '&#60;/p&#62;'), $text);
It only works around the problem rather than fixing it, but it seems to [...]]]></description>
			<content:encoded><![CDATA[<p>Seems <a href="http://www.damagedgoods.it/wp-plugins/quoter/">Quoter</a> doesn&#8217;t play 100% nice with WordPress 2.5 (breaks page validation). It&#8217;s a simple fix though.</p>
<p>Open the plugin and find this text on line 568:</p>
<blockquote><p><code>$text = wpautop($text, 0);</code></p></blockquote>
<p>Before it, add this dirty little fix:</p>
<blockquote><p><code>$text = str_replace( array('&lt;p&gt;&lt;p&gt;', '&lt;/p&gt;&lt;/p&gt;'), array('&lt;p&gt;', '&lt;/p&gt;'), $text);</code></p></blockquote>
<p>It only works around the problem rather than fixing it, but it seems to do the job as most pages now validate. :)</p>
<p><strong>EDIT:</strong> Seems WordPress originally mucked up the code that I had posted. It&#8217;s now been fixed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viper007bond.com/archives/2008/04/22/quoter-validation-fix/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How To: Display Text At End Of Post In Only Single View</title>
		<link>http://www.viper007bond.com/archives/2007/12/02/how-to-display-text-at-end-of-post-in-only-single-view/</link>
		<comments>http://www.viper007bond.com/archives/2007/12/02/how-to-display-text-at-end-of-post-in-only-single-view/#comments</comments>
		<pubDate>Mon, 03 Dec 2007 02:54:08 +0000</pubDate>
		<dc:creator>Viper007Bond</dc:creator>
		
		<category><![CDATA[WordPress Code &amp; Hacks]]></category>

		<category><![CDATA[more]]></category>

		<category><![CDATA[post]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://www.viper007bond.com/archives/2007/12/02/how-to-display-text-at-end-of-post-in-only-single-view/</guid>
		<description><![CDATA[Ever wanted to display some text at the end of your post that would only show up on the single post view? Perhaps a message to commenters? Well, WordPress has the ability built in. No need for any plugins.
The trick is to use the &#60;!--more--&#62; tag. However, I bet you&#8217;re thinking &#8220;but I don&#8217;t want [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to display some text at the end of your post that would only show up on the single post view? Perhaps a message to commenters? Well, WordPress has the ability built in. No need for any plugins.</p>
<p>The trick is to use the <a href="http://codex.wordpress.org/Write_Post_SubPanel"><code>&lt;!--more--&gt;</code></a> tag. However, I bet you&#8217;re thinking &#8220;but I don&#8217;t want a &#8216;Read More&#8217; link!&#8221;. Well, once again, WordPress to the rescue.</p>
<p>For a few major versions now, you can do <strong>custom more text</strong>. You simply format it like this: <code>&lt;!--more Check out the rest of my post!--&gt;. Or, to remove the link altogether while still leaving the feature intact, just use a space: </code><code>&lt;!--more --&gt;</code>.</p>
<p>Here&#8217;s an example:</p>
<blockquote><pre>This is a cool post. It has lots of interesting stuff.

More interesting stuff.

&lt;!--more --&gt;

This text will only show up on the single post view.</pre>
</blockquote>
<p>You can check it out in action as the following text will only show up in single post view:</p>
<p>Hey there. This is the &#8220;special&#8221; text. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viper007bond.com/archives/2007/12/02/how-to-display-text-at-end-of-post-in-only-single-view/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
