<?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; Development</title>
	<atom:link href="http://andygirvan.com/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://andygirvan.com</link>
	<description>Tech, music and video game enthusiast</description>
	<lastBuildDate>Tue, 31 Aug 2010 22:21:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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[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[In the latest version of the Wordpress blogging platform, the developers have (finally) introduced Custom Post Types, 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]]></description>
			<content:encoded><![CDATA[<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:</p>
<pre class="brush: js">register_post_type('podcast', array(
        'label' =&gt; __('Podcasts'),
        'singular_label' =&gt; __('Podcast'),
        'public' =&gt; true,
        'show_ui' =&gt; true,
        'hierarchical' =&gt; false,
        'query_var' =&gt; false,
        'supports' =&gt; array('title', 'editor', 'author')
));</pre>
<p>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>
<p><script type="text/javascript">// <![CDATA[
 SyntaxHighlighter.all();
// ]]&gt;</script></p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2010/07/adding-custom-post-types-to-wordpress-3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Incase you missed it &#8211; Wordpress 3.0 released!</title>
		<link>http://andygirvan.com/2010/06/incase-you-missed-it-wordpress-3-0-released/</link>
		<comments>http://andygirvan.com/2010/06/incase-you-missed-it-wordpress-3-0-released/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 10:29:53 +0000</pubDate>
		<dc:creator>Andy G</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://andygirvan.com/?p=62</guid>
		<description><![CDATA[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 &#8211; but it is still nice to go from release candidate to full version.
Set up is now quicker than ever, so give it a go on]]></description>
			<content:encoded><![CDATA[<p>Last night Wordpress 3.0 was released to the general public. Having <a href="http://andygirvan.com/2010/05/wordpress-3-0-whats-new-and-how-to-prepare/" target="_blank">previewed it previously on this blog</a>, nothing has really surprised me in terms of what has been updated &#8211; but it is still nice to go from release candidate to full version.</p>
<p>Set up is now quicker than ever, so give it a go on your <a href="http://www.wampserver.com/en/" target="_blank">local</a> or dev servers. I would give it a few weeks before upgrading or deploying any live sites however, Wordpress updates are notorious for their <a href="http://www.blogtap.net/wp-config-php-security-leak-hundreds-of-blogs-hacked/" target="_blank">security leaks</a>.</p>
<p>Check out the official Wordpress TV introduction to the new features below!</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="465" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="guid=BQtfIEY1&amp;width=640&amp;height=360&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M" /><param name="src" value="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" /><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="465" height="300" src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" allowfullscreen="true" wmode="transparent" flashvars="guid=BQtfIEY1&amp;width=640&amp;height=360&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2010/06/incase-you-missed-it-wordpress-3-0-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress 3.0 &#8211; What&#8217;s New &amp; How to Prepare</title>
		<link>http://andygirvan.com/2010/05/wordpress-3-0-whats-new-and-how-to-prepare/</link>
		<comments>http://andygirvan.com/2010/05/wordpress-3-0-whats-new-and-how-to-prepare/#comments</comments>
		<pubDate>Fri, 28 May 2010 09:51:24 +0000</pubDate>
		<dc:creator>Andy G</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://andygirvan.com/?p=24</guid>
		<description><![CDATA[If, like me, you use wordpress as a daily tool to design, develop and launch websites, you'll probably be interested in what the creators over at Wordpress are doing with their soon to be released update, version 3.0.]]></description>
			<content:encoded><![CDATA[<p>If, like me, you use wordpress as a daily tool to design, develop and launch websites, you&#8217;ll probably be interested in what the creators over at Wordpress are doing with their soon to be released update, <a href="http://wordpress.org/development/2010/05/wordpress-3-0-release-candidate/" target="_blank">version 3.0.</a></p>
<h2>What&#8217;s new?</h2>
<p>Here are the promised features:</p>
<ul>
<li>New default theme including extended customization options (background color).</li>
<li>Choose your admin name and password during installation.</li>
<li>Wordpress MU (multi site wordpress) interegration.</li>
<li>Custom post types.</li>
<li>Menu management built into the &#8220;appearance&#8221; tab.</li>
<li>General back-end theme design.</li>
<li>Bug fixes.</li>
</ul>
<h3><strong>New Default Theme</strong></h3>
<p>Although 99% of people will probably switch this theme off, it&#8217;s a decent looking theme (although far from the <a href="http://www.smashingmagazine.com/2009/05/18/100-amazing-free-wordpress-themes-for-2009/" target="_blank">best I&#8217;ve seen</a>) with plenty of customization options.</p>
<h3><strong>Easier installation</strong></h3>
<p>The addition of allowing developers to define their admin username and password instead of being given a forgettable, randomly generated one is a blessing for anyone whos job involves setting up multiple sites a month. I can remember more than one occasion where I&#8217;ve had to go direct to the database to <a href="http://codex.wordpress.org/Resetting_Your_Password" target="_blank">reset the password</a>. This will be an understated but useful feature.</p>
<h3><strong>Wordpress MU collaboration</strong></h3>
<p>With vanilla wordpress 3.0, bloggers will be able to roll out multiple blogs running off the same backend. Although this includes no groundbreaking features that haven&#8217;t been seen in <a href="http://mu.wordpress.org/" target="_blank">Wordpress MU</a>, it is definately nice to have from the outset should a Wordpress project scope change half way through development.</p>
<h3><strong>Custom post types</strong></h3>
<p>Although there are many plugins out there that have fixed this issue (my favourite being <a href="http://pods.uproot.us">Pods CMS</a>, highly recommended even after WP3.0 comes out), Wordpress is going to get a lot easier from the outset to create a custom post type. Although you can do a lot with posts and pages, there are plenty of occasions where you may need a type of content on your site that can&#8217;t be categorized as either.</p>
<h3><strong>Menu Management</strong></h3>
<p><strong><a href="http://andygirvan.com/wp-content/uploads/2010/05/menueditor.gif"><img class="alignnone size-full wp-image-26" title="menueditor" src="http://andygirvan.com/wp-content/uploads/2010/05/menueditor.gif" alt="" width="350" height="114" /></a><br />
</strong></p>
<p>For any developer who has struggled to figure out the right combination of exludes and includes when using <a href="http://codex.wordpress.org/Template_Tags/wp_list_pages" target="_blank">wp_list_pages();</a> this is going to be a stand out feature. Using a WYSIWYG approach to designing the menu, this will be endlessly useful and very nice when handing over to clients. Definatly a lot easier to teach a non technical person a drag and drop system than telling them to manage parameters in the wp_list_pages function.</p>
<h3><strong>General polish and a tidy up</strong></h3>
<p>Overall there seems to be a general tidy up to the codebase and graphics. Hoverovers seem crisp, pages are more responsive and we&#8217;re promised several pages worth of bug fixes ensuring there are no hangovers from the 2&#8217;s.</p>
<h2>So, how can you prepare your site for the major update?</h2>
<p>If you are a developer running a vanilla rollout of any of the later 2.x&#8217;s then there should be no issues for you as the core codebase behind Wordpress remains the same. If you are a plugin developer the best way to approach the update is to get the <a href="http://wordpress.org/wordpress-3.0-RC1.zip" target="_blank">latest beta/release candidate</a> version and throwing it on there. Considering WP3.0 is only weeks away from launching, the base code will more than likely remain the same &#8211; which should give you a good idea of how well (or not as the case may be) your plugin will be supported. If you have any concerns over how well your site or plugin will work with 3, I&#8217;d recommend keeping an eye on the <a href="http://wordpress.org/support/forum/12" target="_blank">forums</a> or the <a href="http://core.trac.wordpress.org/" target="_blank">bug tracking site.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://andygirvan.com/2010/05/wordpress-3-0-whats-new-and-how-to-prepare/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
