<?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>Nerdtivity &#187; PHP</title>
	<atom:link href="http://www.willayers.net/categories/development/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.willayers.net</link>
	<description>Life of a Nerd in Disguise</description>
	<lastBuildDate>Thu, 07 Oct 2010 23:27:04 +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>Creating a Custom Post Type in WordPress 3.0</title>
		<link>http://www.willayers.net/2010/10/creating-a-custom-post-type-in-wordpress-3-0/</link>
		<comments>http://www.willayers.net/2010/10/creating-a-custom-post-type-in-wordpress-3-0/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 23:27:04 +0000</pubDate>
		<dc:creator>cointilt</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Custom Post Types]]></category>
		<category><![CDATA[Wordpress 3.0]]></category>

		<guid isPermaLink="false">http://www.willayers.net/?p=82</guid>
		<description><![CDATA[A really great new feature in WordPress is the ability to create custom post types. This allows you to write very little code, and create entire sections on your site using built in WordPress features and UI. Here is a &#8230; <a href="http://www.willayers.net/2010/10/creating-a-custom-post-type-in-wordpress-3-0/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A really great new feature in WordPress is the ability to create custom post types. This allows you to write very little code, and create entire sections on your site using built in WordPress features and UI. Here is a really really basic overview on how to get started creating a custom post type.</p>
<p>All of the code below can be put inside your functions.php page in your theme folder.</p>
<p>It all starts with the function <a href="http://codex.wordpress.org/Function_Reference/register_post_type"><code>register_post_type</code></a>:</p>
<pre class="brush: php;">register_post_type ( $post_type, $options );</pre>
<p>The <code>$post_type</code> is the name of the custom post type you want to associate it as. For example we will create a custom post type called Events like the below code:</p>
<pre class="brush: php;">

$options = array
(
    'label' =&gt; 'Events',
    'singular_label' =&gt; 'Event',
    'public' =&gt; TRUE,
    'show_ui' =&gt; TRUE,
    'capability_type' =&gt; 'post',
    'hierarchical' =&gt; TRUE,
    'rewrite' =&gt; array( 'slug' =&gt; 'events' ),
    'query_var' =&gt; TRUE,
    'supports' =&gt; array( 'title', 'editor', 'author' )
);

register_post_type ( 'events', $options );
</pre>
<p>The description and other options can be found <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Parameters">on the register_post_type function page</a> at WordPress&#8217; website.</p>
<p>Now you will have a custom post type in the backend of your WordPress theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willayers.net/2010/10/creating-a-custom-post-type-in-wordpress-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove WordPress Version From Head Tag</title>
		<link>http://www.willayers.net/2010/09/remove-wordpress-version-from-head-tag/</link>
		<comments>http://www.willayers.net/2010/09/remove-wordpress-version-from-head-tag/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 21:55:23 +0000</pubDate>
		<dc:creator>cointilt</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.willayers.net/?p=72</guid>
		<description><![CDATA[Insert this into the functions.php page located in your theme file: remove_action ( 'wp_head', 'wp_generator' ) It will auto remove the tag that says: &#60;meta name=&#34;generator&#34; content=&#34;WordPress 3.0.1&#34; /&#62;]]></description>
			<content:encoded><![CDATA[<p>Insert this into the functions.php page located in your theme file:</p>
<pre class="brush: php;">remove_action ( 'wp_head', 'wp_generator' )</pre>
<p>It will auto remove the tag that says:</p>
<pre class="brush: xml;">&lt;meta name=&quot;generator&quot; content=&quot;WordPress 3.0.1&quot; /&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.willayers.net/2010/09/remove-wordpress-version-from-head-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Show All Errors</title>
		<link>http://www.willayers.net/2010/07/php-show-all-errors/</link>
		<comments>http://www.willayers.net/2010/07/php-show-all-errors/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 18:13:57 +0000</pubDate>
		<dc:creator>cointilt</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[display errors]]></category>
		<category><![CDATA[error reporting]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.willayers.net/?p=50</guid>
		<description><![CDATA[I tend to use this a lot on my dev sites to show my what my errors are instead of just seeing a blank white page. error_reporting ( E_ALL ); ini_set ( 'display_errors', '1' );]]></description>
			<content:encoded><![CDATA[<p>I tend to use this a lot on my dev sites to show my what my errors are instead of just seeing a blank white page.</p>
<pre class="brush: php;">error_reporting ( E_ALL );
ini_set ( 'display_errors', '1' );</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.willayers.net/2010/07/php-show-all-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

