<?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>Andygirvan.com &#187; Tips</title>
	<atom:link href="http://andygirvan.com/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://andygirvan.com</link>
	<description>London based Freelance Web &#38; iPhone Developer</description>
	<lastBuildDate>Mon, 09 Jan 2012 17:08:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Expression Engine: Add Global Variables to Channel Entries</title>
		<link>http://andygirvan.com/2011/05/expression-engine-add-global-variables-to-channel-entries/</link>
		<comments>http://andygirvan.com/2011/05/expression-engine-add-global-variables-to-channel-entries/#comments</comments>
		<pubDate>Tue, 10 May 2011 12:57:48 +0000</pubDate>
		<dc:creator>Andy G</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Expression Engine]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[eeallow]]></category>
		<category><![CDATA[expression engine]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://andygirvan.com/?p=456</guid>
		<description><![CDATA[<p>Posted in <a href="http://andygirvan.com/tumblog/articles/">Articles</a></p>In Expression Engine, global variables can be used at template level for many uses. In one of my latest projects, I needed to pass through a specific global variable, but instead of placing the tag in the template, I needed to put it directly into my channel entry. Here's how I achieved it...
]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://andygirvan.com/tumblog/articles/">Articles</a></p><p>In <a href="http://expressionengine.com/">Expression Engine</a>, global variables can be used at template level for many uses. In one of my latest projects, I needed to pass through a specific global variable, but instead of placing the tag in the template I needed to put it directly into my channel entry. Unfortunately, <a href="/category/development/expression-engine/">EE2.0</a> does not natively support this feature.</p>
<p>The first thing you&#8217;ll need to do is install the amazing <a href="http://expressionengine.com/downloads/details/allow_ee_code/" target="_blank">Allow EE Code</a> plugin. This plugin does 90% of the work required and allows you to put <a href="/category/development/expression-engine/">Expression Engine</a> tags within a Channel Entry. To make this work, activate the plugin and go to the location in your template where the entry will be output. Wrap whatever you want to be allowed to write EE tags in the following:</p>
<div class="box"><div class="icon icon-code left" style="background-image: url(http://andygirvan.com/wp-content/themes/fastblog/images/icons/code.png);">{exp:allow_eecode}<br />
{body}<br />
{/exp:allow_eecode}</div></div>
<p>This will allow you to then place, and successfully output, <a href="/category/development/expression-engine/">Expression Engine</a> tags within your entry. The problem is, if you want to be able to render your global variables in the entry it will not work.</p>
<div class="box"><div class="icon icon-none left">This in an entry <strong>will</strong> work:<br />
{exp:channel:entries}{title}{/exp:channel:entries}</p>
<p>This in an entry <strong>won&#8217;t</strong> work:<br />
{global_var}</div></div>
<p>To be able to pass through global variables, we need to tell the plugin to string replace the global vars with their correct contents. To do this, open up the <a href="http://expressionengine.com/downloads/details/allow_ee_code">EEAllow </a>plugin file:</p>
<div class="box"><div class="icon icon-none left">/system/expressionengine/third_party/allow_eecode/pi.allow_eecode.php</div></div>
<p>and just before the function &#8220;Allow_eecode&#8221; ends, put the following:</p>
<div class="box"><div class="icon icon-code left" style="background-image: url(http://andygirvan.com/wp-content/themes/fastblog/images/icons/code.png);">// Checks to see if there are any global variables set.<br />
if(count($GLOBALS['assign_to_config']['global_vars']) &gt; 0)<br />
{</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;// Loops through each global variable<br />
&nbsp;&nbsp;&nbsp;&nbsp;foreach($GLOBALS['assign_to_config']['global_vars'] as $gkey =&gt; $gvar)<br />
&nbsp;&nbsp;&nbsp;&nbsp;{</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Creates a variable with the name of the<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// global variable wrapped in curly brackets}<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$gtag = &#8220;{&#8221; . $gkey . &#8220;}&#8221;;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// String replaces any found global variable<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// tags in the content with the value of the global variable<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$str = str_replace($gtag,$gvar,$str);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;}<br />
}</p>
<p>// Put the above code before this<br />
$this-&gt;return_data = $str;</div></div>
<p>Voilá! This will now correctly output the global variable wherever you want your content to be shown.</p>
<p>Thanks to <a href="http://twitter.com/spol">@spol</a> for helping me figure this one out, saving me endless hours of banging my head on the desk.</p>
<div class="line"><div></div></div>
<p>If you enjoyed this post, why not subscribe to <a href="http://andygirvan.com/feed/">my feed</a> or check me out on <a href="http://twitter.com/andygirvan">Twitter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2011/05/expression-engine-add-global-variables-to-channel-entries/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Quick Tips &#8211; WordPress: Add Excerpt support for Pages</title>
		<link>http://andygirvan.com/2010/11/quick-tips-wordpress-add-excerpt-support-for-pages/</link>
		<comments>http://andygirvan.com/2010/11/quick-tips-wordpress-add-excerpt-support-for-pages/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 12:21:52 +0000</pubDate>
		<dc:creator>Andy G</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[pages]]></category>
		<category><![CDATA[quicktips]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://andygirvan.com/?p=221</guid>
		<description><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/" title="Development">Development</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a><a href="http://andygirvan.com/category/development/wordpress-development/" title="Wordpress">Wordpress</a></p>This tip is really handy if you need to add excerpt functionality for your Wordpress pages. ]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/" title="Development">Development</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a><a href="http://andygirvan.com/category/development/wordpress-development/" title="Wordpress">Wordpress</a></p><p>This tip is really handy if you need to add excerpt functionality for your WordPress pages. Simply drop the following code into your functions.php:</p>
<pre class="brush: js">	add_action('init', 'my_custom_init');

	function my_custom_init() {
		add_post_type_support( 'page', 'excerpt' );
}</pre>
<p>You&#8217;ll magically see the excerpt field appear in the wordpress page creation screen.</p>
<p><script type="text/javascript">// <![CDATA[
    SyntaxHighlighter.all();
// ]]&gt;</script></p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2010/11/quick-tips-wordpress-add-excerpt-support-for-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Write a Good Developer Tutorial</title>
		<link>http://andygirvan.com/2010/09/how-to-write-a-good-developer-tutorial/</link>
		<comments>http://andygirvan.com/2010/09/how-to-write-a-good-developer-tutorial/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 13:10:55 +0000</pubDate>
		<dc:creator>Andy G</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://andygirvan.com/?p=155</guid>
		<description><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/" title="Development">Development</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a></p>After a few weeks delving into the intricacies of Xcode I've had the good fortune to come across some very well written and helpful tutorials. I did, however, stumble upon some not so good guides. So here for your consumption are a few tips to making a better developer tutorial.]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/" title="Development">Development</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a></p><p>After a few weeks delving into the intricacies of Xcode I&#8217;ve had the good fortune to come across some very well written and helpful tutorials. I did, however, stumble upon some not so good guides. So here for your consumption are a few tips to making a better developer tutorial.</p>
<h3>Know Your Audience</h3>
<p>If you&#8217;re writing an article describing simple HTML tips and tricks, make sure you use language specific to that level of developer. Often if the tip is quite basic you will scare off those who are unaware of the tip by using overly complex descriptions. On the flipside, if you are talking memory management or more complex languages don&#8217;t be afraid to use terms that might otherwise be required to be explained. Depending on the amount of content on your site, the complex descriptions could be linked up to an article that explains the specifics in greater detail.</p>
<h3>Well Formatted Examples</h3>
<p>An essential tip for anyone writing a developer tutorial is to provide code. Because of the nature of the work, displaying commented code can be alot more useful than paragraph after paragraph of text that achieves the same. Developers are often reading the guide to get the information they need before darting off to implement. Additionally, the use of a JavaScript based <a href="http://code.google.com/p/syntaxhighlighter/" target="_blank">syntax highlighter</a> and an easy way to copy and paste is very helpful.</p>
<h3>Provide Additional Reading Material</h3>
<p>Developers are always looking to learn more and if you can provide them with an example but link off to multiple sources that give demos, source code or further descriptions then it will definitely be welcomed.</p>
<h3>Reread &amp; Spell Check</h3>
<p>This is an obvious one but it seems to be the least followed (at least throughout the guides I read&#8230;). A quick read over what you&#8217;re putting out to your readers is the highest priority before you whack that &#8220;publish&#8221; button. Don&#8217;t disappoint your visitors!</p>
<h3>Avoid Expert Exchange&#8217;ifying</h3>
<p>The last thing a developer wants is to find the exact question having been asked and answered, only to be told they need to register or even worse, PAY to get the answer. In order for developers to grow and improve, knowledge needs to be shared and answers need to be provided and putting a pay wall up helps no one.</p>
<h3>Is It Needed?</h3>
<p>The final tip is probably what I consider the most important. It needs to be asked just before you hit publish &#8211; does the Internet need another &#8220;jquery carousel&#8221; tutorial for example. What does your tutorial add to the multitude of guides out there? If you still believe you have created something that would help a fellow developer then go right ahead and start RT&#8217;ing the crap out of it! If you&#8217;re doing it for potential Google Juice or hits then perhaps reconsider.</p>
<p>If you&#8217;re looking into writing tutorials take a glance over at the best out there. Start with <a href="http://www.smashingmagazine.com/" target="_blank">SmashingMagazine</a> or <a href="http://www.webdesignerwall.com/" target="_blank">WebDesignerWall</a> . If you have any other suggestions throw them in the comments below.</p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2010/09/how-to-write-a-good-developer-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Tips &#8211; jQuery: Giving your selectors some context</title>
		<link>http://andygirvan.com/2010/07/quick-tips-jquery-giving-your-selectors-some-context/</link>
		<comments>http://andygirvan.com/2010/07/quick-tips-jquery-giving-your-selectors-some-context/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 19:59:42 +0000</pubDate>
		<dc:creator>Andy G</dc:creator>
				<category><![CDATA[JavaScript/jQuery]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[quicktips]]></category>

		<guid isPermaLink="false">http://andygirvan.com/?p=132</guid>
		<description><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/javascriptjquery/" title="JavaScript/jQuery">JavaScript/jQuery</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a></p>The jQuery function allows for a second, lesser known about, parameter which tells the function to only search for the element within the context of the given element.]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/javascriptjquery/" title="JavaScript/jQuery">JavaScript/jQuery</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a></p><p><em><strong>Quick Tips </strong>is a series of posts designed to show some quick html, css and php tips that you may find useful in your every day work or personal projects. </em></p>
<p><em><br />
</em></p>
<p>The jQuery function allows for a second, lesser known about, parameter which tells the function to only search for the element within the context of the given element.<br />
<em><br />
</em></p>
<pre class="brush: js">
<ul>
<li>List item 1</li>
</ul>
<ul class="menu">
<li>List item 2</li>
</ul>

<script type="text/javascript">
$('li','ul.menu');
</script>
</pre>
<p><em><br />
</em><br />
In this scenario the selector will navigate through the menu unordered list and select the list item with &#8220;List item 2&#8243; in it, having never seen the other unordered list. </p>
<p>Instead of having to work its way through the entire DOM, containing perhaps several hundred of the same element, the function can search within the smaller search area and provide results faster and more accurate.<br />
<em><br />
</em><br />
<em>If you wish to submit a quick tip to this section please <a href="mailto:girvan.andy@gmail.com">contact me</a>..</em><br />
<script type="text/javascript">// <![CDATA[
              SyntaxHighlighter.all()
// ]]&gt;</script></p>
<p><!-- b31e571c86d34da18ea438731026a1b3  --></p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2010/07/quick-tips-jquery-giving-your-selectors-some-context/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Quick Tips &#8211; CSS: Page breaking for print</title>
		<link>http://andygirvan.com/2010/07/page-break-behavior/</link>
		<comments>http://andygirvan.com/2010/07/page-break-behavior/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 13:24:34 +0000</pubDate>
		<dc:creator>Andy G</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[quicktips]]></category>

		<guid isPermaLink="false">http://andygirvan.com/?p=126</guid>
		<description><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/css-development/" title="CSS">CSS</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a></p>The following code snippet will allow you to set the page breaking behavior to break before every h1 element, giving you a lot of control over how printed versions of your website will be displayed.]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/css-development/" title="CSS">CSS</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a></p><p><em><strong>Quick Tips </strong>is a series of posts designed to show some quick html, css and php tips that you may find useful in your every day work or personal projects. </em></p>
<p>The following code snippet will allow you to set the page breaking behavior to break before every h1 element, giving you a lot of control over how printed versions of your website will be displayed.</p>
<pre class="brush: js">
@media print {
       h1 {page-break-before:always}
}
</style>
</pre>
<p><em>If you wish to submit a quick tip to this section please <a href="mailto:girvan.andy@gmail.com">contact me</a>..</em><br />
<script type="text/javascript">// <![CDATA[
         SyntaxHighlighter.all()
// ]]&gt;</script></p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2010/07/page-break-behavior/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Tips &#8211; CSS: Change Text Highlight Color</title>
		<link>http://andygirvan.com/2010/07/quick-tips-css-change-text-highlight-color/</link>
		<comments>http://andygirvan.com/2010/07/quick-tips-css-change-text-highlight-color/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 10:00:59 +0000</pubDate>
		<dc:creator>Andy G</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[quicktips]]></category>

		<guid isPermaLink="false">http://andygirvan.com/?p=108</guid>
		<description><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/css-development/" title="CSS">CSS</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a></p>With CSS, on the standards compliant browsers such as Firefox, Chrome or Safari, you can decide what color shade the highlighted text appears for users]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/css-development/" title="CSS">CSS</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a></p><p><em><strong>Quick Tips </strong>is a series of posts designed to show some quick html, css and php tips that you may find useful in your every day work or personal projects. </em></p>
<p>With CSS, on the standards compliant browsers such as Firefox, Chrome or Safari, you can decide what color shade the highlighted text appears for users using the following CSS:</p>
<pre class="brush: js">::selection { /* Safari &amp; Chrome */
 color:#000;
 background:#FFF;
}
::-moz-selection { /* Firefox */
 color:#000;
 background:#FFF;
}
</pre>
<p><em>If you wish to submit a quick tip to this section please <a href="mailto:girvan.andy@gmail.com">contact me</a>..</em><br />
<script type="text/javascript">// <![CDATA[
         SyntaxHighlighter.all()
// ]]&gt;</script></p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2010/07/quick-tips-css-change-text-highlight-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding custom post types to WordPress 3</title>
		<link>http://andygirvan.com/2010/07/adding-custom-post-types-to-wordpress-3/</link>
		<comments>http://andygirvan.com/2010/07/adding-custom-post-types-to-wordpress-3/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 12:47:22 +0000</pubDate>
		<dc:creator>Andy G</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://andygirvan.com/?p=69</guid>
		<description><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/" title="Development">Development</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a><a href="http://andygirvan.com/category/development/wordpress-development/" title="Wordpress">Wordpress</a></p>Last night WordPress 3.0 was released to the general public. Having previewed it previously on this blog, nothing has really surprised me in terms of what has been updated – but it is still nice to go from release candidate to full version.]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/" title="Development">Development</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a><a href="http://andygirvan.com/category/development/wordpress-development/" title="Wordpress">Wordpress</a></p><p>In the latest version of the WordPress blogging platform, the developers have (<em>finally</em>) introduced <strong>Custom Post Types</strong>, allowing it to become more of a CMS without extensive use of plugins. Unfortunately, after installing the latest version, you&#8217;ll probably have noticed that there doesn&#8217;t immediatly appear to be any way to create your own. That&#8217;s because there is no UI to do this with &#8211; <em>doh</em>. The way to do this is to use the recently introducded method <strong>register_post_type().</strong><br />
</p>
<h2>The Example</h2>
<p>Lets say you are running a blog that will have podcasts as a content type every so often, but you don&#8217;t require a heavyweight plugin like <a href="http://wordpress.org/extend/plugins/podpress/" target="_blank">PodPress</a> &#8211; <strong>Custom Post Types </strong>are the perfect solution.<br />
</p>
<h2>The Code</h2>
<p>Take a look at the following code:<br />
<div class="box"><div class="icon icon-code left" style="background-image: url(http://andygirvan.com/wp-content/themes/fastblog/images/icons/code.png);">register_post_type(&#8216;podcast&#8217;, array(<br />
        &#8216;label&#8217; =&gt; __(&#8216;Podcasts&#8217;),<br />
        &#8216;singular_label&#8217; =&gt; __(&#8216;Podcast&#8217;),<br />
        &#8216;public&#8217; =&gt; true,<br />
        &#8216;show_ui&#8217; =&gt; true,<br />
        &#8216;hierarchical&#8217; =&gt; false,<br />
        &#8216;query_var&#8217; =&gt; false,<br />
        &#8216;supports&#8217; =&gt; array(&#8216;title&#8217;, &#8216;editor&#8217;, &#8216;author&#8217;)<br />
));</div></div><br />
Whack that straight in your theme&#8217;s <strong>functions.php </strong>file and voila &#8211; you&#8217;ll see the new Podcast custom post type right there listed underneath the Comments button. So what did this code do exactly?<br />
</p>
<h2>The Parameters</h2>
<p>As you can see, all we&#8217;re really doing is calling the new <strong>register_post_type()</strong> method and sending through some parameters:</p>
<ul>
<li><strong>Label </strong>is pretty straight forward, what do you want the custom post type to be displayed.</li>
<li><strong>Singular label </strong>is also intuitive, what do you call ONE of your post types.</li>
<li><strong>Public </strong>is a meta argument to determine whether your post type will be accessible via search, menu&#8217;s etc&#8230; (more about this on <a href="http://codex.wordpress.org/Function_Reference/register_post_type" target="_blank">wordpress docs</a>)</li>
<li><strong>Show UI </strong>- set to true to show the custom post type on the back end. False can be set to allow extra content to determine how the custom post type is displayed in the back end.</li>
<li><strong>Hierarchical </strong>is a parameter to determine whether each custom post can have or be a parent of another.</li>
<li><strong>Supports </strong>allows you to determine what content creation fields are used when creating or editing a custom post:
<ul>
<li> &#8216;title&#8217;</li>
<li> &#8216;editor&#8217; (content)</li>
<li> &#8216;author&#8217;</li>
<li> &#8216;thumbnail&#8217; (featured image) (current theme must also support  post-thumbnails)</li>
<li> &#8216;excerpt&#8217;</li>
<li> &#8216;trackbacks&#8217;</li>
<li> &#8216;custom-fields&#8217;</li>
<li> &#8216;comments&#8217; (also will see comment count balloon on edit  screen)</li>
<li> &#8216;revisions&#8217; (will store revisions)</li>
<li> &#8216;page-attributes&#8217; (template and menu order) (hierarchical must  be true)</li>
</ul>
</li>
</ul>
<p></p>
<h2>The Results</h2>
<p>Shown below: the new &#8220;Podcasts&#8221; custom post type. Now start filling that bad boy with some content!</p>
<p><a href="http://andygirvan.com/wp-content/uploads/2010/07/result.jpg"><img class="alignnone size-full wp-image-70" title="result" src="http://andygirvan.com/wp-content/uploads/2010/07/result.jpg" alt="" width="250" height="145" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2010/07/adding-custom-post-types-to-wordpress-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Unsubscribe from this email by emailing our email</title>
		<link>http://andygirvan.com/2010/06/unsubscribe-from-this-email-by-emailing-our-email/</link>
		<comments>http://andygirvan.com/2010/06/unsubscribe-from-this-email-by-emailing-our-email/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 22:14:42 +0000</pubDate>
		<dc:creator>Andy G</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[newsletter]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://andygirvan.com/?p=34</guid>
		<description><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/" title="Development">Development</a><a href="http://andygirvan.com/category/general/" title="General">General</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a></p>Spent a few hours (read: obsessively too long) tidying up my personal email inbox today, striving towards the eventual goal of Inbox Zero. Whilst working through the several thousand emails I realized “Wow, I have a crap load of spam, I should probably unsubscribe”. ]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://andygirvan.com/category/development/" title="Development">Development</a><a href="http://andygirvan.com/category/general/" title="General">General</a><a href="http://andygirvan.com/category/tips/" title="Tips">Tips</a></p><p>Spent a few hours (<strong>read</strong>: obsessively <em>too</em> long) tidying up my personal email inbox today, striving towards the eventual goal of Inbox Zero. Whilst working through the several thousand emails I realized<em> &#8220;Wow, I have a crap load of spam, I should probably unsubscribe&#8221;</em>. Emails from Top Table and Play.com are a devil on my shoulder &#8211; ohh look how much we&#8217;ve got on offer, come, spend all your money&#8230;etc.</p>
<p>This gave me the good fortune to see how 30 or so websites handle opting out of their newsletter.</p>
<p>The best that I came across were when there was a clearly defined opt-out button in the footer of the email which, on clicking, opened a new window with a &#8220;confirm your choice to unsubscribe&#8221; to push. On clicking, the page was automatically closed. Wham-bam thank you mam.</p>
<p>The bad types were the systems which required me to enter in my email address that I wished to unsubscribe from. Seriously, I just came from my email window, surely you could have sent that information over as a parameter. This system, however, is dreamy when compared with several or so websites which required me to login to their site, using a long since forgotten username and password system, then eventually navigating to the correct &#8220;my profile&#8221; settings. Pretty shoddy. At least it wasn&#8217;t as bad as the newsletters which require you email the newsletter with only &#8220;unsubscribe&#8221; in the subject line.</p>
<p>The worst offender however was a certain train booking service which required me to login with a username (<em>not</em> an email address), navigate 3 menus deep, un-tick 3 individual boxes (don&#8217;t sign me up to: 3rd party, offers&#8230;etc&#8230;) and then click submit. After clicking submit, excited in the knowledge that I no longer would receive timely rail maintainence updates, I was surprised when I recieved yet another email from said website telling me that I had unsubscribed and no longer would receive any emails. Gah.</p>
<p>I have a feeling that in a few days I may recieve another email from them reminding me that I&#8217;m continually unsubscribed, <strong>oh and btw</strong> check out these new offers!</p>
<p>So please, I know newsletter creation is a ball-ache but please, just one &#8220;confirm&#8221; button to save sanity and inbox capacity for all.</p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2010/06/unsubscribe-from-this-email-by-emailing-our-email/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

