<?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>WordPress Pro - WordPress How To Plugins, Themes Usability &#187; Random Header Images</title>
	<atom:link href="http://crunchpress.com/tag/random-header-images/feed/" rel="self" type="application/rss+xml" />
	<link>http://crunchpress.com</link>
	<description>Learn How To Use WordPress Like A Pro - WordPress Pro Articles</description>
	<lastBuildDate>Sun, 23 Oct 2011 08:49:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to Display WordPress Random Header Images</title>
		<link>http://crunchpress.com/how-to-display-wordpress-random-header-images/</link>
		<comments>http://crunchpress.com/how-to-display-wordpress-random-header-images/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 15:25:09 +0000</pubDate>
		<dc:creator>Nasir Hayat</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Random Header Images]]></category>
		<category><![CDATA[WordPress Header Images]]></category>
		<category><![CDATA[WordPress Random Header]]></category>

		<guid isPermaLink="false">http://crunchpress.com/?p=310</guid>
		<description><![CDATA[
Make your header images dynamic. After applying this technique header image will be change on each visit. You can select as many images as you want to rotate randomly. It brings life to a blog.
First you need to name your images in this format:

header_1.gif
header_2.gif
header_3.gif

You must separate the name with an underscore. You can change the [...]]]></description>
			<content:encoded><![CDATA[<div style='float:left;' class='myrp_float_left myrp_float'></div>
<div style='float:right;' class='myrp_float_right myrp_float'></div>
<p style="text-align: center;"><a rel="attachment wp-att-312" href="http://crunchpress.com/how-to-display-wordpress-random-header-images/random-header/"><img class="How to Display WordPress Random Header Images aligncenter" title="How to Display WordPress Random Header Images" src="http://crunchpress.com/wp-content/uploads/2009/12/random-header.gif" alt="" width="339" height="219" /></a></p>
<p>Make your header images dynamic. After applying this technique header image will be change on each visit. You can select as many images as you want to rotate randomly. It brings life to a blog.</p>
<p>First you need to name your images in this format:</p>
<ul>
<li>header_1.gif</li>
<li>header_2.gif</li>
<li>header_3.gif</li>
</ul>
<p>You must separate the name with an underscore. You can change the headerimage text to himage or anything you like.</p>
<p>Once you have done that paste the following code in your <em>header.php</em> where you would like the images to be displayed or in any other file.</p>
<blockquote><p>&lt;img src=&#8221;http://path_to_images/headerimage_&lt;?php echo(rand(1,3)); ?&gt;.gif&#8221;<br />
width=&#8221;image_width&#8221; height=&#8221;image_height&#8221; alt=&#8221;image_alt_text&#8221; /&gt;</p></blockquote>
<p>Make sure that you change the number 3 if you decide to do more than 3 images. This code is not exclusive for WordPress, it will work with any php based platform.</p>
]]></content:encoded>
			<wfw:commentRss>http://crunchpress.com/how-to-display-wordpress-random-header-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

