<?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>Patrick Hopman</title>
	<atom:link href="http://www.patrickhopman.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.patrickhopman.nl</link>
	<description>Portfolio of a Web Designer</description>
	<lastBuildDate>Tue, 25 Oct 2011 08:26:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Create custom single post template for a category</title>
		<link>http://www.patrickhopman.nl/wordpress-tutorials/create-custom-single-post-template-for-a-category/</link>
		<comments>http://www.patrickhopman.nl/wordpress-tutorials/create-custom-single-post-template-for-a-category/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 08:22:16 +0000</pubDate>
		<dc:creator>patrickhopman</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://www.patrickhopman.nl/?p=165</guid>
		<description><![CDATA[In this tutorial i will show you how to create a single post template for a whole category. Required for this tutorial is basic HTML and CSS knowledge. To get ...]]></description>
			<content:encoded><![CDATA[<p>In this tutorial i will show you how to create a single post template for a whole category. Required for this tutorial is basic HTML and CSS knowledge.<span id="more-165"></span></p>
<p>To get started, past the following code in you&#8217;re theme&#8217;s functions.php.</p>
<pre class="brush: php; gutter: true">/**
* Create a path to the single template folders
*/
define(SINGLE_PATH, TEMPLATEPATH . '/single');

/**
* Filter the single_template with our custom function
*/
add_filter('single_template', 'my_single_template');

/**
* Single template function which will choose our template
*/
function my_single_template($single) {
global $wp_query, $post;

/**
* Checks for single template by category
* Check by category slug and ID
*/
foreach((array)get_the_category() as $cat) :

if(file_exists(SINGLE_PATH . '/single-cat-' . $cat-&gt;slug . '.php'))
return SINGLE_PATH . '/single-cat-' . $cat-&gt;slug . '.php';

elseif(file_exists(SINGLE_PATH . '/single-cat-' . $cat-&gt;term_id . '.php'))
return SINGLE_PATH . '/single-cat-' . $cat-&gt;term_id . '.php';

else
return 'single.php';

endforeach;
}</pre>
<p>What this code does is it searches for files named single-cat-yourcategoryname.php and then uses this file as a template for the single posts in that category. This code can also easily be done for one author. Instead use paste the following code in you&#8217;re functions.php</p>
<pre class="brush: php; gutter: true">/**
* Define a constant path to our single template folder
*/
define(SINGLE_PATH, TEMPLATEPATH . '/single');

/**
* Filter the single_template with our custom function
*/
add_filter('single_template', 'my_single_template');

/**
* Single template function which will choose our template
*/
function my_single_template($single) {
global $wp_query, $post;

/**
* Checks for single template by author
* Check by user nicename and ID
*/
$curauth = get_userdata($wp_query-&gt;post-&gt;post_author);

if(file_exists(SINGLE_PATH . '/single-author-' . $curauth-&gt;user_nicename . '.php'))
return SINGLE_PATH . '/single-author-' . $curauth-&gt;user_nicename . '.php';

elseif(file_exists(SINGLE_PATH . '/single-author-' . $curauth-&gt;ID . '.php'))
return SINGLE_PATH . '/single-author-' . $curauth-&gt;ID . '.php';
}</pre>
<p>This code works the same as the ones for a category, just save you&#8217;re author single post template in the folder /single and give it a name like single-author-yourename.php.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickhopman.nl/wordpress-tutorials/create-custom-single-post-template-for-a-category/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iOS 5: What&#8217;s new?</title>
		<link>http://www.patrickhopman.nl/apple/ios-5-whats-new/</link>
		<comments>http://www.patrickhopman.nl/apple/ios-5-whats-new/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 16:00:05 +0000</pubDate>
		<dc:creator>patrickhopman</dc:creator>
				<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://www.patrickhopman.nl/?p=153</guid>
		<description><![CDATA[The final version of iOS 5 for iPhone, iPad and iPod Touch has just released and it brings lots of new features. In this small review i will highlight 2 ...]]></description>
			<content:encoded><![CDATA[<p>The final version of iOS 5 for iPhone, iPad and iPod Touch has just released and it brings lots of new features. In this small review i will highlight 2 new features.<span id="more-153"></span></p>
<h1>Notification Center</h1>
<p>Notification center is one of the biggest new features in iOS 5. With notification center you can see all the notifications that you received and watch the weather and stocks in one place. Notification center is accessed by swiping from above.</p>
<p><a href="http://www.patrickhopman.nl/wp-content/uploads/iOS-5-notification-center.png"><img class="size-full wp-image-149 alignnone" title="iOS-5-notification-center" src="http://www.patrickhopman.nl/wp-content/uploads/iOS-5-notification-center.png" alt="" width="386" height="348" /></a></p>
<h1><span class="Apple-style-span" style="font-size: 26px;">Reminders</span></h1>
<p>Reminders is a new app to remind yourself of thing&#8217;s you need to do. Just pull out your iPhone, iPad or iPod Touch, make a reminder and you will never forget anything. You can even get an reminder when you leave or arrive on a location.</p>
<p><a href="http://www.patrickhopman.nl/wp-content/uploads/ios-5-b4-reminders-1.jpg"><img class="size-full wp-image-150 alignnone" title="ios-5-b4-reminders-1" src="http://www.patrickhopman.nl/wp-content/uploads/ios-5-b4-reminders-1.jpg" alt="" width="300" height="450" /></a></p>
<h1>Over the air update</h1>
<p>Finally, you can update your iPhone, iPad or iPod Touch right on your device without the need of an PC or Mac. Just go to your settings and search for new updates and it automatically installs the new update. The updates are now also delta updates, so you only download the changes instead of the whole OS.</p>
<p><a href="http://www.patrickhopman.nl/wp-content/uploads/foto.png"><img class="size-full wp-image-151 alignnone" title="foto" src="http://www.patrickhopman.nl/wp-content/uploads/foto.png" alt="" width="320" height="480" /></a></p>
<h1>Wifi sync</h1>
<p>Another new feature is wifi sync. No need to plug in your iPhone, iPad or iPod touch to your PC or Mac. You can now sync over your wifi network so that all the content on your device is always up to date. When you plug your device on your power adapter, it automatically searches for your PC or Mac and starts syncing. And you won&#8217;t get interrupted while syncing cause it syncs in the background.</p>
<p><a href="http://www.patrickhopman.nl/wp-content/uploads/foto-1.png"><img class="alignnone size-full wp-image-152" title="foto-1" src="http://www.patrickhopman.nl/wp-content/uploads/foto-1.png" alt="" width="320" height="480" /></a></p>
<p>You can download iOS 5 right now by plugging in your device in your PC or Mac and press update via iTunes (for the last time, yay for over the air update).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickhopman.nl/apple/ios-5-whats-new/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Steve Jobs 1955-2011</title>
		<link>http://www.patrickhopman.nl/apple/steve-jobs/</link>
		<comments>http://www.patrickhopman.nl/apple/steve-jobs/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 05:46:20 +0000</pubDate>
		<dc:creator>patrickhopman</dc:creator>
				<category><![CDATA[Apple]]></category>

		<guid isPermaLink="false">http://www.patrickhopman.nl/?p=130</guid>
		<description><![CDATA[The man who was crazy enough to think he could change the world, was the one who did. Today, a great man has left us. One of the most inspiring ...]]></description>
			<content:encoded><![CDATA[<p>The man who was crazy enough to think he could change the world, was the one who did.<span id="more-130"></span></p>
<p>Today, a great man has left us. One of the most inspiring of the world. There&#8217;s not much words to say, but let&#8217;s let Steve speak for himself.</p>
<p><iframe src="http://www.youtube.com/embed/UF8uR6Z6KLc" frameborder="0" width="500" height="375"></iframe></p>
<p>Rest in Peace</p>
<p><a href="http://www.patrickhopman.nl/wp-content/uploads/steve2.jpg" target="_blank"><img title="steve" src="http://www.patrickhopman.nl/wp-content/uploads/steve2-680x425.jpg" alt="" width="500" height="313" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickhopman.nl/apple/steve-jobs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Register Plus Redux &#8211; WordPress Plugin</title>
		<link>http://www.patrickhopman.nl/wordpress-plugins/register-plus-redux-wordpress-plugin/</link>
		<comments>http://www.patrickhopman.nl/wordpress-plugins/register-plus-redux-wordpress-plugin/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 12:57:39 +0000</pubDate>
		<dc:creator>patrickhopman</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://www.patrickhopman.nl/?p=123</guid>
		<description><![CDATA[I just found this great plugin for WordPress that gives you the ability to alter the register page. This plugin is not available at wordpress.org cause WordPress says that it ...]]></description>
			<content:encoded><![CDATA[<p>I just found this great plugin for WordPress that gives you the ability to alter the register page. This plugin is not available at wordpress.org cause WordPress says that it has some sort of exploit although this exploit is not in the plugin but in the part of WordPress.<span id="more-123"></span></p>
<p>Things you can do with this plugin:</p>
<ul>
<li>Invitation codes. These are short codes that you can give to an individual or group of people that they will use to register for the site. An extra layer of security, so that you can be sure that the email address behind a registration actually belongs to someone in particular. Also, without an invitation code, the registration can’t be completed, so this avoids dealing with unwanted registrations.</li>
<li>Uses email as username (so people don’t need to remember their username).</li>
<li>Custom profile fields; for example, you could have a field named “Gender” and ask the members to specify M or F.</li>
<li>Custom registration email sent to new members, which can include fields such as the username.</li>
<li>Ability to show a disclaimer, privacy policy and/or license agreement during registration.</li>
<li>Users can pick their passwords themselves (no auto-generation).</li>
</ul>
<p>Credits to <a href="http://radiok.info/" target="_blank">RadioK</a> for this great plugin.</p>
<p><a href="http://www.patrickhopman.nl/wp-content/uploads/register-plus-redux-373.zip" target="_blank">Download Register Plus Redux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickhopman.nl/wordpress-plugins/register-plus-redux-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

