<?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: How to add 5 full Wordpress posts on an external html page</title>
	<atom:link href="http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/</link>
	<description>Thoughts on Web Design and Front-end Coding. Served up Monthly by Jamis Charles</description>
	<lastBuildDate>Tue, 15 Dec 2009 16:33:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: venkat</title>
		<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/comment-page-2/#comment-1935</link>
		<dc:creator>venkat</dc:creator>
		<pubDate>Wed, 09 Dec 2009 11:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluebreeze.net/blog/?p=18#comment-1935</guid>
		<description>is it possible to have a side bar(with previous posts) too.. and when clicked on them, the main post is changed..??!!!</description>
		<content:encoded><![CDATA[<p>is it possible to have a side bar(with previous posts) too.. and when clicked on them, the main post is changed..??!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamis</title>
		<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/comment-page-2/#comment-1929</link>
		<dc:creator>jamis</dc:creator>
		<pubDate>Sat, 05 Sep 2009 13:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluebreeze.net/blog/?p=18#comment-1929</guid>
		<description>What sort of error message are you getting?</description>
		<content:encoded><![CDATA[<p>What sort of error message are you getting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JHMac</title>
		<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/comment-page-2/#comment-1928</link>
		<dc:creator>JHMac</dc:creator>
		<pubDate>Sat, 08 Aug 2009 17:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluebreeze.net/blog/?p=18#comment-1928</guid>
		<description>Did your database log in info change with hosts? If not, is the url different now?</description>
		<content:encoded><![CDATA[<p>Did your database log in info change with hosts? If not, is the url different now?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas</title>
		<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/comment-page-2/#comment-1922</link>
		<dc:creator>Nicholas</dc:creator>
		<pubDate>Thu, 16 Jul 2009 15:48:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluebreeze.net/blog/?p=18#comment-1922</guid>
		<description>Thank you so much for this script! I was able to use it with a previous hosting provider, but unfortunately, I changed hosts and the script does not seem to work.

Please help!! - e-mail would be best</description>
		<content:encoded><![CDATA[<p>Thank you so much for this script! I was able to use it with a previous hosting provider, but unfortunately, I changed hosts and the script does not seem to work.</p>
<p>Please help!! &#8211; e-mail would be best</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamis</title>
		<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/comment-page-2/#comment-1704</link>
		<dc:creator>jamis</dc:creator>
		<pubDate>Mon, 02 Mar 2009 13:40:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluebreeze.net/blog/?p=18#comment-1704</guid>
		<description>@Kevin: That issue is fixed now. I had put a &quot;0&quot; (shown here, selecting only the first result) where it should have been &quot;$i&quot; which would show each row&#039;s result.

&lt;pre class=&quot;php&quot;&gt;$blog_permalink = $blog_url . mysql_result($query_result, 0, &quot;post_name&quot;);&lt;/pre&gt;

My apologies. Thanks for pointing that out.</description>
		<content:encoded><![CDATA[<p>@Kevin: That issue is fixed now. I had put a &#8220;0&#8243; (shown here, selecting only the first result) where it should have been &#8220;$i&#8221; which would show each row&#8217;s result.</p>
<pre class="php">$blog_permalink = $blog_url . mysql_result($query_result, 0, "post_name");</pre>
<p>My apologies. Thanks for pointing that out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamis</title>
		<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/comment-page-2/#comment-1664</link>
		<dc:creator>jamis</dc:creator>
		<pubDate>Wed, 25 Feb 2009 00:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluebreeze.net/blog/?p=18#comment-1664</guid>
		<description>@Kevin: Thanks for pointing that out. I&#039;ll take a look at it.</description>
		<content:encoded><![CDATA[<p>@Kevin: Thanks for pointing that out. I&#8217;ll take a look at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/comment-page-2/#comment-1654</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Mon, 23 Feb 2009 13:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluebreeze.net/blog/?p=18#comment-1654</guid>
		<description>Hi Jamis,

Thanks for trying to solve the permalink &quot;issue&quot;.
I now indeed notice that the permalink-name is shown but it seems that the same name (from the first post) is shown for all posts.

I don&#039;t think I have done something wrong. Can you maybe check this?

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Hi Jamis,</p>
<p>Thanks for trying to solve the permalink &#8220;issue&#8221;.<br />
I now indeed notice that the permalink-name is shown but it seems that the same name (from the first post) is shown for all posts.</p>
<p>I don&#8217;t think I have done something wrong. Can you maybe check this?</p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chab</title>
		<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/comment-page-2/#comment-1555</link>
		<dc:creator>Chab</dc:creator>
		<pubDate>Fri, 13 Feb 2009 12:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluebreeze.net/blog/?p=18#comment-1555</guid>
		<description>Thank you very much for this code. I can&#039;t tell you how happy it made me. 

I also used a UNION SELECT thing to bring queries from multiple tables.</description>
		<content:encoded><![CDATA[<p>Thank you very much for this code. I can&#8217;t tell you how happy it made me. </p>
<p>I also used a UNION SELECT thing to bring queries from multiple tables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenny</title>
		<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/comment-page-2/#comment-1475</link>
		<dc:creator>Kenny</dc:creator>
		<pubDate>Mon, 02 Feb 2009 16:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluebreeze.net/blog/?p=18#comment-1475</guid>
		<description>(Just added the same reply at the Previous Article mentioned at top: http://www.bluebreeze.net/blog/?p=11)

Wow, exactly what I was looking for! Thanks.

But like Darrel (September 8th, 2008 at 4:11 pm), I too, wanted to pull X amount of posts from the Y category.

It seems that the new WordPress table structure is a bit different, and post_category doesn&#039;t work any more.

So  i good buddy of mine sent me the following query which works like a charm. Just use this with the rest of Jamis&#039;s code:

$query = &quot;SELECT distinct ID, post_title, post_date, guid, post_content, post_name FROM wp_posts, wp_terms, wp_term_relationships WHERE wp_posts.id = wp_term_relationships.object_id AND wp_term_relationships.term_taxonomy_id = wp_terms.term_id AND post_type=&#039;post&#039; AND post_status=&#039;publish&#039; AND wp_terms.slug = &#039;news&#039; ORDER by post_date DESC LIMIT 5&quot;;

Just replace wp_terms.slug = &#039;news&#039; in my example with the category slug you need. 

The category is represented by either ID, Name or Slug, so you can use which ever you like.

For ID, use: wp_terms.term_id=&#039;n&#039;
For Name, use: wp_terms.name=&#039;Word or words&#039;
For Slug, Use: wp_terms.slug=&#039;word-or-words&#039;</description>
		<content:encoded><![CDATA[<p>(Just added the same reply at the Previous Article mentioned at top: <a href="http://www.bluebreeze.net/blog/?p=11)" rel="nofollow">http://www.bluebreeze.net/blog/?p=11)</a></p>
<p>Wow, exactly what I was looking for! Thanks.</p>
<p>But like Darrel (September 8th, 2008 at 4:11 pm), I too, wanted to pull X amount of posts from the Y category.</p>
<p>It seems that the new WordPress table structure is a bit different, and post_category doesn&#8217;t work any more.</p>
<p>So  i good buddy of mine sent me the following query which works like a charm. Just use this with the rest of Jamis&#8217;s code:</p>
<p>$query = &#8220;SELECT distinct ID, post_title, post_date, guid, post_content, post_name FROM wp_posts, wp_terms, wp_term_relationships WHERE wp_posts.id = wp_term_relationships.object_id AND wp_term_relationships.term_taxonomy_id = wp_terms.term_id AND post_type=&#8217;post&#8217; AND post_status=&#8217;publish&#8217; AND wp_terms.slug = &#8216;news&#8217; ORDER by post_date DESC LIMIT 5&#8243;;</p>
<p>Just replace wp_terms.slug = &#8216;news&#8217; in my example with the category slug you need. </p>
<p>The category is represented by either ID, Name or Slug, so you can use which ever you like.</p>
<p>For ID, use: wp_terms.term_id=&#8217;n&#8217;<br />
For Name, use: wp_terms.name=&#8217;Word or words&#8217;<br />
For Slug, Use: wp_terms.slug=&#8217;word-or-words&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sesso</title>
		<link>http://www.jamischarles.com/blog/how-to-add-5-full-wordpress-posts-on-an-external-html-page/comment-page-2/#comment-1406</link>
		<dc:creator>Sesso</dc:creator>
		<pubDate>Sun, 25 Jan 2009 01:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.bluebreeze.net/blog/?p=18#comment-1406</guid>
		<description>Great site.</description>
		<content:encoded><![CDATA[<p>Great site.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
