<?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>Social Vitamin &#187; Wordpress</title>
	<atom:link href="http://www.socialvitamin.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.socialvitamin.com</link>
	<description>Give your social space a vitamin boost.</description>
	<lastBuildDate>Tue, 17 Aug 2010 20:34:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress Building simple lists using get_posts()</title>
		<link>http://www.socialvitamin.com/2009/04/11/wordpress-building-simple-lists-using-get_posts/</link>
		<comments>http://www.socialvitamin.com/2009/04/11/wordpress-building-simple-lists-using-get_posts/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 14:18:35 +0000</pubDate>
		<dc:creator>Michael D. Irizarry</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.socialvitamin.com/?p=112</guid>
		<description><![CDATA[It&#8217;s really simple to build lists using the get_posts() method. Here&#8217;s an example of getting all the posts from a single category. PHP // Simple Lists function get_simple_list($category) { global [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s really simple to build lists using the get_posts() method. Here&#8217;s an example of getting all the posts from a single category.<br />
<span id="more-112"></span><br />
PHP</p>
<pre lang="PHP">
// Simple Lists
function get_simple_list($category) {

	global $post;
	$posts = get_posts('numberposts=5&#038;category='.$category);

	$html = '
<h1><a href="'. get_pretty_category_link($category) .'">'. get_cat_name($category) .'</a></h1>

';
	$html .= '
<ul class="simple_list">';
    foreach($posts as $post) :
		setup_postdata($post);
		$html .= '
<li>';
		$html .= '<a title="'. the_title('','',false) .'" href="'. get_permalink() .'" rel="bookmark">'. the_title('','',false) .'</a>';
		$html .= '</li>

';
    endforeach;

	$html .= '</ul>

';

	return $html;
}
</pre>
<p>Use</p>
<pre lang="PHP">
_e(get_simple_list(5)); // Where 5 is the category ID
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.socialvitamin.com/2009/04/11/wordpress-building-simple-lists-using-get_posts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
