<?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>WpFunc &#187; rss feed</title>
	<atom:link href="http://wpfunc.com/tag/rss-feed/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Thu, 01 Dec 2011 01:17:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Fetch and display RSS feeds</title>
		<link>http://wpfunc.com/wordpress/fetch-and-display-rss-feeds.html</link>
		<comments>http://wpfunc.com/wordpress/fetch-and-display-rss-feeds.html#comments</comments>
		<pubDate>Sat, 05 Dec 2009 12:03:16 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[fetch feed]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[rss feed]]></category>
		<category><![CDATA[show rss]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=311</guid>
		<description><![CDATA[JBJ (WpRecipes) was released a WordPress tip about RSS. With this tip you can display RSS feed where you want. Only paste this code where you want to show your RSS Feed. Let&#8217;s Begin.
Here is the code;
Don&#8217;t forget change rss url on line 4.
This code shows RSS Feed with 200 chars description.
Here is the original [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">JBJ (<a href="http://www.wprecipes.com" target="_blank">WpRecipes</a>) was released a WordPress tip about RSS. With this tip you can display RSS feed where you want. Only paste this code where you want to show your RSS Feed. Let&#8217;s Begin.<span id="more-311"></span></p>
<h3>Here is the code;</h3>
<p>Don&#8217;t forget change rss url on line 4.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php if(function_exists('fetch_feed')) {

	include_once(ABSPATH.WPINC.'/feed.php');
	$feed = fetch_feed('http://feeds.feedburner.com/catswhoblog');

	$limit = $feed-&gt;get_item_quantity(7); // specify number of items
	$items = $feed-&gt;get_items(0, $limit); // create an array of items

}
if ($limit == 0) echo '&lt;div&gt;The feed is either empty or unavailable.&lt;/div&gt;';
else foreach ($items as $item) : ?&gt;

&lt;div&gt;
	&lt;a href=&quot;&lt;?php echo $item-&gt;get_permalink(); ?&gt;&quot;
	  title=&quot;&lt;?php echo $item-&gt;get_date('j F Y @ g:i a'); ?&gt;&quot;&gt;
		&lt;?php echo $item-&gt;get_title(); ?&gt;
	&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;
	&lt;?php echo substr($item-&gt;get_description(), 0, 200); ?&gt;
	&lt;span&gt;[...]&lt;/span&gt;
&lt;/div&gt;

&lt;?php endforeach; ?&gt;</pre>
<p>This code shows RSS Feed with 200 chars description.</p>
<p><em><strong><a href="http://www.wprecipes.com/wordpress-tip-fetch-and-display-rss-feeds" target="_blank">Here is the original post! </a></strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/fetch-and-display-rss-feeds.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

