<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TechThem Howto's and Tricks &#187; wordpress hack</title>
	<atom:link href="http://www.techthem.com/category/wordpress-hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techthem.com</link>
	<description>Technology news, Howto's, Tips, hacks and tricks about Windows, Programming, Designing, Blogging</description>
	<lastBuildDate>Sat, 27 Mar 2010 12:01:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Display latest post from specific category</title>
		<link>http://www.techthem.com/display-latest-post-from-specific-category/</link>
		<comments>http://www.techthem.com/display-latest-post-from-specific-category/#comments</comments>
		<pubDate>Mon, 18 May 2009 00:30:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[wordpress hack]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[latest post from specific category]]></category>
		<category><![CDATA[recent post]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.techthem.com/?p=40</guid>
		<description><![CDATA[This is a very useful hack for Wordpress Theme Developers and coders, because while developing most of Wp cms themes add this hack in their cms template. So now i&#8217;ll explain how to display Recent post from specific category. Make sure that you made the back up of your theme files.
So move to the main [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very useful <a href="http://techthem.com/?s=hack">hack</a> for Wordpress Theme <a href="http://techthem.com/?s=developers">Developers</a> and coders, because while developing most of <a href="http://techthem.com/?s=wp-cms-themes">Wp cms themes</a> add this hack in their <a href="http://techthem.com/?s=cms">cms</a> template. So now i&#8217;ll explain how to display Recent post from specific category. Make sure that you made the back up of your theme files.</p>
<p>So move to the main part, Add the below code to display the <a href="http://techthem.com/?s=recent-post">Recent posts</a> from specific categories.</p>
<blockquote><p><code></code></p>
<h3><code>&lt;span style=&quot;color: #808080;&quot;&gt;&amp;amp;lt;ul&amp;amp;gt;&lt;/span&gt;</code></h3>
<h3><code>&lt;span style=&quot;color: #808080;&quot;&gt; &amp;amp;lt;?php $recent = new WP_Query(&quot;cat=1&amp;amp;amp;showposts=10&quot;); while($recent-&amp;amp;gt;have_posts()) : $recent-&amp;amp;gt;the_post();?&amp;amp;gt;&lt;/span&gt;</code></h3>
<h3><code>&lt;span style=&quot;color: #808080;&quot;&gt; &amp;amp;lt;li&amp;amp;gt;&amp;amp;lt;a href=&quot;&amp;amp;lt;?php the_permalink() ?&amp;amp;gt;&quot; rel=&quot;bookmark&quot;&amp;amp;gt;&lt;/span&gt;</code></h3>
<h3><code>&lt;span style=&quot;color: #808080;&quot;&gt; &amp;amp;lt;?php the_title(); ?&amp;amp;gt;&lt;/span&gt;</code></h3>
<h3><code>&lt;span style=&quot;color: #808080;&quot;&gt; &amp;amp;lt;/a&amp;amp;gt;&amp;amp;lt;/li&amp;amp;gt;&lt;/span&gt;</code></h3>
<h3><code>&lt;span style=&quot;color: #808080;&quot;&gt; &amp;amp;lt;?php endwhile; ?&amp;amp;gt;&lt;/span&gt;</code></h3>
<h3><code>&lt;span style=&quot;color: #808080;&quot;&gt; &amp;amp;lt;/ul&amp;amp;gt;&lt;/span&gt;</code></h3>
</blockquote>
<p>For example, If you want to show related post from tech, then edit<strong> cat=1</strong> with the tech category id. To display more then or less then 5 post, then find <strong>showposts=5</strong> and edit the number in it.<br />
I hope you understand, If you have some difficulties with this code, then write them as comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techthem.com/display-latest-post-from-specific-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
