<?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>AquilaX's development blog &#187; Wordpress</title>
	<atom:link href="http://dev.horemag.net/category/php/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.horemag.net</link>
	<description>code and so on...</description>
	<lastBuildDate>Thu, 02 Feb 2012 08:29:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Banner widget for Wordpress</title>
		<link>http://dev.horemag.net/2007/11/04/banner-widget-for-wordpress/</link>
		<comments>http://dev.horemag.net/2007/11/04/banner-widget-for-wordpress/#comments</comments>
		<pubDate>Sun, 04 Nov 2007 12:45:47 +0000</pubDate>
		<dc:creator>AquilaX</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[banner]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://dev.horemag.net/2007/11/04/banner-widget-for-wordpress/</guid>
		<description><![CDATA[I spent almost two hours, looking for Wordpress widget, which supports multiple instances and can embed banners into the sidebar. It looks like the solution is dead simple. Just use an instance of the default Text Widget and paste the HTML code for the banner inside.
]]></description>
			<content:encoded><![CDATA[<p>I spent almost two hours, looking for Wordpress widget, which supports multiple instances and can embed banners into the sidebar. It looks like the solution is dead simple. Just use an instance of the default <strong>Text Widget</strong> and paste the HTML code for the banner inside.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.horemag.net/2007/11/04/banner-widget-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Live RSS Feed page in Wordpress</title>
		<link>http://dev.horemag.net/2007/11/03/live-rss-feed-page-in-wordpress/</link>
		<comments>http://dev.horemag.net/2007/11/03/live-rss-feed-page-in-wordpress/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 12:05:15 +0000</pubDate>
		<dc:creator>AquilaX</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://dev.horemag.net/?p=11</guid>
		<description><![CDATA[Iko has an idea of showing Live RSS feeds in Wordpress Pages. Here is my solution to accomplish this task.
Wordpress supports Page templates, on which this solution is based.

Locate page.php in your template's direcotory. 
Copy the file and rename it to something like rsspage.php, and then open it for editing
Add or modify header comment of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://iko.drundrun.org" onclick="javascript:urchinTracker('/outbound/article/http://iko.drundrun.org');">Iko</a> has an <a href="http://iko.drundrun.org/blog/?p=779" onclick="javascript:urchinTracker('/outbound/article/http://iko.drundrun.org/blog/?p=779');">idea</a> of showing Live RSS feeds in <a href="http://wordpress.org" onclick="javascript:urchinTracker('/outbound/article/http://wordpress.org');">Wordpress</a> Pages. Here is my solution to accomplish this task.<br />
Wordpress supports <a href="http://codex.wordpress.org/Pages#Page_Templates" onclick="javascript:urchinTracker('/outbound/article/http://codex.wordpress.org/Pages#Page_Templates');">Page templates</a>, on which this solution is based.</p>
<ol>
<li>Locate <strong>page.php</strong> in your template's direcotory. </li>
<li>Copy the file and rename it to something like <strong>rsspage.php</strong>, and then open it for editing</li>
<li>Add or modify header comment of the file to:
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #808080; font-style: italic;">/*
Template Name: RSS Page
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
</li>
<li>Locate <strong>the_content()</strong> function in the code and insert the following code after it:
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #0000ff;">$values</span> = get_post_custom_values<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'RSS'</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #0000ff;">$items</span> = <a href="http://www.php.net/array" onclick="javascript:urchinTracker('/outbound/article/http://www.php.net/array');"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<a href="http://www.php.net/empty" onclick="javascript:urchinTracker('/outbound/article/http://www.php.net/empty');"><span style="color: #000066;">empty</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    <span style="color: #0000ff;">$url</span> = <span style="color: #0000ff;">$values</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span>;
    <span style="color: #b1b100;">include_once</span><span style="color: #66cc66;">&#40;</span>ABSPATH . WPINC . <span style="color: #ff0000;">'/rss.php'</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$rss</span> = fetch_rss<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$url</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$maxitems</span> = <span style="color: #cc66cc;">10</span>;
    <span style="color: #0000ff;">$items</span> = <a href="http://www.php.net/array_slice" onclick="javascript:urchinTracker('/outbound/article/http://www.php.net/array_slice');"><span style="color: #000066;">array_slice</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$rss</span>-&gt;<span style="color: #006600;">items</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #0000ff;">$maxitems</span><span style="color: #66cc66;">&#41;</span>;
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/empty" onclick="javascript:urchinTracker('/outbound/article/http://www.php.net/empty');"><span style="color: #000066;">empty</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$items</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
  _e<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;No items&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #b1b100;">else</span>
  <span style="color: #b1b100;">foreach</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$items</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$item</span> <span style="color: #66cc66;">&#41;</span> :
<span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;a href=<span style="color: #ff0000;">&quot;&lt;?php echo $item['link']; ?&gt;&quot;</span>&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <a href="http://www.php.net/echo" onclick="javascript:urchinTracker('/outbound/article/http://www.php.net/echo');"><span style="color: #000066;">echo</span></a> <a href="http://www.php.net/htmlspecialchars" onclick="javascript:urchinTracker('/outbound/article/http://www.php.net/htmlspecialchars');"><span style="color: #000066;">htmlspecialchars</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$item</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'title'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;/a&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endforeach</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
</li>
<li>Save rsspage.php into your template directory</li>
<li>Create new page in Wordpress: Write->Page and change <strong>Page Template</strong> to <strong>RSS Page</strong> from the right column.</li>
<li>Save the page</li>
<li>Go to Manage -> Pages and <strong>Edit</strong> the page You just created.</li>
<li>Scroll to the bottom and add new field in <strong>Custom Fields</strong> named <strong>RSS</strong> with the RSS feed, You want to show as value. Click Add Custom Field and then <strong>Publish</strong> the page</li>
</ol>
<p>That's all.</p>
<p>The Main code section is provided by <a href="http://iko.drundrun.org/blog/" onclick="javascript:urchinTracker('/outbound/article/http://iko.drundrun.org/blog/');">Iko</a></p>
<p><strong>Note!</strong> The Create -> Edit procedure is required due to <a href="http://trac.wordpress.org/ticket/3700" onclick="javascript:urchinTracker('/outbound/article/http://trac.wordpress.org/ticket/3700');">bug</a> in Wordpress 2.3.1</p>
<p>Live examples can be found <a href="http://dev.horemag.net/?page_id=2" >here</a> and <a href="http://dev.horemag.net/?page_id=7" >here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.horemag.net/2007/11/03/live-rss-feed-page-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

