<?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>Nothing Cliche &#187; Theming</title>
	<atom:link href="http://www.nothingcliche.com/category/theming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nothingcliche.com</link>
	<description>&#34;to busy doing your site to do my own&#34;</description>
	<lastBuildDate>Sat, 14 Aug 2010 15:34:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Genesis Theme Framework – Visual Hook Reference</title>
		<link>http://www.nothingcliche.com/genesis-theme-framework-visual-hook-reference/</link>
		<comments>http://www.nothingcliche.com/genesis-theme-framework-visual-hook-reference/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 01:17:54 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Theming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[Guide]]></category>

		<guid isPermaLink="false">http://www.nothingcliche.com/?p=128</guid>
		<description><![CDATA[&#8220;Because everything needs a visual guide.&#8221; *update If you think this reference is helpful check out the live Genesis Visual Hook guide. Hover over sections for more information about the hook or default functions and even tutorials. It&#8217;s more of a complete developers guide/index of genesis. With the release of Genesis by Studiopress, the use [...]]]></description>
			<content:encoded><![CDATA[<h3>&#8220;Because everything needs a visual guide.&#8221;</h3>
<p>*update<br />
If you think this reference is helpful check out the live <a title="Genesis Visual Hook - a genesis developer's handbook" href="http://www.genesistutorials.com/visual-hook-guide" >Genesis Visual Hook guide</a>. Hover over sections for more information about the hook or default functions and even tutorials. It&#8217;s more of a complete developers guide/index of genesis. </p>
<p>With the release of <a rel="nofollow" href="http://www.studiopress.com/themes/genesis" target="_blank">Genesis by Studiopress</a>, the use of hooks were introduced to their themes. <a rel="nofollow" href="http://codex.wordpress.org/Plugin_API" target="_blank">Hooks</a> are a useful piece of code that allow you to &#8220;hook&#8221; into a theme without modifying core theme files. With the ability to place code in given spots throughout a theme allows simple upgrading without having to go back through all your template files to re-add your custom code.</p>
<p>A look into the available hooks for Genesis in their place:</p>
<p><span id="more-128"></span></p>
<h4><span class="white_space">Genesis Hooks &#8211; Homepage:</span></h4>
<p><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-—-Home.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"></a><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-—-Home-e1278784310254.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"></a><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-—-Home-e1278784310254.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"><img class="aligncenter size-large wp-image-142" title="Genesis Theme Framework - Visual Hook Reference — Home" src="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-—-Home-e1278784310254-733x1024.png" alt="" width="733" height="1024" /></a></p>
<h4><span class="white_space">Genesis Hooks &#8211; Single Post:</span></h4>
<p><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-Post.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"></a><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-Post-e1278784276825.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"><img class="aligncenter size-full wp-image-143" title="Genesis Theme Framework - Visual Hook Reference Post" src="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-Post-e1278784276825.png" alt="" width="986" height="2465" /></a></p>
<h4><span class="white_space">Genesis Hooks &#8211; Page:</span></h4>
<p><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-Page.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"></a><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-Page-e1278784228978.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"><img class="aligncenter size-full wp-image-144" title="Genesis Theme Framework - Visual Hook Reference Page" src="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-Page-e1278784228978.png" alt="" width="978" height="1763" /></a></p>
<h4><span class="white_space">Genesis Hooks &#8211; Home (Sidebar Content Sidebar):</span></h4>
<p><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-—-Home-SCS1.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"></a><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-—-Home-SCS1-e1278784192344.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"><img class="aligncenter size-full wp-image-145" title="Genesis Theme Framework - Visual Hook Reference — Home SCS" src="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-—-Home-SCS1-e1278784192344.png" alt="" width="979" height="1366" /></a></p>
<h4><span class="white_space">Genesis Hooks &#8211; Home ( Content &#8211; No Sidebars):</span></h4>
<p><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-—-Home-C.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"></a><a href="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-—-Home-C-e1278784158650.png" rel="shadowbox[post-128];player=img;" rel="lightbox[128]"><img class="aligncenter size-full wp-image-146" title="Genesis Theme Framework - Visual Hook Reference — Home C" src="http://www.nothingcliche.com/wp-content/uploads/2010/04/Genesis-Theme-Framework-Visual-Hook-Reference-—-Home-C-e1278784158650.png" alt="" width="982" height="1350" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nothingcliche.com/genesis-theme-framework-visual-hook-reference/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress 2.9 post thumbnails</title>
		<link>http://www.nothingcliche.com/wordpress-2-9-post-thumbnails/</link>
		<comments>http://www.nothingcliche.com/wordpress-2-9-post-thumbnails/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 06:13:20 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Theming]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.nothingcliche.com/?p=74</guid>
		<description><![CDATA[Fatal error: Call to undefined function the_post_image() If you have recently downloaded the latest WordPress 2.9 beta build (like I have) you will find &#8220;the_post_image&#8221; no longer works! In place you will see that lovely &#8220;Fatal Error&#8221; message above. &#8220;Post/Page Image was too generic a name. Post/Page Thumbnail is more clear, even if you can [...]]]></description>
			<content:encoded><![CDATA[<h3>Fatal error: Call to undefined function the_post_image()</h3>
</p>
<p>If you have recently downloaded the latest WordPress 2.9 beta build (like I have) you will find &#8220;the_post_image&#8221; no longer works! In place you will see that lovely &#8220;Fatal Error&#8221; message above.</p>
<blockquote><p>&#8220;Post/Page Image was too generic a name. Post/Page Thumbnail is more clear, even if you can create very large thumbnail images if you so choose.&#8221;</p></blockquote>
<p><em><a href="http://core.trac.wordpress.org/changeset/12351">- WordPress trac</a></em></a></p>
<p>Below, I will be noting the changes found in the latest build, and how to now use thumbnails in a WordPress theme using 2.9&#8242;s post thumbnail function.</p>
<h3>Adding support for the post thumbnail feature in a theme</h3>
<p>This part has not changed.  Just add the code below to your themes function.php</p>
<pre><code>if ( function_exists( 'add_theme_support' ) )
	add_theme_support( 'post-thumbnails' );</code></pre>
<p>So, what has changed?</p>
<p><span id="more-74"></span></p>
<h4>the_post_image to the_post_thumbnail</h4>
<p>old:</p>
<pre><code><del>&lt;?php the_post_image( 'thumbnail' ); ?&gt;</del></code>
</pre>
<p>New:</p>
<pre><code>&lt;?php the_post_thumbnail( 'thumbnail' ); ?&gt;</code>
</pre>
<pre><code>&lt;?php the_post_thumbnail( 'medium' ); ?&gt;</code>
</pre>
<p><code>&lt;?php the_post_thumbnail( 'full' ); ?&gt;</code></p>
<h4>Checking if a post has an image</h4>
<p>Old:</p>
<pre><code><del>&lt;?php
	if ( has_post_image() )
		the_post_image( 'thumbnail' );
	else
		echo '&lt;img src="default-thumbnail.jpg" alt="Default Thumbnail" title="Default Thumbnail" /&gt;';
?&gt;</del></code>
</pre>
<p>New:</p>
<pre><code>&lt;?php
	if ( has_post_thumbnail() )
		the_post_thumbnail( 'thumbnail' );
	else
		echo '&lt;img src="default-thumbnail.jpg" alt="Default Thumbnail" title="Default Thumbnail" /&gt;';
?&gt;</code>
</pre>
<h4>Getting the post image ID</h4>
<p>Old:</p>
<pre><code><del>$image_id = get_post_image_id();</del></code>
</pre>
<p>New:</p>
<pre><code>$image_id = get_post_thumbnail_id();</code>
</pre>
<p><em>This is a developing post&#8230;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nothingcliche.com/wordpress-2-9-post-thumbnails/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
