<?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: Creating a (Better) Fake Post with a WordPress Plugin</title>
	<atom:link href="http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/</link>
	<description>I'm a biologist not a...</description>
	<lastBuildDate>Wed, 08 Feb 2012 12:02:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Tahir</title>
		<link>http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/comment-page-1/#comment-268750</link>
		<dc:creator>Tahir</dc:creator>
		<pubDate>Wed, 08 Feb 2012 12:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/#comment-268750</guid>
		<description>Any way to assign page template to the Fake page?</description>
		<content:encoded><![CDATA[<p>Any way to assign page template to the Fake page?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buy In Maya Riviera</title>
		<link>http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/comment-page-1/#comment-216750</link>
		<dc:creator>Buy In Maya Riviera</dc:creator>
		<pubDate>Fri, 02 Sep 2011 14:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/#comment-216750</guid>
		<description>By time I wanted a plugin for my site that is capable of generating a dynamic page content publishes. Your contribution is really very useful thank you very much.</description>
		<content:encoded><![CDATA[<p>By time I wanted a plugin for my site that is capable of generating a dynamic page content publishes. Your contribution is really very useful thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: in maya riviera</title>
		<link>http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/comment-page-1/#comment-216738</link>
		<dc:creator>in maya riviera</dc:creator>
		<pubDate>Fri, 02 Sep 2011 13:03:48 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/#comment-216738</guid>
		<description>this is exactly what I wanted for my plugin. a plugin to add a page can generate a public page with dynamic content. pr thanks your contribution will be very useful indeed ..</description>
		<content:encoded><![CDATA[<p>this is exactly what I wanted for my plugin. a plugin to add a page can generate a public page with dynamic content. pr thanks your contribution will be very useful indeed ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: olylax21</title>
		<link>http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/comment-page-1/#comment-208661</link>
		<dc:creator>olylax21</dc:creator>
		<pubDate>Tue, 02 Aug 2011 20:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/#comment-208661</guid>
		<description>@cyril
We need to do something similiar.  We want to display a custom template to display.  We also need the slug to be based on the URL of the current page.  Has anyone done this?</description>
		<content:encoded><![CDATA[<p>@cyril<br />
We need to do something similiar.  We want to display a custom template to display.  We also need the slug to be based on the URL of the current page.  Has anyone done this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deadpan110</title>
		<link>http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/comment-page-1/#comment-201972</link>
		<dc:creator>Deadpan110</dc:creator>
		<pubDate>Mon, 20 Jun 2011 09:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/blogger/creating-a-better-fake-post-with-a-wordpress-plugin/#comment-201972</guid>
		<description>This may have been written back in 2007 - but it has made my life very easy.

I am working on a specialised plugin that needs a lot of faked custom pages.

Simply extending the class for every page can save a lot of time:



class My_Account extends FakePage {
	var $page_slug = &#039;my-account&#039;;
	var $page_title = &#039;My Account&#039;;

	function getContent() {
		return &#039;new content for My Account&#039;;
	}
}
function My_Account_init() {
	new My_Account;
}
add_action(&#039;init&#039;,&#039;My_Account_init&#039;);


Many thanks (and I hope the above is formatted correctly).</description>
		<content:encoded><![CDATA[<p>This may have been written back in 2007 &#8211; but it has made my life very easy.</p>
<p>I am working on a specialised plugin that needs a lot of faked custom pages.</p>
<p>Simply extending the class for every page can save a lot of time:</p>
<p>class My_Account extends FakePage {<br />
	var $page_slug = &#8216;my-account&#8217;;<br />
	var $page_title = &#8216;My Account&#8217;;</p>
<p>	function getContent() {<br />
		return &#8216;new content for My Account&#8217;;<br />
	}<br />
}<br />
function My_Account_init() {<br />
	new My_Account;<br />
}<br />
add_action(&#8216;init&#8217;,'My_Account_init&#8217;);</p>
<p>Many thanks (and I hope the above is formatted correctly).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

