<?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/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>AlanWho? &#187; Web Development</title>
	<atom:link href="http://alanwho.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://alanwho.com</link>
	<description>Cool Shit Often</description>
	<lastBuildDate>Tue, 04 Jan 2011 13:46:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<copyright>Copyright &#xA9; AlanWho? 2012 </copyright>
	<managingEditor>askalanwho@gmail.com (AlanWho?)</managingEditor>
	<webMaster>askalanwho@gmail.com (AlanWho?)</webMaster>
	<image>
		<url>http://alanwho.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>AlanWho?</title>
		<link>http://alanwho.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>Cool Shit Often</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &#38; Culture" />
	<itunes:author>AlanWho?</itunes:author>
	<itunes:owner>
		<itunes:name>AlanWho?</itunes:name>
		<itunes:email>askalanwho@gmail.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://alanwho.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>Creating A Splash Page For WordPress</title>
		<link>http://alanwho.com/web-development/creating-a-splash-page-for-wordpress/</link>
		<comments>http://alanwho.com/web-development/creating-a-splash-page-for-wordpress/#comments</comments>
		<pubDate>Sun, 02 Jul 2006 22:19:01 +0000</pubDate>
		<dc:creator>Alan Who</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.alanwho.com/web-development/creating-a-splash-page-for-wordpress</guid>
		<description><![CDATA[<p><img alt="Futcha Splash" id="image29" src="http://www.alanwho.com/wp-content/uploads/2006/07/futcha-splash.jpg" /></p>

<p>On a recent job, the client consistently demanded a splash page for their website. Despite my consistent groans and insistence that the implementation of a splash page on their website would instantly turn it, them and me to the dark side, I gave in.</p>
<p>I reluctantly implemented a quick solution using Wordpress. I used php to check if the user was referred to the index page from within the site or from out with the site.</p>]]></description>
			<content:encoded><![CDATA[<p><img alt="Futcha Splash" id="image29" src="http://www.alanwho.com/wp-content/uploads/2006/07/futcha-splash.jpg" /></p>

<p>On a recent job, the client consistently demanded a splash page for their website. Despite my consistent groans and insistence that the implementation of a splash page on their website would instantly turn it, them and me to the dark side, I gave in.</p>
<p>I reluctantly implemented a quick solution using WordPress. I used php to check if the user was referred to the index page from within the site or from out with the site.</p><span id="more-27"></span>

<p>Usually splash pages use an "index.html" page in the website root with a link to a directory such as "<em>blog</em>". But I  had installed <a href="http://www.wordpress.org">WordPress</a> in the root. I could not be bothered moving the installation folder from the root to another folder to suit the splash page nonsense. So I used php with an if statement to check if the user was referred to the site from outside the domain or within and thus display content accordingly:</p>

<pre class="prettyprint">
<div class="codesnip-container" ><?php
if( (strpos($_SERVER['HTTP_REFERER'], get_bloginfo('home')) === false) &#038;& !$_SERVER['QUERY_STRING']) :
?>
<html>
<head>

</head>
<body>
<h1><a href="http://www.yourwebsite.com">Enter</a></h1>
</body>
</html>
<?php else : ?>
<html>
<head>

</head>
<body>
<h1>Welcome to the main page</h1>
<h2>By the way Alan is a total ledge!</h2>
</body>
</html></div>
</pre>

<p>In reference to the above code; all that is before the else statement i.e. the following code:</p>

<pre class="prettyprint">
<div class="codesnip-container" ><html>
<head>

</head>
<body>
<h1><a href="http://www.yourwebsite.com">Enter</a></h1>
</body>
</html></div>
</pre>

<p>Will be the output splash page. All that is after the else statement i.e. the following code:</p>

<pre class="prettyprint">
<div class="codesnip-container" ><html>
<head>

</head>
<body>
<h1>Welcome to the main page</h1>
<h2>By the way Alan is a total ledge!</h2>
</body>
</html></div>
</pre>

<p>Will be output when the user clicks enter on the splash page.</p>]]></content:encoded>
			<wfw:commentRss>http://alanwho.com/web-development/creating-a-splash-page-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Separate WordPress Category Feeds</title>
		<link>http://alanwho.com/web-development/how-to-have-separate-category-feeds-in-wordpress/</link>
		<comments>http://alanwho.com/web-development/how-to-have-separate-category-feeds-in-wordpress/#comments</comments>
		<pubDate>Wed, 31 May 2006 21:50:11 +0000</pubDate>
		<dc:creator>Alan Who</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.alanwho.com/the-web/how-to-have-separate-category-feeds-in-wordpress</guid>
		<description><![CDATA[<p>‘Wordpress’ is renowned for allowing a generous selection of various feeds, whether it be <em>‘RSS’</em> or <em>‘ATOM’</em> or others, but it only comes with one basic feed option has default. Wouldn’t it be nice to be able to have a separate feed for separate categories?</p>]]></description>
			<content:encoded><![CDATA[<p>‘Wordpress’ is renowned for allowing a generous selection of various feeds, whether it be <em>‘RSS’</em> or <em>‘ATOM’</em> or others, but it only comes with one basic feed option has default. Wouldn’t it be nice to be able to have a separate feed for separate categories?</p><span id="more-14"></span>

<p>At the start of this brief article I stated that ‘Wordpress’, “only comes with one basic feed option as default”, this is only half of the reality.</p>
<p>WordPress is actually equipped to separate various categories into associated feeds, but such a function is disabled with the default install.</p>
<p>In order to access the feeds for categories, place the following one line of code anywhere on your site, the ’sidebar’ would be most fantastic: </p>
<pre>
<div class="codesnip-container" ><?php wp_list_cats(’sort_column=name&#038;optioncount=1&#038;feed=RSS’); ?></div>
</pre>
<p>After adding the above code, a list of categories will be rendered with dedicated RSS links, so that you can reference them elsewhere if you so wished.</p>]]></content:encoded>
			<wfw:commentRss>http://alanwho.com/web-development/how-to-have-separate-category-feeds-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Include Preset Text In WordPress Posts</title>
		<link>http://alanwho.com/web-development/how-to-set-posts-in-a-wordpress-blog-to-include-preset-text/</link>
		<comments>http://alanwho.com/web-development/how-to-set-posts-in-a-wordpress-blog-to-include-preset-text/#comments</comments>
		<pubDate>Sun, 19 Mar 2006 15:08:53 +0000</pubDate>
		<dc:creator>Alan Who</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.alanwho.com/uncategorized/how-to-set-posts-in-a-wordpress-blog-to-include-preset-text</guid>
		<description><![CDATA[<h3>Pre-Written Text On The Wordpress ‘Write’ Page</h3>

<p>I wanted to have some text at the bottom of every page and thus have it prewritten in the ‘<em>Write</em>‘ section of my admin section of my Wordpress blod. I did not want to have to go through the rigmoral of entering the same text everytime that I wanted to write a new post. I asked myself:</p>]]></description>
			<content:encoded><![CDATA[<h3>Pre-Written Text On The WordPress &#8216;Write&#8217; Page</h3>

<p>I wanted to have some text at the bottom of every page and thus have it prewritten in the &#8216;<em>Write</em>&#8216; section of my admin section of my WordPress blod. I did not want to have to go through the rigmoral of entering the same text everytime that I wanted to write a new post. I asked myself:</p>

<h3>How could I do this?</h3>

<h4><strong>Step 1</strong>: Editing the &#8216;<em>wp-admin/edit-form-advanced.php</em>&#8216; file.</h4>
<p>The file that needs to be edited is &#8216;<em>edit-form-advanced.php</em>&#8216; in the &#8216;<em>wp-admin</em>&#8216; folder. The line in question is <strong>100</strong>. I looked for the following portion of code on <strong>line 100</strong> of the &#8216;<em>edit-form-advanced.php</em>&#8216; file:</p>

<pre>
<div class="codesnip-container" ><div>
<textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="5" id="content">
<? php echo $content ?>
I AM AMAZING!
</textarea>
</div></div>
</pre>

<p>For the sake of this example, the text, I want to have pre-written in the &#8216;Post&#8217; field in the &#8216;Write&#8217; page is &#8220;<strong>I AM AMAZING!</strong>&#8220;. In order to achieve my objective I simply alter the above code to the following:</p>

<pre>
<div class="codesnip-container" ><div>
<textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="5" id="content">

<? php echo $content ?>
I AM AMAZING!
</textarea>
</div></div>
</pre>
<h4><strong>Step 2</strong>: Save and upload.</h4>
<p>I then saved my changes and uploaded the changed &#8216;<em>edit-form-advanced.php</em>&#8216; file to my webserver in the &#8216;<em>wp-admin</em>&#8216; folder, and perfection is mine!</p></p>
]]></content:encoded>
			<wfw:commentRss>http://alanwho.com/web-development/how-to-set-posts-in-a-wordpress-blog-to-include-preset-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Only 1 WordPress Category In &#8216;index.php&#8217;</title>
		<link>http://alanwho.com/web-development/how-to-show-only-one-category-in-indexphp-of-any-wordpress-site/</link>
		<comments>http://alanwho.com/web-development/how-to-show-only-one-category-in-indexphp-of-any-wordpress-site/#comments</comments>
		<pubDate>Sun, 19 Mar 2006 14:58:00 +0000</pubDate>
		<dc:creator>Alan Who</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.alanwho.com/uncategorized/how-to-show-only-one-category-in-indexphp-of-any-wordpress-site</guid>
		<description><![CDATA[<p><img src="http://www.alanwho.com/wp-admin/images/wordpress-logo.png" alt="Wordpress" /></p>
<p>I wanted to just show my ‘website news’ category in the root of my Wordpress installation. But by default index.php shows the latest posts from all categories, this was not what I wanted. So how could I get what I want?</p>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.alanwho.com/wp-admin/images/wordpress-logo.png" alt="Wordpress" /></p>
<p>I wanted to just show my ‘website news’ category in the root of my WordPress installation. But by default index.php shows the latest posts from all categories, this was not what I wanted. So how could I get what I want?</p><span id="more-11"></span>
<h4>Step 1</h4>
<p>I take a look in index.php. It displays:</p>
<pre>
<div class="codesnip-container" ><?php
/* Short and sweet */
define("WP_USE_THEMES", true);
require("./wp-blog-header.php");
?></div>
</pre>
<h4>Step 2</h4>
<p>After looking at this code I could see, clearly, there was no statement to restrict what category to show, which was what I wanted. So I checked in the Administration>Categories section in the Administration part of my site to find out the category ID of the category I wanted to just show on my index.php in my WordPress installation root, the category ID was ‘2?. I changed index.php to the following and uploaded it to my webserver:</p>
<pre>
<div class="codesnip-container" ><?php
$blog = 1;
if (!isset($cat)) {
$cat = "2";
}
/* Don't remove this line. */
define("WP_USE_THEMES", true);
require("./wp-blog-header.php");
?></div>
</pre>]]></content:encoded>
			<wfw:commentRss>http://alanwho.com/web-development/how-to-show-only-one-category-in-indexphp-of-any-wordpress-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

