<?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>Nicholas Wogberg</title>
	<atom:link href="http://nicholaswogberg.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nicholaswogberg.com</link>
	<description>Portfolio</description>
	<lastBuildDate>Fri, 18 May 2012 05:08:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Conditional Statement for Custom Post Types</title>
		<link>http://nicholaswogberg.com/conditional-statement-for-custom-post-types/</link>
		<comments>http://nicholaswogberg.com/conditional-statement-for-custom-post-types/#comments</comments>
		<pubDate>Sun, 08 Apr 2012 07:10:50 +0000</pubDate>
		<dc:creator>Nicholas</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://nicholaswogberg.com/?p=45</guid>
		<description><![CDATA[I love conditional statements in all forms of code, using them allows me to write less code and give my pages more flexibility. However if your using custom post types in WordPress the conditional tags are not as strait forward as they are with the default post type . Below is what the WordPress codex&#160; &#160;<a href="http://nicholaswogberg.com/conditional-statement-for-custom-post-types/">...Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>I love conditional statements in all forms of code, using them allows me to write less code and give my pages more flexibility. However if your using custom post types in WordPress the conditional tags are not as strait forward as they are with the default post type . Below is what the WordPress codex gives you as a conditional tag for custom post types.</p>
<pre class="brush: php; gutter: false">if ( &#039;book&#039; == get_post_type() )</pre>
<p>I have come across a tiny bit of code to make it work like all other conditional tags. Just add this to your functions.php.</p>
<pre class="brush: php; gutter: false">function is_post_type($type){
	global $wp_query;
	if($type == get_post_type($wp_query-&gt;post-&gt;ID)) return true;
	return false;
}</pre>
<p>And now you can use the following on your pages.</p>
<pre class="brush: php; gutter: false">if ( is_post_type(&#039;post_type&#039;)){
	//Do Stuff
}</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://nicholaswogberg.com/conditional-statement-for-custom-post-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make Money With WordPress: The WPMU Guide to Getting Paid</title>
		<link>http://nicholaswogberg.com/how-to-make-money-with-wordpress-the-wpmu-guide-to-getting-paid/</link>
		<comments>http://nicholaswogberg.com/how-to-make-money-with-wordpress-the-wpmu-guide-to-getting-paid/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 20:55:47 +0000</pubDate>
		<dc:creator>Nicholas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nicholaswogberg.com/2012/04/06/how-to-make-money-with-wordpress-the-wpmu-guide-to-getting-paid/</guid>
		<description><![CDATA[http://wpmu.org/make-money-with-wordpress/ This is a solid collection of tips and advice for using WordPress to earn some cash.]]></description>
			<content:encoded><![CDATA[<div class="wdqs wdqs_link wdqs-link-container">
	<p class="wdqs-link-to-source"><a target="_blank" href="http://wpmu.org/make-money-with-wordpress/">http://wpmu.org/make-money-with-wordpress/</a></p>
	<div class="wdqs-thumbnail-container">
								<a href="http://wpmu.org/make-money-with-wordpress/" target="_blank"><img src="http://wpmu.org/wp-content/uploads/2011/07/logo.jpg" /></a>
			</div>
	<div class="wdqs-text-container">
		<p>This is a solid collection of tips and advice for using WordPress to earn some cash.</p>
	</div>
	<div style="clear:both"></div>
</div>]]></content:encoded>
			<wfw:commentRss>http://nicholaswogberg.com/how-to-make-money-with-wordpress-the-wpmu-guide-to-getting-paid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://nicholaswogberg.com/hello-world/</link>
		<comments>http://nicholaswogberg.com/hello-world/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 00:54:03 +0000</pubDate>
		<dc:creator>Nicholas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nicholaswogberg.com/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
			<content:encoded><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></content:encoded>
			<wfw:commentRss>http://nicholaswogberg.com/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

