<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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"
		>
	<channel>
		<title>bbPress Support Forums &#187; Topic: Display latest posts on other page</title>
		<link>http://bbpress.org/forums/topic/display-latest-posts-on-other-page</link>
		<description>bbPress Support Forums &#187; Topic: Display latest posts on other page</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 08:46:00 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://bbpress.org/forums/rss/topic/display-latest-posts-on-other-page" rel="self" type="application/rss+xml" />

		<item>
			<title>Ashfame on "Display latest posts on other page"</title>
			<link>http://bbpress.org/forums/topic/display-latest-posts-on-other-page#post-36759</link>
			<pubDate>Fri, 12 Jun 2009 11:27:12 +0000</pubDate>
			<dc:creator>Ashfame</dc:creator>
			<guid isPermaLink="false">36759@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Use this in header :<br />
<pre><code>&#60;?php
	// URL location of your feed
	$feedUrl = &#34;http://feeds2.feedburner.com/ashfameblog?format=xml&#34;;
// Replace the above URL with yours
	$feedContent = &#34;&#34;;

	// Fetch feed from URL
	$curl = curl_init();
	curl_setopt($curl, CURLOPT_URL, $feedUrl);
	curl_setopt($curl, CURLOPT_TIMEOUT, 3);
	curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($curl, CURLOPT_HEADER, false);

	// FeedBurner requires a proper USER-AGENT...
	curl_setopt($curl, CURL_HTTP_VERSION_1_1, true);
	curl_setopt($curl, CURLOPT_ENCODING, &#34;gzip, deflate&#34;);
	curl_setopt($curl, CURLOPT_USERAGENT, &#34;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3&#34;);

	$feedContent = curl_exec($curl);
	curl_close($curl);
?&#62;</code></pre>
<p>Use this to show :<br />
<pre><code>&#60;?php
				$count=0;
				// Did we get feed content?
				if($feedContent &#38;&#38; !empty($feedContent))
				{
					$feedXml = @simplexml_load_string($feedContent);
					if($feedXml)
					{
				?&#62;
				&#60;ul&#62;
				&#60;?php foreach($feedXml-&#62;channel-&#62;item as $item): if($count==6) { break; } ?&#62;
					&#60;li&#62;&#60;a href=&#34;&#60;?php echo $item-&#62;link; ?&#62;&#34;&#62;&#60;?php echo $item-&#62;title; ?&#62;&#60;/a&#62;&#60;/li&#62;
				&#60;?php $count++; endforeach; ?&#62;
				&#60;/ul&#62;
				&#60;?php }} ?&#62;</code></pre>]]></description>
					</item>
		<item>
			<title>chrishajer on "Display latest posts on other page"</title>
			<link>http://bbpress.org/forums/topic/display-latest-posts-on-other-page#post-36745</link>
			<pubDate>Thu, 11 Jun 2009 23:48:32 +0000</pubDate>
			<dc:creator>chrishajer</dc:creator>
			<guid isPermaLink="false">36745@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>Couldn't you just take the latest posts RSS feed and use that in your other page?
</p>]]></description>
					</item>
		<item>
			<title>michaelphill on "Display latest posts on other page"</title>
			<link>http://bbpress.org/forums/topic/display-latest-posts-on-other-page#post-36716</link>
			<pubDate>Thu, 11 Jun 2009 15:36:22 +0000</pubDate>
			<dc:creator>michaelphill</dc:creator>
			<guid isPermaLink="false">36716@http://bbpress.org/forums/</guid>
			<description><![CDATA[<p>I'm looking for a plugin that will allow me to display the last 5 or so posts in a designated forum on another page outside of the BBPress/WP installation.</p>
<p>Something similar to thisL</p>
<p><a href="http://bbpress.org/plugins/topic/bbpress-latest-discussion-for-wp/" rel="nofollow">http://bbpress.org/plugins/topic/bbpress-latest-discussion-for-wp/</a></p>
<p>Any suggestions?
</p>]]></description>
					</item>

	</channel>
</rss>

