<?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: Displaying Recent Posts On a Non-WordPress Page</title>
	<atom:link href="http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/</link>
	<description>A blog about web development, software business, and WordPress</description>
	<lastBuildDate>Tue, 22 May 2012 04:00:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Abe</title>
		<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/comment-page-2/#comment-199625</link>
		<dc:creator>Abe</dc:creator>
		<pubDate>Wed, 18 Apr 2012 03:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=504#comment-199625</guid>
		<description>First I want to say you are awesome! Thank you for sharing this. 

I wanted to know if you or anyone on this blog would be give me advice on how to pull the blog post images from my WP blog as well and I&#039;d like to set the max items to a smaller value and have a &#039;load more&#039; button. 

Don&#039;t mean to be a bother but I&#039;m still new to PHP/MySQL &amp; JavaScript. I&#039;m grinding away on books and practicing everyday! :)

Much thanks!</description>
		<content:encoded><![CDATA[<p>First I want to say you are awesome! Thank you for sharing this. </p>
<p>I wanted to know if you or anyone on this blog would be give me advice on how to pull the blog post images from my WP blog as well and I&#8217;d like to set the max items to a smaller value and have a &#8216;load more&#8217; button. </p>
<p>Don&#8217;t mean to be a bother but I&#8217;m still new to PHP/MySQL &amp; JavaScript. I&#8217;m grinding away on books and practicing everyday! :)</p>
<p>Much thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jānis Elsts</title>
		<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/comment-page-2/#comment-198610</link>
		<dc:creator>Jānis Elsts</dc:creator>
		<pubDate>Sun, 11 Mar 2012 08:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=504#comment-198610</guid>
		<description>That will depend on how/if the thumbnails are displayed in the feed. If they&#039;re part of the content, either the get_description() or get_content() method should work to retrieve content + thumbnail. If not, you may need to use &lt;a href=&quot;http://www.strangework.com/2010/02/25/how-to-add-a-post-thumbnail-to-an-rss-feed-in-wordpress/&quot; rel=&quot;nofollow&quot;&gt;a hack like this&lt;/a&gt; to add them.</description>
		<content:encoded><![CDATA[<p>That will depend on how/if the thumbnails are displayed in the feed. If they&#8217;re part of the content, either the get_description() or get_content() method should work to retrieve content + thumbnail. If not, you may need to use <a href="http://www.strangework.com/2010/02/25/how-to-add-a-post-thumbnail-to-an-rss-feed-in-wordpress/" rel="nofollow">a hack like this</a> to add them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Malaysia Events</title>
		<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/comment-page-2/#comment-198576</link>
		<dc:creator>Malaysia Events</dc:creator>
		<pubDate>Sat, 10 Mar 2012 09:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=504#comment-198576</guid>
		<description>How can we include thumbs in to this?</description>
		<content:encoded><![CDATA[<p>How can we include thumbs in to this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: White Shadow</title>
		<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/comment-page-2/#comment-31763</link>
		<dc:creator>White Shadow</dc:creator>
		<pubDate>Wed, 14 Oct 2009 11:15:22 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=504#comment-31763</guid>
		<description>Sure, send it in. My email is whiteshadow[at]w-shadow[dot]com</description>
		<content:encoded><![CDATA[<p>Sure, send it in. My email is whiteshadow[at]w-shadow[dot]com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/comment-page-2/#comment-31759</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 13 Oct 2009 20:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=504#comment-31759</guid>
		<description>Oops, code got truncated.  I&#039;ll try to send to you directly if you don&#039;t mind....</description>
		<content:encoded><![CDATA[<p>Oops, code got truncated.  I&#8217;ll try to send to you directly if you don&#8217;t mind&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/comment-page-2/#comment-31758</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 13 Oct 2009 20:53:08 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=504#comment-31758</guid>
		<description>The html for the odd text looks like:  &quot;Ben Pleasants &#226;€“ Four Poems&quot;

So it&#039;s not getting interpreted correctly...  I&#039;m using a simplified version of your php above:


error())
	echo &#039;Error : &#039;,$feed-&gt;error();
 
//Output up to $max_items posts 
foreach ($feed-&gt;get_items(0, $max_items) as $item): ?&gt;
 	
		&lt;a href=&quot;get_permalink(); ?&gt;&quot;&gt;get_title()); ?&gt;&lt;/a&gt;
		
	
</description>
		<content:encoded><![CDATA[<p>The html for the odd text looks like:  &#8220;Ben Pleasants &acirc;€“ Four Poems&#8221;</p>
<p>So it&#8217;s not getting interpreted correctly&#8230;  I&#8217;m using a simplified version of your php above:</p>
<p>error())<br />
	echo &#8216;Error : &#8216;,$feed-&gt;error();</p>
<p>//Output up to $max_items posts<br />
foreach ($feed-&gt;get_items(0, $max_items) as $item): ?&gt;</p>
<p>		&lt;a href=&quot;get_permalink(); ?&gt;&#8221;&gt;get_title()); ?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: White Shadow</title>
		<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/comment-page-2/#comment-31753</link>
		<dc:creator>White Shadow</dc:creator>
		<pubDate>Tue, 13 Oct 2009 17:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=504#comment-31753</guid>
		<description>Check the HTML source of your page. I&#039;ve had a similar problem where the symbols were actually correct in the HTML but my browser had decided to use the wrong encoding/character set when displaying that page.

That&#039;s the only remaining easy-to-check thing I can suggest without having seen your actual script.</description>
		<content:encoded><![CDATA[<p>Check the HTML source of your page. I&#8217;ve had a similar problem where the symbols were actually correct in the HTML but my browser had decided to use the wrong encoding/character set when displaying that page.</p>
<p>That&#8217;s the only remaining easy-to-check thing I can suggest without having seen your actual script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/comment-page-2/#comment-31752</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 13 Oct 2009 16:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=504#comment-31752</guid>
		<description>Checked the documentation and tried htmlentities().  No luck.  I also switched to utf-8 encoding.  Again, no luck though.  The feed seems to be ok.  When I run it through the SimplePie demo (on their site) it shows up just fine.  It only shows up &quot;wrong&quot; on my site.

Any further ideas?</description>
		<content:encoded><![CDATA[<p>Checked the documentation and tried htmlentities().  No luck.  I also switched to utf-8 encoding.  Again, no luck though.  The feed seems to be ok.  When I run it through the SimplePie demo (on their site) it shows up just fine.  It only shows up &#8220;wrong&#8221; on my site.</p>
<p>Any further ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: White Shadow</title>
		<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/comment-page-2/#comment-31707</link>
		<dc:creator>White Shadow</dc:creator>
		<pubDate>Fri, 09 Oct 2009 18:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=504#comment-31707</guid>
		<description>It&#039;s either an encoding problem (in which case the &lt;a href=&quot;http://simplepie.org/wiki/&quot; rel=&quot;nofollow&quot;&gt;SimplePie documentation&lt;/a&gt; might enlighten you), or an opportunity for applying htmlentities() with extreme prejudice. Personally, pre-processing the title with htmlentities() would be the first thing I would try.</description>
		<content:encoded><![CDATA[<p>It&#8217;s either an encoding problem (in which case the <a href="http://simplepie.org/wiki/" rel="nofollow">SimplePie documentation</a> might enlighten you), or an opportunity for applying htmlentities() with extreme prejudice. Personally, pre-processing the title with htmlentities() would be the first thing I would try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://w-shadow.com/blog/2008/11/15/displaying-recent-posts-on-a-non-wordpress-page/comment-page-2/#comment-31697</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Fri, 09 Oct 2009 01:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=504#comment-31697</guid>
		<description>Thanks. Good tip.  

I&#039;m having one issue though. If the feed pulls in a blog post where the original title contains a &quot;-&quot; symbol (i.e. HTML = &#8211;), the resulting code on my site for that - is &#039; â€“ &#039;.

So instead of the title appearing as:
&quot;Ben Pleasants - Four Poems&quot;

I get:
&quot;Ben Pleasants â€“ Four Poems&quot;

Any idea on how to resolve that?

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks. Good tip.  </p>
<p>I&#8217;m having one issue though. If the feed pulls in a blog post where the original title contains a &#8220;-&#8221; symbol (i.e. HTML = &ndash;), the resulting code on my site for that &#8211; is &#8216; â€“ &#8216;.</p>
<p>So instead of the title appearing as:<br />
&#8220;Ben Pleasants &#8211; Four Poems&#8221;</p>
<p>I get:<br />
&#8220;Ben Pleasants â€“ Four Poems&#8221;</p>
<p>Any idea on how to resolve that?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

