<?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: get page content by page id. Static pages to Dynamic</title>
	<atom:link href="http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/</link>
	<description>Talks on Web Technology and Better Product Development</description>
	<lastBuildDate>Tue, 31 Aug 2010 10:00:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Edward</title>
		<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/comment-page-1/#comment-742</link>
		<dc:creator>Edward</dc:creator>
		<pubDate>Tue, 17 Aug 2010 08:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=22#comment-742</guid>
		<description>Thanks a lot for this, you saved my life!!  ;)</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this, you saved my life!!  <img src='http://www.tanzilo.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/comment-page-1/#comment-726</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 06 Jul 2010 15:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=22#comment-726</guid>
		<description>This is great! One question - how would I tweak this to display an excerpt of a page or child page?

Thanks!</description>
		<content:encoded><![CDATA[<p>This is great! One question &#8211; how would I tweak this to display an excerpt of a page or child page?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Boyce</title>
		<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/comment-page-1/#comment-709</link>
		<dc:creator>Tony Boyce</dc:creator>
		<pubDate>Mon, 29 Mar 2010 14:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=22#comment-709</guid>
		<description>Great function. Using it to put the content of a page into a jQuery drop down panel I created on my site. I was working my way through the Wordpress loops (none of which worked the way I wanted) and found your post.
A big thanks.</description>
		<content:encoded><![CDATA[<p>Great function. Using it to put the content of a page into a jQuery drop down panel I created on my site. I was working my way through the WordPress loops (none of which worked the way I wanted) and found your post.<br />
A big thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mvied</title>
		<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/comment-page-1/#comment-706</link>
		<dc:creator>Mvied</dc:creator>
		<pubDate>Fri, 19 Mar 2010 17:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=22#comment-706</guid>
		<description>I guess it would be nice if I could post code. -_-</description>
		<content:encoded><![CDATA[<p>I guess it would be nice if I could post code. -_-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mvied</title>
		<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/comment-page-1/#comment-705</link>
		<dc:creator>Mvied</dc:creator>
		<pubDate>Fri, 19 Mar 2010 17:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=22#comment-705</guid>
		<description>I actually have a slight change to your function that would actually be a huge improvement. Put this in your functions.php.

posts .
			&#039; WHERE &#039; . $wpdb-&gt;posts . &#039;.ID=&#039; . $pageId;
			$posts = $wpdb-&gt;get_results($sql_query);
			if(!empty($posts)) {
				foreach($posts as $post) {
					return $post;
				}
			}
		}
	}
?&gt;

And use it like this:
post_content);
?&gt;

Then you can get any information you want about the post including title, ID, content, etc.</description>
		<content:encoded><![CDATA[<p>I actually have a slight change to your function that would actually be a huge improvement. Put this in your functions.php.</p>
<p>posts .<br />
			&#8216; WHERE &#8216; . $wpdb-&gt;posts . &#8216;.ID=&#8217; . $pageId;<br />
			$posts = $wpdb-&gt;get_results($sql_query);<br />
			if(!empty($posts)) {<br />
				foreach($posts as $post) {<br />
					return $post;<br />
				}<br />
			}<br />
		}<br />
	}<br />
?&gt;</p>
<p>And use it like this:<br />
post_content);<br />
?&gt;</p>
<p>Then you can get any information you want about the post including title, ID, content, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: audrey driver</title>
		<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/comment-page-1/#comment-701</link>
		<dc:creator>audrey driver</dc:creator>
		<pubDate>Wed, 17 Mar 2010 03:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=22#comment-701</guid>
		<description>i have no php knowledge whatsoever that said, how would i turn this into a shortcode where i could just enter the page id within a post or page??

thanks!!
-a</description>
		<content:encoded><![CDATA[<p>i have no php knowledge whatsoever that said, how would i turn this into a shortcode where i could just enter the page id within a post or page??</p>
<p>thanks!!<br />
-a</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quentin</title>
		<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/comment-page-1/#comment-688</link>
		<dc:creator>Quentin</dc:creator>
		<pubDate>Tue, 16 Feb 2010 13:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=22#comment-688</guid>
		<description>Hi,
the called page content replaces  by . Is there a way to keep the original style ?

X</description>
		<content:encoded><![CDATA[<p>Hi,<br />
the called page content replaces  by . Is there a way to keep the original style ?</p>
<p>X</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronny</title>
		<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/comment-page-1/#comment-681</link>
		<dc:creator>Ronny</dc:creator>
		<pubDate>Thu, 04 Feb 2010 10:59:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=22#comment-681</guid>
		<description>Hi, great function. Is it possible to make the content linkable back to the page it was taken from?

thanks!</description>
		<content:encoded><![CDATA[<p>Hi, great function. Is it possible to make the content linkable back to the page it was taken from?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ciprian</title>
		<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/comment-page-1/#comment-672</link>
		<dc:creator>Ciprian</dc:creator>
		<pubDate>Thu, 14 Jan 2010 02:13:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=22#comment-672</guid>
		<description>GREAT resource!
Thanks for all your efforts and keep up the good work!</description>
		<content:encoded><![CDATA[<p>GREAT resource!<br />
Thanks for all your efforts and keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elliot condon</title>
		<link>http://www.tanzilo.com/2008/11/01/wordpress-get-page-content-by-page-id-static-pages-to-dynamic/comment-page-1/#comment-634</link>
		<dc:creator>elliot condon</dc:creator>
		<pubDate>Mon, 23 Nov 2009 00:18:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tanzilo.com/?p=22#comment-634</guid>
		<description>YEAH! nice function dude, that helped me out a whole lot. The fact that it doesn&#039;t disturb the loop is just great! cheers, have a great day.</description>
		<content:encoded><![CDATA[<p>YEAH! nice function dude, that helped me out a whole lot. The fact that it doesn&#8217;t disturb the loop is just great! cheers, have a great day.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
