<?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>Zack LiveArchives | Best Premium WordPress Themes - Zack Live</title>
	<atom:link href="http://zacklive.com/tag/archives/feed/" rel="self" type="application/rss+xml" />
	<link>http://zacklive.com</link>
	<description>Free Online Resource</description>
	<lastBuildDate>Wed, 21 Dec 2011 20:18:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Getting Recent Posts in WordPress</title>
		<link>http://zacklive.com/getting-recent-posts-in-wordpress/573/</link>
		<comments>http://zacklive.com/getting-recent-posts-in-wordpress/573/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 23:38:14 +0000</pubDate>
		<dc:creator>Zack</dc:creator>
				<category><![CDATA[WordPress Themes]]></category>
		<category><![CDATA[Archives]]></category>
		<category><![CDATA[Codes]]></category>
		<category><![CDATA[Codex]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://zacklive.com/?p=573</guid>
		<description><![CDATA[Getting recent posts in you WordPress blog, is a old topic. WordPress now has a default widget to do this, but sometime we need to display recent posts outside of the widget area. It&#8217;s a simple task, you can use one line of codes to do it: &#60;?php wp_get_archives(&#8216;title_li=&#38;type=postbypost&#38;limit=10&#8242;); ?&#62; The function wp_get_archives() is used [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://zacklive.com/wp-content/uploads/2009/10/recent_posts.png"><img class="aligncenter size-full wp-image-574" title="recent_posts" src="http://zacklive.com/wp-content/uploads/2009/10/recent_posts.png" alt="recent_posts" width="344" height="343" /></a></p>
<p>Getting recent posts in you <a title="WordPress Blog" href="http://zacklive.com/tag/wordpress">WordPress</a> blog, is a old topic. WordPress now has a default widget to do this, but sometime we need to display recent posts outside of the widget area. It&#8217;s a simple task, you can use one line of codes to do it:</p>
<blockquote><p>&lt;?php wp_get_archives(&#8216;title_li=&amp;type=postbypost&amp;limit=10&#8242;); ?&gt;</p></blockquote>
<p>The function <em>wp_get_archives()</em> is used to display a date-based archives list. While setting &#8216;type&#8217; to &#8216;postbypost&#8217;, it returns posts odered by post date, which means recent posts, that&#8217;s what we want. And then we need to set the limit of posts by &#8216;limit=10&#8242;. That&#8217;s it, we have 10 recent posts now, you can put this codes into wherever in your theme.</p>
<p>For detail of <em>wp_get_archives()</em>, you can visit the WordPress Codex <a title="WordPress Codex Recent posts" href="http://codex.wordpress.org/Template_Tags/wp_get_archives">here</a>.</p>
<p><span id="more-573"></span>This article is also posted at <a title="gearor wordpress recent posts" href="http://gearor.com/getting-recent-posts-in-wordpress/47/">Gearor.com</a>.</p>
<p  class="related_post_title">Related Posts</p><ul class="related_post"><li><a href="http://zacklive.com/update-blacknwhite-theme-update-05-november-2009/605/" title="Update: BlackNWhite Theme Update 05/November/2009">Update: BlackNWhite Theme Update 05/November/2009</a></li><li><a href="http://zacklive.com/update-graylines-theme-updated-05november2009/599/" title="Update: GrayLines Theme Updated 05/November/2009">Update: GrayLines Theme Updated 05/November/2009</a></li><li><a href="http://zacklive.com/wordpress-month-special-offer-from-packtpub/3204/" title="WordPress Month Special Offer from PacktPub">WordPress Month Special Offer from PacktPub</a></li><li><a href="http://zacklive.com/free-wordpress-theme-brominerary-theme/3094/" title="Free WordPress Theme: Brominerary Theme">Free WordPress Theme: Brominerary Theme</a></li><li><a href="http://zacklive.com/free-wordpress-theme-fresh-theme/3060/" title="Free WordPress Theme: Fresh Theme">Free WordPress Theme: Fresh Theme</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://zacklive.com/getting-recent-posts-in-wordpress/573/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

