<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Nathan Rice</title>
	
	<link>http://www.nathanrice.net</link>
	<description>Web Design, WordPress Themes, and Blogging</description>
	<pubDate>Tue, 11 Nov 2008 12:00:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7-beta3-9750</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><meta xmlns="http://pipes.yahoo.com" name="pipes" content="noprocess" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/nathanricenet" type="application/rss+xml" /><feedburner:emailServiceId>1148206</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnathanricenet" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnathanricenet" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnathanricenet" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.rojo.com/add-subscription?resource=http%3A%2F%2Ffeeds.feedburner.com%2Fnathanricenet" src="http://blog.rojo.com/RojoWideRed.gif">Subscribe with Rojo</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/nathanricenet" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnathanricenet" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fnathanricenet" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fnathanricenet" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
		<title>Definitive Sticky Posts Guide for WordPress 2.7</title>
		<link>http://feeds.feedburner.com/~r/nathanricenet/~3/449486374/</link>
		<comments>http://www.nathanrice.net/blog/definitive-sticky-posts-guide-for-wordpress-27/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 12:00:32 +0000</pubDate>
		<dc:creator>Nathan Rice</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Planet WordPress]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[WordPress Tips]]></category>

		<category><![CDATA[is_sticky]]></category>

		<category><![CDATA[post_class]]></category>

		<category><![CDATA[sticky post styling]]></category>

		<category><![CDATA[sticky posts]]></category>

		<category><![CDATA[wordpress 2.7]]></category>

		<guid isPermaLink="false">http://www.nathanrice.net/?p=201</guid>
		<description><![CDATA[WordPress 2.7 sticky posts are more complex than we thought. This post simplifies it.]]></description>
			<content:encoded><![CDATA[<p>As the blogosphere is abuzz about all the cool new features in WordPress 2.7, I&#8217;ve seen very few (if any) good posts on the new <a href="http://codex.wordpress.org/Version_2.7#Sticky_Posts">Sticky Posts feature</a> that will allow you to take any story, or stories, you&#8217;ve published and place them at the top of your homepage without editing the timestamp.  <strong>This new feature will allow you to take posts that you&#8217;re especially proud of and display them for all the world to see for as long as you want</strong>.</p>
<p>But for many theme and plugin developers, and even users who may want to do a little DIY theme hacking, there is very little documentation for getting the feature set up to do the things you want it to.  That&#8217;s where this guide comes in.<span id="more-201"></span></p>
<h2>Turing a Post into a Sticky Post</h2>
<p><img class="alignnone size-full wp-image-202" style="float:right; margin: 0 0 5px 5px;" title="picture-1" src="http://www.nathanrice.net/wp-content/uploads/2008/11/picture-1.png" alt="picture-1" width="289" height="207" /><br />
In the 2.7 Post edit panel, over in the <a href="http://www.nathanrice.net/blog/mark-jaquith-explains-the-27-publish-module/">publish module</a>, you&#8217;ll notice a little checkbox.  When you check this box and publish the post (or save an already published post), that post will then be pulled to the top of your homepage.</p>
<p>Also, it is worth noting that a post can be made &#8220;sticky&#8221; using the &#8220;Quick Edit&#8221; panel as well.  In WordPress 2.7, simple click the Posts -&gt; Edit link, then click the &#8220;Quick Edit&#8221; link.</p>
<p>This will bring up a panel that lets you edit common features of a post like its categories, tags, title, slug, date, author, etc.  But it also allows you to change whether or not a post is a sticky post.</p>
<p><a href="http://www.nathanrice.net/wp-content/uploads/2008/11/picture-2.png"><img class="alignnone size-full wp-image-203" title="picture-2" src="http://www.nathanrice.net/wp-content/uploads/2008/11/picture-2.png" alt="picture-2" width="492" height="115" /></a></p>
<p><strong>This is especially handy when you need to &#8220;unsticky&#8221; a post in order to let another post take it&#8217;s place at the top of the homepage</strong>.  Imagine how tedious it would be to have to pull up the full Edit Post panel just to &#8220;unsticky&#8221; a post.  It would get very annoying, so I&#8217;m glad to see the developers opted to include this option in the Quick Edit panel as well.</p>
<h2>Styling a Sticky Post</h2>
<p><strong>If you&#8217;re like me, you probably want to have a way to let your readers know that, although the post is at the top of your homepage, it may not necessarily be the latest post you&#8217;ve published.</strong> Luckily, WordPress 2.7 introduces the new post_class template tag that will give a class of &#8220;sticky&#8221; to any post that has been made into a sticky post.  Here&#8217;s how you would use it.</p>
<p><em>(By the way, it would be worth your while to take a look at the <a href="http://codex.wordpress.org/Template_Tags/post_class">Codex page for post_class</a> when it becomes available. The function can really give you some cool flexibility in how different posts are styled. I suppose that&#8217;s another post for another day.)</em></p>
<p>If you&#8217;re familiar with the loop, you&#8217;ll probably recognize the following code (or some variation of it):</p>
<pre>&lt;?php if(have_posts()) : while(have_posts()) : the_post(); ?&gt;
&lt;h3&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;?php the_content(); ?&gt;
&lt;?php endwhile; endif; ?&gt;</pre>
<p>In order to use the new post_class template tag, just be sure to wrap the content of each post that the loop outputs in a new div.  The code would looks something like this:</p>
<pre>&lt;?php if(have_posts()) : while(have_posts()) : the_post(); ?&gt;
&lt;div &lt;?php post_class(); ?&gt;&gt;
&lt;h3&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;?php the_content(); ?&gt;
&lt;/div&gt;
&lt;?php endwhile; endif; ?&gt;</pre>
<p>Depending on what type of post it is, it will output different kinds of stuff.  For instance, if you view the source code for my homepage, you&#8217;ll see my posts wrapped in these divs already.  For the post <a href="http://www.nathanrice.net/blog/community-self-respect-and-free-wordpress-themes/">Community, Self-Respect, and Free WordPress Themes</a>, the div class generator created this:</p>
<pre>&lt;div class="post hentry category-blog category-general category-planet-wordpress category-wordpress-news tag-elevate-themes tag-free-wordpress-theme tag-free-wordpress-themes tag-wordpress"&gt;</pre>
<p>Now, if that post had been marked &#8220;sticky&#8221;, then you would have seen the word &#8220;sticky&#8221; show up in that list too.  You can use any of those classes to style a post differently, but in this case, we&#8217;re just looking to differentiate the sticky posts. By adding a new class declaration in our CSS file, we can make a sticky post look any way we want:</p>
<pre>.sticky {
    background: white;
    border: 2px solid black;
}</pre>
<p>The possibilities are really endless &#8212; it&#8217;s all up to you!</p>
<h2>Sticky Styling in Other Templates</h2>
<p>As far as I know, the sticky feature does not actually affect any other templates besides the homepage post listing.  The only possible exception would be the search results (see the <a href="http://trac.wordpress.org/ticket/7457">Trac ticket</a> for more information).</p>
<p>However, there is one caveat as pointed out by <a href="http://wpengineer.com/strange-things-with-sticky-posts/">Michael at WPEngineer.com</a> &#8212; sticky posts don&#8217;t simply get &#8220;pulled to the front of the line&#8221;.  In fact, <strong>if you&#8217;re browsing through someone&#8217;s archives, and you are using the post_class() template tag, your sticky posts will get that sticky styling, just as though they were at the top of the homepage</strong>.</p>
<p>To remedy this, you&#8217;ll want to figure out a way to only apply that special sticky style to sticky posts that are on the homepage.  That means we&#8217;ll want to exclude things like category and date archives, page 2 of the blog homepage (<a href="http://www.nathanrice.net/page/2/">example</a>), and any other templates that you might use (tags, single posts, etc.).</p>
<p>In order to accomplish this, you&#8217;ll need to figure out a way to add a class or ID to the body tag of your theme.  <a title="Body Class and ID" href="http://www.darrenhoyt.com/2007/12/23/use-body-idclass-to-control-wordpress-page-elements/">Darren Hoyt</a> has a good post on how to do that is pretty good, but I&#8217;ll try to write up a post later that will teach you how to mimic the post_class function for your body tag.</p>
<p>So, once your body has a class or ID, just modify your CSS a little to reflect your desire for the sticky style to only be applied to the homepage:</p>
<pre>#home .sticky {
    background: white;
    border: 2px solid black;
}</pre>
<p>Easy enough?</p>
<h2>is_sticky() Conditional Tag</h2>
<p>Along with the ability to use the post_class to identifiy sticky posts, you can also use the is_sticky() conditional tag to check to see if a post is sticky or not.  Here&#8217;s a practical example (to be used within the loop):</p>
<pre>&lt;?php
if (is_sticky()) echo 'This is a sticky post!';
?&gt;</pre>
<p>The is_sticky() conditional tag returns a Boolean value of TRUE or FALSE depending on whether or not the post is a sticky post.  Use your imagination to determine the different applications this tag can help you achieve.</p>
<h2>A Custom Loop to Return All Sticky Posts</h2>
<p>If you&#8217;re a hardcore theme developer and want to use a custom loop to return only posts that have been marked as sticky, you can use this very handy code provided by <a href="http://ottodestruct.com/blog/">Otto</a> at the <a href="http://wordpress.org/support/topic/208037?replies=5">Support forums</a>:</p>
<pre>query_posts(array('post__in'=&gt;get_option('sticky_posts')));</pre>
<p>This code goes before the loop. It qualifies the loop by telling it to only return posts that have been marked &#8220;sticky&#8221;.  You can use all the other parameters of the query_posts loop qualifier as well, but that &#8220;post__in&#8221; part is the part that actually tells the loop to only return the sticky posts.</p>
<h2>A Custom Loop to Ignore Sticky Posts</h2>
<p>Generally speaking, sticky posts will show up at the top of ever single loop you use on your homepage.  So <strong>for complex themes that use multiple loops on the homepage to return different data, each and every one of those loops will return the same sticky post(s)</strong>.  And it seems like even loop qualifiers like the query_posts argument post__not_in don&#8217;t work on excluding posts.  No matter what you do, those sticky posts will be at the top of all your loops.</p>
<p>Thankfully, once again <a href="http://ottodestruct.com/blog/">Otto</a> comes to the rescue with some more handy code.</p>
<p>If you want your loop to ignore the sticky status of posts, just use this code before the loop:</p>
<pre>query_posts('caller_get_posts=1');</pre>
<p>Again, this parameter can be used with any of the other arguments for query_posts.  <strong>And this code doesn&#8217;t simply exclude posts marked sticky &#8230; it actually ignores the sticky status altogether</strong>.  So if a person marks a post as sticky, by using this query_posts parameter, you can have your loop act normally, not pulling that post to the top unless it is the latest post published (depending on the other query_posts parameters).</p>
<h2>Getting Rid of Stickies Completely</h2>
<p>Finally, if your theme doesn&#8217;t take advantage of the sticky option at all, and you just want to prohibit users from making a post sticky in the first place, you can just wipe out the field in the options table that holds all the sticky post IDs by placing this code in your theme&#8217;s functions.php file between &lt;?php ?&gt; tags: [HT: <a href="http://wpengineer.com/strange-things-with-sticky-posts/">WPEngineer.com</a>]</p>
<pre>update_option('sticky_posts', array());</pre>
<p>This empties the field and get&#8217;s rid of all sticky post IDs that the user may have saved.  This could easily save you the trouble of having to support users that insist on checking the sticky checkbox despite your warnings.  It&#8217;s just a way for you to nip the problem in the bud.</p>
<p><em>However, use it with caution.  Users don&#8217;t normally like it when you remove their data.</em></p>
<p>Well, that about wraps it up.  <strong>Everything you need to know about the Sticky Post feature in WordPress 2.7</strong>. If you have any other tips or questions, please feel free to let me know in the comments below.  I&#8217;d love to hear your thoughts about this new feature.<br />
<h2>Similar Posts:</h2>
<ul class="similar-posts">
<li><a href="http://www.nathanrice.net/blog/creating-a-blog-page-with-paging/" rel="bookmark" title="May 14, 2008">Creating a &#8220;Blog Page&#8221; &#8212; With Paging</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-keywords/" rel="bookmark" title="October 14, 2008">Ultimate Guide to WordPress SEO - META Keywords</a></li>
<li><a href="http://www.nathanrice.net/blog/premium-wordpress-theme-proximity-news-theme/" rel="bookmark" title="August 7, 2008">Premium WordPress Theme - Proximity News Theme</a></li>
<li><a href="http://www.nathanrice.net/blog/an-easy-way-to-get-the-contents-of-a-custom-field/" rel="bookmark" title="October 9, 2008">An Easy Way To Get the Contents of a Custom Field</a></li>
<li><a href="http://www.nathanrice.net/blog/the-problem-with-theme-options/" rel="bookmark" title="March 25, 2008">The Problem With &#8220;Theme Options&#8221;</a></li>
</ul>
<p><!-- Similar Posts took 12.094 ms --></p>

<p><a href="http://feeds.feedburner.com/~a/nathanricenet?a=T0T9Br"><img src="http://feeds.feedburner.com/~a/nathanricenet?i=T0T9Br" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/nathanricenet/~4/449486374" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nathanrice.net/blog/definitive-sticky-posts-guide-for-wordpress-27/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.nathanrice.net/blog/definitive-sticky-posts-guide-for-wordpress-27/</feedburner:origLink></item>
		<item>
		<title>Is My Theme 2.7 Compatible?</title>
		<link>http://feeds.feedburner.com/~r/nathanricenet/~3/440939932/</link>
		<comments>http://www.nathanrice.net/blog/is-my-theme-27-compatible/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 13:00:35 +0000</pubDate>
		<dc:creator>Nathan Rice</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Planet WordPress]]></category>

		<category><![CDATA[WordPress News]]></category>

		<category><![CDATA[compatibility]]></category>

		<category><![CDATA[Themes]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[wordpress 2.7]]></category>

		<guid isPermaLink="false">http://www.nathanrice.net/?p=194</guid>
		<description><![CDATA[Will the upcoming release of WordPress 2.7 break your theme?  Take a look to find the answer to the question that no one has quite answered yet.]]></description>
			<content:encoded><![CDATA[<p>Let me go ahead and answer the question that a LOT of people are going to be asking over the next several weeks as the release of WordPress 2.7 draws closer.  Yes. Your theme, more than likely, will be compatible with WordPress 2.7.</p>
<p>That is to say, it won&#8217;t break under 2.7.  However, this latest version of WordPress does add a good many NEW features to themes that, unless properly accounted for, your theme probably won&#8217;t be taking advantage of immediately.<span id="more-194"></span></p>
<p>For instance, threaded comments.  Even if you turn on threaded comments in your new 2.7 Admin settings, unless your theme is using the new <a href="http://wpdevel.wordpress.com/2008/09/11/take-one-of-wp_list_comments-with-thre/">wp_list_comments()</a> function in its comments.php file, you won&#8217;t see any threaded comments.  A minor detail, but it is worth noting.</p>
<p>So, while 2.7 will most likely NOT break your theme, you should also keep in mind that it probably won&#8217;t be take advantage of the newest 2.7 theme features &#8212; at least not at first.  Check back with your theme&#8217;s developer to see if they have plan for adding the new features into your theme in the future.<br />
<h2>Similar Posts:</h2>
<ul class="similar-posts">
<li><a href="http://www.nathanrice.net/blog/comment-link-in-singlephp/" rel="bookmark" title="January 9, 2008">Comment Link in single.php</a></li>
<li><a href="http://www.nathanrice.net/blog/an-easy-way-to-get-the-contents-of-a-custom-field/" rel="bookmark" title="October 9, 2008">An Easy Way To Get the Contents of a Custom Field</a></li>
<li><a href="http://www.nathanrice.net/blog/wordpress-23-theme-backward-compatibility/" rel="bookmark" title="September 24, 2007">WordPress 2.3 Theme Backward Compatibility</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-keywords/" rel="bookmark" title="October 14, 2008">Ultimate Guide to WordPress SEO - META Keywords</a></li>
<li><a href="http://www.nathanrice.net/blog/7-must-have-plugins/" rel="bookmark" title="April 9, 2008">7 Must-Have Plugins</a></li>
</ul>
<p><!-- Similar Posts took 9.414 ms --></p>

<p><a href="http://feeds.feedburner.com/~a/nathanricenet?a=5QDNAS"><img src="http://feeds.feedburner.com/~a/nathanricenet?i=5QDNAS" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/nathanricenet/~4/440939932" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nathanrice.net/blog/is-my-theme-27-compatible/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.nathanrice.net/blog/is-my-theme-27-compatible/</feedburner:origLink></item>
		<item>
		<title>Mark Jaquith Explains the 2.7 Publish Module</title>
		<link>http://feeds.feedburner.com/~r/nathanricenet/~3/440853426/</link>
		<comments>http://www.nathanrice.net/blog/mark-jaquith-explains-the-27-publish-module/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 11:00:51 +0000</pubDate>
		<dc:creator>Nathan Rice</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Planet WordPress]]></category>

		<category><![CDATA[WordPress News]]></category>

		<category><![CDATA[mark jaquith]]></category>

		<category><![CDATA[publish module]]></category>

		<category><![CDATA[wordpress 2.7]]></category>

		<guid isPermaLink="false">http://www.nathanrice.net/?p=192</guid>
		<description><![CDATA[Mark Jaquith, lead WordPress developer, explains the new WordPress 2.7 publish module.]]></description>
			<content:encoded><![CDATA[<p>Over the weekend, I noticed that Mark Jaquith (of b5media and a lead core WordPress developer) has put together a VERY <a href="http://markjaquith.wordpress.com/2008/11/01/wordpress-27-feature-preview-publish-module/">handy video</a> that explains the logic and new functions of the Publish Module in the new WordPress 2.7 Post/Page Admin interface.</p>
<p><embed src="http://v.wordpress.com/7cpt9Htt" type="application/x-shockwave-flash" width="400" height="358" allowfullscreen="true"></embed><br />
<h2>Similar Posts:</h2>
<ul class="similar-posts">
<li><a href="http://www.nathanrice.net/blog/wordpress-27-admin-sneek-peek/" rel="bookmark" title="October 17, 2008">WordPress 2.7 Admin Sneek-Peek</a></li>
<li><a href="http://www.nathanrice.net/blog/proximity-news-theme-video-overview/" rel="bookmark" title="August 15, 2008">Proximity News Theme Video Overview</a></li>
<li><a href="http://www.nathanrice.net/blog/definitive-sticky-posts-guide-for-wordpress-27/" rel="bookmark" title="November 11, 2008">Definitive Sticky Posts Guide for WordPress 2.7</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-keywords/" rel="bookmark" title="October 14, 2008">Ultimate Guide to WordPress SEO - META Keywords</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-google-sitemaps/" rel="bookmark" title="September 29, 2008">Ultimate Guide to WordPress SEO - Google Sitemaps</a></li>
</ul>
<p><!-- Similar Posts took 24.546 ms --></p>

<p><a href="http://feeds.feedburner.com/~a/nathanricenet?a=1rEXN5"><img src="http://feeds.feedburner.com/~a/nathanricenet?i=1rEXN5" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/nathanricenet/~4/440853426" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nathanrice.net/blog/mark-jaquith-explains-the-27-publish-module/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.nathanrice.net/blog/mark-jaquith-explains-the-27-publish-module/</feedburner:origLink></item>
		<item>
		<title>Community, Self-Respect, and Free WordPress Themes</title>
		<link>http://feeds.feedburner.com/~r/nathanricenet/~3/430607125/</link>
		<comments>http://www.nathanrice.net/blog/community-self-respect-and-free-wordpress-themes/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 11:00:20 +0000</pubDate>
		<dc:creator>Nathan Rice</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Planet WordPress]]></category>

		<category><![CDATA[WordPress News]]></category>

		<category><![CDATA[elevate themes]]></category>

		<category><![CDATA[free wordpress theme]]></category>

		<category><![CDATA[free wordpress themes]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.nathanrice.net/?p=181</guid>
		<description><![CDATA[A major announcement that could turn the free WordPress theme community on its head.  Finally, free premium-quality themes are back!]]></description>
			<content:encoded><![CDATA[<p class="alert">If you would like to know more about Elevate Themes, or would like to stay up to date with the launch schedule and FREE theme releases, please follow <a href="http://twitter.com/elevatethemes">@elevatethemes</a> on twitter</p>
<p>I&#8217;m convinced the worst feeling in the world is when you know you could have done something, yet you chose to do nothing. Over the last several months, it has become increasingly clear that my self-respect was waning, and <strong>an intense desire to do something special was overwhelming me</strong>.</p>
<p>You see, I&#8217;m grateful for the community that supports free software like <a href="http://wordpres.org/">WordPress</a>.  It&#8217;s that community that has given me the ability to work full-time from home, enjoy a comfortable lifestyle, and make some of the <a href="http://corymiller.com">best</a> <a href="http://www.briangardner.com/">friends</a> I&#8217;ve ever had. WordPress has dominated my life for the better part of two years, which is shocking conisdering WordPress is just blogging software.  The fact that it supports hundreds, if not thousands, of people is shocking as well.</p>
<p>And to that end, <strong>I&#8217;ve been feeling dissatisfied with ONLY releasing themes that cost money</strong>.  Don&#8217;t get me wrong, I&#8217;m no zealot.  I&#8217;m as capitalist as they come. But something has been bothering me lately &#8212; it just didn&#8217;t seem right that a free program, supported by a team of volunteers, was severely lacking in quality themes that were also available for free.  It seems wrong &#8212; <strong>you can get a great piece of blogging softare for free, but almost all the good themes cost money</strong>.<span id="more-181"></span></p>
<h2>Introducing My Newest Project</h2>
<p><a href="http://www.elevatethemes.com/">ElevateThemes.com</a> (not live) has been stewing for almost a year now.  I distinctly remember running the unnamed idea by some folks at <a href="http://www.nathanrice.net/blog/wordcamp-dallas-2008/">WordCamp Dallas</a> for feedback.  I purchased the <a href="http://whois.domaintools.com/elevatetheme.com">elevatetheme.com domain</a> back in January. I&#8217;ve wanted to launch this site for a VERY long time &#8212; and now, I&#8217;m finally about to do it.</p>
<p>ElevateThemes.com is a major contribution to the WordPress community.  Not only because of the themes that will be available, but because of the ideal that it stands for &#8212; <strong>quality and free don&#8217;t have to be mutually exclusive.  You CAN have both.</strong></p>
<h2>An Innovative Business Model</h2>
<p>Ever since I first conceived the idea, I&#8217;ve wanted to toy with the idea of a &#8220;freemium&#8221; model theme release site.  I wanted to figure out a way to give away free themes, yet build a sustainable income from the site as well.  <strong>In my opinion, unless an idea can indirectly monetize, eventually the project leader will burnout</strong>.</p>
<p>Elevate will be monetized in three ways:</p>
<ol>
<li>Premium Membership</li>
<li>Theme Sponsorship</li>
<li>Community Job Openings</li>
</ol>
<p><strong>The Premium Membership</strong> will cost $97 per year, and will provide you access to theme documentation, tutorials, and support support forum.  This way you, as the user of the theme, will only have to pay for the things you want or need.  If you get stuck during installation, you can become a member and download the theme documentation or watch the video tutorials.  And if that doesn&#8217;t help, I (along with others) will be there to help you in the forums.</p>
<p><strong>Theme Sponsorship</strong> is much different than the &#8220;theme sponsorship&#8221; of old.  No more <a href="http://weblogtoolscollection.com/archives/2007/07/10/no-sponsored-themes-on-weblogtoolscollection/">spammy links</a> in the footer.  That&#8217;s not cool.</p>
<p>I&#8217;m talking about <strong>a way for companies to directly target the user of the theme, without exposing the user&#8217;s readers to any ads at all.</strong> When you, as the user, download and install the theme, you&#8217;ll see a sponsor ad when you set up the theme options.  These sponsors are going to help drive the design and development of new themes, and the ads will only be exposed to the administrator of the site when he sets up the theme.</p>
<p>My estimates are that the ad will be exposed to tens of thousands of bloggers through Elevate.  That&#8217;s targeted traffic, and would be well worth it for any advertiser that has a product that would be beneficial to bloggers.</p>
<p><strong>Finally, a community Job Board</strong> that will allow users of the themes we release at Elevate to find customization help if/when they need it.  <strong>Premium Members will have access to post to the Job Board</strong> as much as they want, and non-members can purchase Job Board posting access for just $47.00 per year. Yep, an entire year for just $47.</p>
<h2>Launch Schedule</h2>
<p>I&#8217;m currently developing the first two themes for release, and I expect to launch within the next week. If you want to see a sneek-peek at the first theme, <a href="http://twitter.com/elevatethemes/status/977712330">check this tweet out</a>.</p>
<h2>Are You Leaving iThemes?</h2>
<p><strong>Absolutely Not!</strong> <a href="http://ithemes.com/">iThemes</a> is still the place to get some of the best WordPress themes available.  With a team like the one we have at iThemes, there&#8217;s no way I&#8217;d leave a place like that.  We have some of the best talent together in one company, and we plan on continuing to raise the bar when it comes to WordPress themes, and build a very successful business out of it.</p>
<p>ElevateThemes.com is just my way of contributing back to the community in my spare time by bringing premium-quality themes to the table for people who would otherwise not consider buying a theme.</p>
<h2>Are You Just Copying Revolution</h2>
<p>Abslutely not! I want to be very clear about this &#8230; Elevate was conceptualized long before Brian announced Revolution&#8217;s move to the GPL.  And while I applaude his move, <strong>it was in no way whatsoever the inspiration for Elevate</strong>.  Also, although his business model has yet to be completely uncovered, it seems that our models are both different in concept and execution.</p>
<p>I believe that our two projects will prove to be complimentary rather than competitive.</p>
<h2>Stay Updated</h2>
<p>The best way to stay updated with the progress and launch schedule is to follow <a href="http://twitter.com/elevatethemes">@elevatethemes</a> on twitter.  I&#8217;ll be releasing screenshots of themes, and maybe even posing pre-launch download links for some themes.</p>
<p><a href="http://twitter.com/elevatethemes">Click Here to follow @elevatethemes on twitter</a></p>
<h2>Finally</h2>
<p>I&#8217;m waiting on the comps to come back from the designer for the new look for NathanRice.net.  After I launch ElevateThemes.com, this blog is the next thing on my list for giving a facelift.  And once this blog is a lot prettier than she is now, <strong>you&#8217;re going to see a whole slew of new posts, news, and more of those awesome WordPress tutorials that everybody here loves so much!!!</strong></p>
<p>So I hope you&#8217;re ready for an action-packed month.  It&#8217;s going to be quite a ride, so you&#8217;ll definitely want to hold on tight!</p>
<p>To stay updated on all my projects, you&#8217;re going to want to <a href="http://feeds.feedburner.com/nathanricenet">Subscribe to my feed</a>, follow <a href="http://twitter.com/nathanrice">@nathanrice</a> on twitter, and follow <a href="http://twitter.com/elevatethemes">@elevatethemes</a> on twitter.<br />
<h2>Similar Posts:</h2>
<ul class="similar-posts">
<li><a href="http://www.nathanrice.net/blog/digest/" rel="bookmark" title="March 12, 2008">Digest</a></li>
<li><a href="http://www.nathanrice.net/blog/designers-wanted/" rel="bookmark" title="April 17, 2008">Designers Wanted!</a></li>
<li><a href="http://www.nathanrice.net/blog/premium-or-freemium/" rel="bookmark" title="October 1, 2008">Premium or Freemium?</a></li>
<li><a href="http://www.nathanrice.net/blog/respect-requires-altruism/" rel="bookmark" title="December 13, 2007">Respect Requires Altruism</a></li>
<li><a href="http://www.nathanrice.net/blog/welcome-to-nathanricenet/" rel="bookmark" title="August 29, 2007">Welcome to NathanRice.net</a></li>
</ul>
<p><!-- Similar Posts took 20.271 ms --></p>

<p><a href="http://feeds.feedburner.com/~a/nathanricenet?a=81xmZf"><img src="http://feeds.feedburner.com/~a/nathanricenet?i=81xmZf" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/nathanricenet/~4/430607125" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nathanrice.net/blog/community-self-respect-and-free-wordpress-themes/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.nathanrice.net/blog/community-self-respect-and-free-wordpress-themes/</feedburner:origLink></item>
		<item>
		<title>WordPress 2.7 Admin Sneek-Peek</title>
		<link>http://feeds.feedburner.com/~r/nathanricenet/~3/423830172/</link>
		<comments>http://www.nathanrice.net/blog/wordpress-27-admin-sneek-peek/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 16:01:28 +0000</pubDate>
		<dc:creator>Nathan Rice</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Planet WordPress]]></category>

		<category><![CDATA[WordPress News]]></category>

		<category><![CDATA[dashboard design]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[wordpress 2.7]]></category>

		<guid isPermaLink="false">http://www.nathanrice.net/?p=177</guid>
		<description><![CDATA[Check out this sneek-peek at the new design for the WordPress 2.7 dashboard interface.]]></description>
			<content:encoded><![CDATA[<p><a href="http://codex.wordpress.org/Version_2.7">WordPress 2.7</a> is set to be released sometime in November. I&#8217;ve been following the development of the new 2.7 dashboard interface design through the <a href="http://svn.automattic.com/wordpress/trunk/">SVN repository</a> for 2.7 (bleeding), and this is what it&#8217;s showing as of 12:00 noon E.S.T.<span id="more-177"></span></p>
<p><a href="http://www.nathanrice.net/wp-content/uploads/2008/10/bleeding.png"><img class="alignnone size-medium wp-image-178" title="bleeding" src="http://www.nathanrice.net/wp-content/uploads/2008/10/bleeding-300x286.png" alt="" width="300" height="286" /></a></p>
<p>However, this morning, I noticed that several of the people I follow on twitter (<a href="http://twitter.com/nathanrice">@nathanrice</a>) were linking to this image over at <a href="http://ocaoimh.ie/">Donncha&#8217;s</a> Flickr:</p>
<p><a href="http://www.flickr.com/photos/donncha/2948804662/sizes/o/"><img class="alignnone" title="2.7 Sneek Peek" src="http://farm4.static.flickr.com/3281/2948804662_b466a47d17.jpg?v=0" alt="" width="500" height="377" /></a></p>
<p>Taking a closer look, and knowing that <a href="http://iammattthomas.com/">Matt Thomas</a> is the designer from the <a href="http://automattic.com/">Automattic</a> team, I figured out the URL being displayed in that browser window and discovered the full-res version of the comp for the new 2.7 dashboard interface:</p>
<p><a href="http://iammattthomas.com/27/"><img class="alignnone" title="Matt Thomas Comp" src="http://iammattthomas.com/27/1.png" alt="" width="478" height="602" /></a></p>
<p>And just minutes ago, I noticed that Jane from Automattic posted the <a href="http://wordpress.org/development/2008/10/the-visual-design-of-27/">new images</a> and details over at the <a href="http://wordpress.org/development/">WordPress development blog</a>.  Head on over there to see all the juicy details and drool over the beautiful new admin interfaces.  I don&#8217;t know about you, but I personally can&#8217;t wait until 2.7 is ready to ship.  As soon as it hits beta, I&#8217;ll be upgrading <a href="http://www.nathanrice.net">this blog</a>. :-)<br />
<h2>Similar Posts:</h2>
<ul class="similar-posts">
<li><a href="http://www.nathanrice.net/blog/welcome-to-nathanricenet/" rel="bookmark" title="August 29, 2007">Welcome to NathanRice.net</a></li>
<li><a href="http://www.nathanrice.net/blog/mark-jaquith-explains-the-27-publish-module/" rel="bookmark" title="November 3, 2008">Mark Jaquith Explains the 2.7 Publish Module</a></li>
<li><a href="http://www.nathanrice.net/themes/rockinbizred1/" rel="bookmark" title="September 3, 2007">RockinBizRed 2 Column WordPress Theme</a></li>
<li><a href="http://www.nathanrice.net/blog/premium-wordpress-theme-proximity-news-theme/" rel="bookmark" title="August 7, 2008">Premium WordPress Theme - Proximity News Theme</a></li>
<li><a href="http://www.nathanrice.net/blog/deepblue-theme-released/" rel="bookmark" title="November 28, 2007">DeepBlue Theme Released!</a></li>
</ul>
<p><!-- Similar Posts took 9.084 ms --></p>

<p><a href="http://feeds.feedburner.com/~a/nathanricenet?a=GLzHsf"><img src="http://feeds.feedburner.com/~a/nathanricenet?i=GLzHsf" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/nathanricenet/~4/423830172" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nathanrice.net/blog/wordpress-27-admin-sneek-peek/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.nathanrice.net/blog/wordpress-27-admin-sneek-peek/</feedburner:origLink></item>
		<item>
		<title>Ultimate Guide to WordPress SEO - Deep Linking</title>
		<link>http://feeds.feedburner.com/~r/nathanricenet/~3/422191971/</link>
		<comments>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-deep-linking/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 11:00:44 +0000</pubDate>
		<dc:creator>Nathan Rice</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Blogging Tips]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[Planet WordPress]]></category>

		<category><![CDATA[WordPress Tips]]></category>

		<category><![CDATA[deep linking]]></category>

		<category><![CDATA[seo]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[wordpress search engine optimization]]></category>

		<category><![CDATA[wordpress seo]]></category>

		<category><![CDATA[wordpress theme]]></category>

		<category><![CDATA[wordpress theme seo]]></category>

		<guid isPermaLink="false">http://www.nathanrice.net/?p=169</guid>
		<description><![CDATA[You might have noticed that throughout this series on WordPress SEO, I&#8217;ve been doing something rather peculiar.  I&#8217;ve been linking to my own content far more than I&#8217;ve been linking out.  Now, this isn&#8217;t because I&#8217;m a stingy linker.  I just happen to have a goal in the methodology I&#8217;m using in this series with [...]]]></description>
			<content:encoded><![CDATA[<p>You might have noticed that throughout this series on <a title="WordPress SEO" href="http://www.nathanrice.net/blog/wordpress-seo-the-ultimate-guide-to-wordpress-theme-search-engine-optimization/">WordPress SEO</a>, I&#8217;ve been doing something rather peculiar.  I&#8217;ve been linking to my own content far more than I&#8217;ve been linking out.  Now, this isn&#8217;t because I&#8217;m a stingy linker.  I just happen to have a goal in the methodology I&#8217;m using in this series with links.  That strategy is called <em>deep linking</em>, and it is one of the best ways to not only increase SEO, but also drive visitors deeper into your blog or website.</p>
<p><strong>Deep linking is the art of linking relevant keywords to related content within your own site</strong>. Essentially, you are leveraging your own site&#8217;s equity for gain.  What gain? In order to understand what is to be gained, one must first understand how links affect SEO.<span id="more-169"></span></p>
<h2>Links and SEO</h2>
<p>As I mentioned in my previous post regarding <a title="Keyword Density SEO" href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-keyword-density/">keyword density</a>, SEO is so much more than just optimizing important segments of your website structure.  It has to do with calculations based on several different variables.  That doesn&#8217;t mean to ignore structural SEO, it just meanst that your job isn&#8217;t finished.</p>
<p>Included in those variables is the number of links your site, page, or post has pointing to it.</p>
<p>So, if I were to link out to a post written by my friend Ian Stewart on <a title="WordPress Child Themes" href="http://themeshaper.com/functions-php-wordpress-child-themes/">WordPress Child Themes</a>, the next time Google crawls my site, it&#8217;s going to register that link as a &#8220;vote&#8221;, for lack of a better word, for his post, and associate that post with the keywords I used in the link.  So, in essence, I just voted that his post should rank high for the keyphrase &#8220;WordPress Child Themes&#8221;.</p>
<p>Make sense?</p>
<h2>Deep Links and SEO</h2>
<p><strong>I&#8217;ll freely admit that self-referential links probably don&#8217;t count nearly as much as incoming, external links</strong>.  But they <a title="Deep Linking" href="http://www.rajdash.com/increase-your-search-engine-rankings-by-deep-linking/">do help</a>.</p>
<p>So, what do you need to do? Here&#8217;s what I do:</p>
<p>When I write a post, I don&#8217;t do any links at first.  I just write.  I find the external links that I want to use and keep them open in separate tabs.  Then, once I&#8217;m done writing and proofreading, I start filling in external links wherever I find it beneficial. <strong>Linking out is always a good practice, and doing 100% deep links could hurt you</strong>.</p>
<p>Then, I read over my post one more time, this time keeping an eye out for words or phrases that may be related to content I&#8217;ve written in the past.  For instance, if I mention the word &#8220;homepage&#8221;, I might link to the post I did called &#8220;3 Ways to Optimize Your Blog Homepage&#8221;.  Sometimes, I may even reword my sentence to get that link to fit with a more relevant (and more desirable) keyword or keyphrase.  So I may modify my sentence to include the words &#8220;homepage design&#8221; or &#8220;homepage optimization&#8221;.</p>
<p>For me, I want this series&#8217; opening post (with links to all the posts in the series) to rank well for the search term &#8220;WordPress SEO&#8221;.  This is actually pretty difficult, given that there are much older, established sites out there with many, many incoming links that I have to compete with.  So obviously, good SEO and deep linking won&#8217;t be enough to put me at the top of the list.  As it currently stands, I&#8217;m ranked at the top of the third page for that <a href="http://www.google.com/search?q=wordpress+seo">search term</a>. It won&#8217;t bring in thousands of visitors a day, but it will net me <a href="http://blog.searchenginewatch.com/blog/050314-164653">long-tail benefits</a>.</p>
<p>And for less competitive search terms like &#8220;WordPress theme search engine optimization&#8221;, I just so happen to be #2 in the search results.  That&#8217;s not bad at all, given I&#8217;ve got very few quality links back to that article.  I achieved that ranking nearly 100% through good SEO and deep linking.</p>
<h2>Don&#8217;t Overdo it</h2>
<p>When most people discover deep linking, they tend to go crazy with deep linking in posts.  Let me encourage you not to do that.</p>
<p><strong>Deep linking is great, but use it in moderation</strong>.  Here are some quick tips for deciding when to deep link:</p>
<ol>
<li>Only Deep link if the URL is relevant to the phrase. Don&#8217;t force it!</li>
<li>Keep deep links to around 5 per post. Posts that are littered with links tend to look spammy.</li>
<li>Deep link, and link out to others at an even ratio. Look for ways to link to other bloggers.</li>
<li>Remember that deep linking isn&#8217;t just for SEO. It can drive deep traffic too.</li>
<li>Keep links short. Don&#8217;t link entire sentences.</li>
</ol>
<p>Remember, this is about gaining strategic advantages, not huge leaps ahead.  Deep linking won&#8217;t work overnight, and it won&#8217;t land you on the front page for competitive keywords.  But it is just one more tool you can use to give yourself the upper hand in the SEO battle.<br />
<h2>Similar Posts:</h2>
<ul class="similar-posts">
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-descriptions/" rel="bookmark" title="October 13, 2008">Ultimate Guide to WordPress SEO - META Descriptions</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-keyword-density/" rel="bookmark" title="October 15, 2008">Ultimate Guide to WordPress SEO - Keyword Density</a></li>
<li><a href="http://www.nathanrice.net/blog/wordpress-seo-the-ultimate-guide-to-wordpress-theme-search-engine-optimization/" rel="bookmark" title="August 8, 2008">WordPress SEO - The Ultimate Guide to WordPress Theme Search Engine Optimization</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-indexing-control/" rel="bookmark" title="October 3, 2008">Ultimate Guide to WordPress SEO - Indexing Control</a></li>
<li><a href="http://www.nathanrice.net/blog/good-design-starts-with-the-homepage/" rel="bookmark" title="September 3, 2007">Good Design Starts With the Homepage</a></li>
</ul>
<p><!-- Similar Posts took 7.787 ms --></p>

<p><a href="http://feeds.feedburner.com/~a/nathanricenet?a=8iHAG6"><img src="http://feeds.feedburner.com/~a/nathanricenet?i=8iHAG6" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/nathanricenet/~4/422191971" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-deep-linking/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-deep-linking/</feedburner:origLink></item>
		<item>
		<title>Ultimate Guide to WordPress SEO - Keyword Density</title>
		<link>http://feeds.feedburner.com/~r/nathanricenet/~3/421502020/</link>
		<comments>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-keyword-density/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 12:00:41 +0000</pubDate>
		<dc:creator>Nathan Rice</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Planet WordPress]]></category>

		<category><![CDATA[keyword density]]></category>

		<category><![CDATA[search engine optimization]]></category>

		<category><![CDATA[seo]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[wordpress search engine optimization]]></category>

		<category><![CDATA[wordpress seo]]></category>

		<category><![CDATA[wordpress theme]]></category>

		<category><![CDATA[wordpress theme seo]]></category>

		<guid isPermaLink="false">http://www.nathanrice.net/?p=161</guid>
		<description><![CDATA[By utilizing the practice of Keyword Density, we can improve our rankings for the keywords we're targeting. In this post, I give you a few tips for implementing a keyword density strategy.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll admit that I&#8217;m no SEO expert.  When I started this series on <a title="WordPress SEO" href="http://www.nathanrice.net/blog/wordpress-seo-the-ultimate-guide-to-wordpress-theme-search-engine-optimization/">WordPress SEO</a>, my goal was to outline steps that I have taken in my web experience that have helped me rank for target keywords time and time again.</p>
<p>In reality, <strong>SEO is a lot bigger than just making a few theme modifications and optimization</strong>.  <em>Keyword density</em> is one of those things that I understand very little about, but am very aware of its importance.<span id="more-161"></span></p>
<p><em>Keyword Density</em> has to do with making sure your static pages and blog posts have <strong>a good ratio of content to keywords</strong>.  For instance, if you were writing a blog posts about common diseases in Golden Retrievers, you would want to first, identify what keywords you believe describe your content well and that you would like to rank for, and second, make sure that you insert those keywords regularly in your post content.</p>
<h2>Keyword Usage</h2>
<p>In our example above, we&#8217;ll probably want to rank for the search phrase &#8220;<em>golden retriever common diseases</em>&#8221; &#8212; so, along with the other strategies outlined in this series, you&#8217;ll want to make sure that you are inserting variations of that phrase throughout your content.</p>
<p>Most SEO experts <a href="http://www.webconfs.com/over-optimization-article-8.php">will recommend</a> your content to keyword ration be around 3-7%, and never exceeding 10%.  So for ever 90 or so words of content, you&#8217;ll want to use your keyword or keyphrase.</p>
<h2>Keywords as Subheadings</h2>
<p>Remember back when I told you that <a title="WordPress Headings SEO" href="http://www.nathanrice.net/blog/ultimage-guide-to-wordpress-seo-optimized-title-tags/">heading tags</a> (H1, H2, H3, etc.) are semantic ways of structuring your content?  H1 should be the title of the page or post itself. H2 is a subheading, etc.</p>
<p>Well, now is a perfect time to use the H2 tag to place emphasis on our keywords.  So, split your post into sections, and title the sections using the H2 tag.  Then, use your keyword or keyphrase between the H2 tags.</p>
<h2>Keywords and Other Tags</h2>
<p><strong>Most people don&#8217;t realize that the &lt;strong&gt; and &lt;em&gt; tags are actually semantic XHTML meant for communicating that the content between them is important.</strong> In fact, the &lt;em&gt; tag stands for &#8220;emphasis&#8221;! So, if we strategically place our keywords and keyphrases between either of these tags, we are telling the crawlers that we considered that content important enough to draw attention to.</p>
<h2>The Small Things</h2>
<p>These methods aren&#8217;t going to launch you to the top of the results pages by any means, but <strong>when we talk about SEO, in many cases it&#8217;s all about gaining a strategic advantage over your competitors</strong>, and it will be the little things like this that will give you the upper hand.<br />
<h2>Similar Posts:</h2>
<ul class="similar-posts">
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-keyword-rich-permalinks/" rel="bookmark" title="October 6, 2008">Ultimate Guide to WordPress SEO - Keyword-Rich Permalinks</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-deep-linking/" rel="bookmark" title="October 16, 2008">Ultimate Guide to WordPress SEO - Deep Linking</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-keywords/" rel="bookmark" title="October 14, 2008">Ultimate Guide to WordPress SEO - META Keywords</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-optimized-heading-tags/" rel="bookmark" title="October 8, 2008">Ultimate Guide to WordPress SEO - Optimized Heading Tags</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-optimized-titles/" rel="bookmark" title="October 7, 2008">Ultimate Guide to WordPress SEO - Optimized Titles</a></li>
</ul>
<p><!-- Similar Posts took 13.441 ms --></p>

<p><a href="http://feeds.feedburner.com/~a/nathanricenet?a=2KwHzk"><img src="http://feeds.feedburner.com/~a/nathanricenet?i=2KwHzk" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/nathanricenet/~4/421502020" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-keyword-density/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-keyword-density/</feedburner:origLink></item>
		<item>
		<title>Ultimate Guide to WordPress SEO - META Keywords</title>
		<link>http://feeds.feedburner.com/~r/nathanricenet/~3/420475307/</link>
		<comments>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-keywords/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 12:00:43 +0000</pubDate>
		<dc:creator>Nathan Rice</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Planet WordPress]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[WordPress Tips]]></category>

		<category><![CDATA[meta keywords]]></category>

		<category><![CDATA[search engine optimization]]></category>

		<category><![CDATA[seo]]></category>

		<category><![CDATA[tags]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[wordpress search engine optimization]]></category>

		<category><![CDATA[wordpress seo]]></category>

		<category><![CDATA[wordpress theme]]></category>

		<category><![CDATA[wordpress theme seo]]></category>

		<guid isPermaLink="false">http://www.nathanrice.net/?p=158</guid>
		<description><![CDATA[How to use WordPress tags as META Keywords for Search Engine Optimization.]]></description>
			<content:encoded><![CDATA[<p>Up until this point in the <a title="WordPress SEO" href="http://www.nathanrice.net/blog/wordpress-seo-the-ultimate-guide-to-wordpress-theme-search-engine-optimization/">WordPress SEO</a> series, I&#8217;ve been very confident in the power of the methods I&#8217;ve outlined.  I really <a title="WordPress Title Optimization" href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-optimized-titles/">don&#8217;t believe a plugin should control your TITLE</a>, I do believe you can increase search engine click-throughs by <a title="WordPress META Description" href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-descriptions/">using the META description tag</a>, and I do believe that <a title="WordPress Semantic Headings" href="http://www.nathanrice.net/blog/ultimage-guide-to-wordpress-seo-optimized-title-tags/">Heading structure</a> and hierarchy are important for keyword ranking.</p>
<p>But <strong>what I&#8217;m about to share today doesn&#8217;t have any solid metrics</strong>, and I&#8217;m not convinced it will help you at all.  <strong>I do personally use this method</strong> on this blog, and I haven&#8217;t noticed any negative effects on my rankings, but there are some people who <a title="Google META Keywords" href="http://www.pandia.com/sew/73-avoid-the-meta-keywords-tag.html">do believe</a> that META Keywords should never be used, given their dark history.</p>
<p>So, implement this at your own risk.  (By the way, <a href="http://www.nathanrice.net/proximity/">Proximity News Theme</a> users can turn this feature off in the theme options panel under the <em>Search Engine Optimization</em> section)<span id="more-158"></span></p>
<h2>An Introduction to META Keywords</h2>
<p>Back in the early days of the Internet and search engines, one of the ways a site&#8217;s administrator (webmaster for all you 90&#8217;s web guys) could boost his site&#8217;s rankings for certain keywords was to use the <a href="http://en.wikipedia.org/wiki/Meta_element#The_keywords_attribute">META Keywords</a> tag in the HEAD of his HTML document.  By doing this, he would be telling the search engine what kind of content was on that particular page.</p>
<p>But, some SEO guys figured out that you could game the system by stuffing keywords into the META Keywords tag that had very little, if anything, to do with the content of the website.  The result was that you could do a search for something innocent, let&#8217;s say &#8220;gold jewelery&#8221; and end up on a page that was pornographic or ad-stuffed.</p>
<p><strong>It was lazy SEO</strong>, and soon enough all the search engines wised up to it and de-prioritized the META Keyword value in ranking pages for keywords.</p>
<p><strong>There are no hard facts as to how much priority they still place on the META Keywords value, if any at all</strong>.  I&#8217;m inclined to believe that there is no penalty for using it in moderation, but the value is very low.  I do not believe any of the search engines completely ignore the value, though, which is why I happen to use it here on my blog.</p>
<h2>Keywords vs. Tags</h2>
<p>In <a title="WordPress Theme Backward Compatibility" href="http://www.nathanrice.net/blog/wordpress-23-theme-backward-compatibility/">WordPress 2.3</a>, the idea of &#8220;tagging&#8221; your content <a title="WordPress Tagging" href="http://www.nathanrice.net/blog/the-overlooked-tag-tags/">was introduced</a> into the core of WordPress.  You could now tag your content with certain keywords.  You may notice that I do this at the bottom of nearly every post I publish here at the blog.  I don&#8217;t do it because I believe it has massive value for SEO, but I do believe that it does affect your rankings, even if it is very small, especially in the blog search engines like <a href="http://technorati.com">Technorati</a>.</p>
<p><strong>In my opinion, there are no differences between tags and keywords.</strong></p>
<p>I believe that tags and keywords are fundamentally the same thing, used for the same purpose &#8212; to tell something or someone, in a few short words, what the content of the website consists of.</p>
<h2>Tags as Keywords</h2>
<p>Since I&#8217;ve decided that I&#8217;ll be using my tags for the same purpose as META Keywords, <strong>I don&#8217;t see any reason not to use my tags AS my META Keywords</strong>.</p>
<p>So what we need to do is modify our header.php file and see if we can&#8217;t manage to use the tags we use to describe our posts as META Keywords in our page source.  The only problem is, most tag &#8220;template tags&#8221; are meant to be used within <a href="http://codex.wordpress.org/The_Loop">the loop</a>.</p>
<p>That&#8217;s actually not a problem if you did <a title="WordPress META Description" href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-descriptions/">what I recommended in our META Description post</a>, since we already have a loop occurrence in our header.php file.  So, we&#8217;ll just piggyback on it.  The code currently looks like this:</p>
<pre>&lt;?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;
&lt;meta name="description" content="&lt;?php the_excerpt_rss(); ?&gt;" /&gt;
&lt;?php endwhile; endif; elseif(is_home()) : ?&gt;
&lt;meta name="description" content="&lt;?php bloginfo('description'); ?&gt;" /&gt;
&lt;?php endif; ?&gt;</pre>
<p>So, what we need to do is insert our code right after the <em>&lt;meta name=&#8221;description&#8221; &#8230; /&gt;</em> code, but because I like to keep heavy coding out of the template files, let&#8217;s put first put the following code into our theme&#8217;s functions.php file somewhere between PHP tags:</p>
<pre>function csv_tags() {
    $posttags = get_the_tags();
    foreach((array)$posttags as $tag) {
        $csv_tags .= $tag-&gt;name . ',';
    }
    echo '&lt;meta name="keywords" content="'.$csv_tags.'" /&gt;';
}</pre>
<p>This code takes advantage of the <a href="http://codex.wordpress.org/Template_Tags/get_the_tags">get_the_tags</a> function from WordPress which will return an array of the tags attached to the post.  I&#8217;m using a foreach loop to get the tags into a comma separated list.</p>
<p>Then just insert the function call right under the META Description:</p>
<pre>&lt;?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;
&lt;meta name="description" content="&lt;?php the_excerpt_rss(); ?&gt;" /&gt;
<strong>&lt;?php csv_tags(); ?&gt;</strong>
&lt;?php endwhile; endif; elseif(is_home()) : ?&gt;
&lt;meta name="description" content="&lt;?php bloginfo('description'); ?&gt;" /&gt;
&lt;?php endif; ?&gt;</pre>
<p><strong>That function will only generate the META Keywords tag and keywords if the post actually has tags attached to it.</strong> It also filters out static pages, which by default, do not have the ability to be tagged using the Write Page panel.</p>
<p>You could also set some keywords to describe your blog as a whole to be used when on the homepage by doing this:</p>
<pre>&lt;?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;
&lt;meta name="description" content="&lt;?php the_excerpt_rss(); ?&gt;" /&gt;
&lt;?php csv_tags(); ?&gt;
&lt;?php endwhile; endif; elseif(is_home()) : ?&gt;
&lt;meta name="description" content="&lt;?php bloginfo('description'); ?&gt;" /&gt;
<strong>&lt;meta name="keywords" content="list,of,keywords,goes,here" /&gt;</strong>
&lt;?php endif; ?&gt;</pre>
<p>I don&#8217;t personally do this, but you certainly could.</p>
<p>So, do what you please.  If you think adding tags as keywords is a good idea for your blog or website, then by all means try it out! If it works, great! If not, you can always just remove the code and probably won&#8217;t be any worse off for trying.</p>
<p><strong>What are your thoughts?</strong> I&#8217;m curious to know if anyone has any information on META Keywords that I&#8217;m unaware of.  If I was mistaken in the post, I&#8217;d be happy to correct myself.<br />
<h2>Similar Posts:</h2>
<ul class="similar-posts">
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-descriptions/" rel="bookmark" title="October 13, 2008">Ultimate Guide to WordPress SEO - META Descriptions</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-indexing-control/" rel="bookmark" title="October 3, 2008">Ultimate Guide to WordPress SEO - Indexing Control</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-optimized-titles/" rel="bookmark" title="October 7, 2008">Ultimate Guide to WordPress SEO - Optimized Titles</a></li>
<li><a href="http://www.nathanrice.net/blog/3-ways-to-optimize-your-blog-homepage/" rel="bookmark" title="September 14, 2007">3 Ways to Optimize Your Blog Homepage</a></li>
<li><a href="http://www.nathanrice.net/blog/wordpress-seo-the-ultimate-guide-to-wordpress-theme-search-engine-optimization/" rel="bookmark" title="August 8, 2008">WordPress SEO - The Ultimate Guide to WordPress Theme Search Engine Optimization</a></li>
</ul>
<p><!-- Similar Posts took 9.388 ms --></p>

<p><a href="http://feeds.feedburner.com/~a/nathanricenet?a=sp1sh0"><img src="http://feeds.feedburner.com/~a/nathanricenet?i=sp1sh0" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/nathanricenet/~4/420475307" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-keywords/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-keywords/</feedburner:origLink></item>
		<item>
		<title>Ultimate Guide to WordPress SEO - META Descriptions</title>
		<link>http://feeds.feedburner.com/~r/nathanricenet/~3/419418995/</link>
		<comments>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-descriptions/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 11:00:44 +0000</pubDate>
		<dc:creator>Nathan Rice</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Planet WordPress]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[WordPress Tips]]></category>

		<category><![CDATA[WordPress Tricks]]></category>

		<category><![CDATA[meta description]]></category>

		<category><![CDATA[search engine optimization]]></category>

		<category><![CDATA[seo]]></category>

		<category><![CDATA[serp]]></category>

		<category><![CDATA[the_excerpt]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[wordpress search engine optimization]]></category>

		<category><![CDATA[wordpress seo]]></category>

		<category><![CDATA[wordpress theme]]></category>

		<category><![CDATA[wordpress theme seo]]></category>

		<guid isPermaLink="false">http://www.nathanrice.net/?p=147</guid>
		<description><![CDATA[Want to know how to control how search engines display your content on their results pages? Then check out this tip in our WordPress SEO Series!]]></description>
			<content:encoded><![CDATA[<p>One of the tricks to <a title="WordPress SEO" href="http://www.nathanrice.net/blog/wordpress-seo-the-ultimate-guide-to-wordpress-theme-search-engine-optimization/">WordPress SEO</a> is understanding that it&#8217;s not all about rankings.  Sure, high rankings for your target keywords are awesome, and they definitely produce great returns, but lower rankings aren&#8217;t bad all the time either. <strong>If we think about a search engine results page (SERP) as a billboard for our content, then sure, position matters, but so does the content of our billboard.</strong></p>
<p>And that&#8217;s exactly what we can do using the <a href="http://www.seologic.com/faq/meta-descriptions.php">META description</a> tag.  We can actually control what gets displayed in our little spot of SERP real estate, therefore <strong>utilizing a tremendous opportunity to convert that space into traffic.</strong><span id="more-147"></span></p>
<p>Have you ever been linked to from another blog? Don&#8217;t you sometimes wish you could have had some say as to what was said in the blog post that linked to you?  It&#8217;s the same concept with using the META description to control the content that describes the page in a SERP.</p>
<h2>Anatomy of a Search Engine Results Page</h2>
<p>Search Engines, like Google, tend to display search results in a very standard format.  Usually the TITLE of the post or page is the link that actually takes you to the post, and under that link is a description of the site linked to.  Under that, you usually find the URL of the page as well.  Here is an image that illustrates my point:</p>
<p><a href="http://www.nathanrice.net/wp-content/uploads/2008/10/picture-21.png"><img class="alignnone size-medium wp-image-148" title="SERP" src="http://www.nathanrice.net/wp-content/uploads/2008/10/picture-21-300x240.png" alt="" width="300" height="240" /></a></p>
<h2>We Can Manipulate All Three Parts</h2>
<p>What most people fail to realize is:</p>
<ol>
<li>Each one of these places can be manipulated by YOU!</li>
<li>Failing to manually manipulate them means you aren&#8217;t taking advantage of free ad space from the search engine!</li>
</ol>
<p>Because search engines are the primary traffic source for most good websites (websites that have good SEO, at least), we can&#8217;t undervalue <strong>potential clicks</strong> to our content.  <strong>If people just scan past our page on the SERP, then we wasted our time getting it ranked!</strong> You need to pull them in! And the way you so that is by manipulating the content of your result in the SERP.</p>
<h2>How To Manipulate Our Result Listing</h2>
<p>Since <strong>there are three parts to every result listing</strong>, there are three parts that we need to manipulate.  Fortunately for you, I&#8217;ve already taught you how to manipulate the TITLE and the URL in this series.  In order to manipulate what the title looks like, you need to <a title="Optimized Title Tags" href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-optimized-titles/">optimize your TITLE tag</a>.  And in order to manipulate the URL, you need to be sure you&#8217;re <a title="Optimized Permalinks" href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-keyword-rich-permalinks/">optimizing your permalinks</a>.</p>
<p>But, here&#8217;s how you change what the result page uses as the description for your content.</p>
<p>Essentially, <strong>you&#8217;re going to want to be ranking for three types of content &#8212; your homepage, your single posts, and your static pages</strong>.  So, we need to determine what the best strategy for displaying the most accurate, relevant description for our content within the META tag, which looks something like this:</p>
<pre id="line1">&lt;<span class="start-tag">meta</span><span class="attribute-name"> name</span>=<span class="attribute-value">"description" </span><span class="attribute-name">content</span>=<span class="attribute-value">"The Description of your content" </span><span class="error"><span class="attribute-name">/</span></span>&gt;</pre>
<p>This tag should go somewhere between the &lt;head&gt;&lt;/head&gt; tags in the header.php file of your WordPress theme.  But out dilemma is, how do we populate the &#8220;content&#8221; section of the META description dynamically based on what content we&#8217;re viewing?  Simple &#8212; we <strong>use a combination of conditional tags and a custom loop</strong> to pull either the sites tagline (if we&#8217;re on the homepage) or the excerpt (if we&#8217;re in a single post or static page).</p>
<p>The final result will look something like this:</p>
<pre>&lt;?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;
&lt;meta name="description" content="&lt;?php the_excerpt_rss(); ?&gt;" /&gt;
&lt;?php endwhile; endif; elseif(is_home()) : ?&gt;
&lt;meta name="description" content="&lt;?php bloginfo('description'); ?&gt;" /&gt;
&lt;?php endif; ?&gt;</pre>
<p>In plain English: <strong>if we are viewing a single post or static page, then use the_excerpt_rss as the description for that post or page</strong>.  The reason we use the_excerpt_rss is because it strips out all formatting tags, something that isn&#8217;t useful when not displaying the text. But, <strong>if we are on the homepage, then we need to use the blog&#8217;s tagline</strong> (the bloginfo(&#8217;description&#8217;) outputs the tagline of the blog).</p>
<p>So, by displaying this META description both conditionally and dynamically, we have way more control over what the search engine results page displays as the description of our homepage, static pages, and single posts.</p>
<h2>Even More Control</h2>
<p>Usually, most bloggers don&#8217;t take advantage of the use of the &#8220;optional excerpt&#8221; section of their Write Post panel.  But if you want to exercise even more control over what gets displayed on the SERP for content, then you need to be filling this section out.  If it&#8217;s blank, your post description will just be the first X amount of words in your post.  <strong>But sometimes those words don&#8217;t do a very good job of selling your content</strong>.  In this instance, do something like this:</p>
<p><a href="http://www.nathanrice.net/wp-content/uploads/2008/10/picture-3.png"><img class="alignnone size-medium wp-image-151" title="picture-3" src="http://www.nathanrice.net/wp-content/uploads/2008/10/picture-3-300x274.png" alt="" width="300" height="274" /></a></p>
<p>Now that I have an optional excerpt filled in for that post, let&#8217;s see how that post looks on a <a href="http://www.google.com/search?q=the+problem+with+theme+options">Search Engine Results Page</a>:</p>
<p><a href="http://www.nathanrice.net/wp-content/uploads/2008/10/picture-12.png"><img class="alignnone size-medium wp-image-152" title="picture-12" src="http://www.nathanrice.net/wp-content/uploads/2008/10/picture-12-300x74.png" alt="" width="300" height="74" /></a></p>
<p><strong>Perfection!</strong></p>
<p>So, now you know how I use search engines to generate the majority of my traffic.  I don&#8217;t use the optional excerpt all the time &#8212; not by a long shot.  But whenever I feel like the post needs a good desctiption, and the first few words just don&#8217;t cut it, using this method is absolutely perfect!</p>
<p>Check back next time to see how we use a very similar method to generate META keywords for our content.<br />
<h2>Similar Posts:</h2>
<ul class="similar-posts">
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-keywords/" rel="bookmark" title="October 14, 2008">Ultimate Guide to WordPress SEO - META Keywords</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-optimized-titles/" rel="bookmark" title="October 7, 2008">Ultimate Guide to WordPress SEO - Optimized Titles</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-indexing-control/" rel="bookmark" title="October 3, 2008">Ultimate Guide to WordPress SEO - Indexing Control</a></li>
<li><a href="http://www.nathanrice.net/blog/3-ways-to-optimize-your-blog-homepage/" rel="bookmark" title="September 14, 2007">3 Ways to Optimize Your Blog Homepage</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-google-sitemaps/" rel="bookmark" title="September 29, 2008">Ultimate Guide to WordPress SEO - Google Sitemaps</a></li>
</ul>
<p><!-- Similar Posts took 10.772 ms --></p>

<p><a href="http://feeds.feedburner.com/~a/nathanricenet?a=zzhkUY"><img src="http://feeds.feedburner.com/~a/nathanricenet?i=zzhkUY" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/nathanricenet/~4/419418995" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-descriptions/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-descriptions/</feedburner:origLink></item>
		<item>
		<title>An Easy Way To Get the Contents of a Custom Field</title>
		<link>http://feeds.feedburner.com/~r/nathanricenet/~3/415684367/</link>
		<comments>http://www.nathanrice.net/blog/an-easy-way-to-get-the-contents-of-a-custom-field/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 11:00:50 +0000</pubDate>
		<dc:creator>Nathan Rice</dc:creator>
		
		<category><![CDATA[Blog]]></category>

		<category><![CDATA[Planet WordPress]]></category>

		<category><![CDATA[WordPress Tips]]></category>

		<category><![CDATA[WordPress Tricks]]></category>

		<category><![CDATA[custom fields]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[wordpress theme]]></category>

		<guid isPermaLink="false">http://www.nathanrice.net/?p=133</guid>
		<description><![CDATA[If you do any hardcore WordPress coding, then you&#8217;re probably aware of Custom Fields and the unlimited possibilities they offer you as a WordPress designer or developer.  For instance, I use custom fields as a means of attaching a feature image and thumbnail to posts in my Proximity News Theme.
But, they can be a bit [...]]]></description>
			<content:encoded><![CDATA[<p>If you do any hardcore WordPress coding, then you&#8217;re probably aware of <a title="WordPress Custom Fields" href="http://codex.wordpress.org/Using_Custom_Fields">Custom Fields</a> and the unlimited possibilities they offer you as a WordPress designer or developer.  For instance, I use custom fields as a means of attaching a feature image and thumbnail to posts in my <a title="WordPress News Theme" href="http://www.nathanrice.net/proximity/">Proximity News Theme</a>.</p>
<p>But, they can be a bit cumbersome to use throughout your theme because of the ridiculous amount of code that it takes just to pull the data out and display it.<span id="more-133"></span></p>
<p>Conventionally, <a title="Custom Field Values" href="http://justintadlock.com/archives/2007/10/24/using-wordpress-custom-fields-introduction">here&#8217;s how</a> you would pull the data from a custom field where the key = image and use the value of that field as the &#8220;src&#8221; value in an IMG tag:</p>
<pre>&lt;?php $image = get_post_meta($post-&gt;ID, 'image', TRUE); ?&gt;
&lt;?php if($image) { ?&gt;&lt;img src="&lt;?php echo $image; ?&gt;" alt="Alt Text" /&gt;&lt;?php } ?&gt;</pre>
<p>Putting the value from the custom field into a variable definitely cuts down on the amount of code you have to write, but by utilizing a simple PHP function, <strong>we can make using custom fields even easier</strong>!  Open up your theme&#8217;s functions.php file and paste the following code somewhere between PHP tags:</p>
<pre>function get_custom_field($key, $echo = FALSE) {
	global $post;
	$custom_field = get_post_meta($post-&gt;ID, $key, true);
	if ($echo == FALSE) return $custom_field;
	echo $custom_field;
}</pre>
<p>Now, when you want to get the value of the custom field, you simply use the function in your theme files like so:</p>
<pre>&lt;?php get_custom_field('image', TRUE); ?&gt;</pre>
<p>Using the &#8220;TRUE&#8221; value makes sure that the function actually <a href="http://www.php.net/echo">echos</a> the value, rather than just <a href="http://de3.php.net/return">returning</a> it.  But if for some reason, you need to use the value of the custom field (for instance, to store in a variable), then you can return the value instead of echoing it like so:</p>
<pre>&lt;?php get_custom_field('image', FALSE); ?&gt;</pre>
<p>Also, you could change the value of the $echo varialble in the function declaration to TRUE if you would like the default for the function to be to echo the value, rather than return it.  It&#8217;s really up to your preferences.</p>
<p>Now, let&#8217;s take it one step further.  Let&#8217;s recycle some code from our <em><strong>get_custom_field</strong></em> function and use it in a function that will check to see if that custom field has a value &#8212; and if it does, then to use that value, along with the proper IMG tags to output an image, including width and height specifications:</p>
<pre>function image_attachment($key, $width, $height) {
	global $post;
	$custom_field = get_post_meta($post-&gt;ID, $key, true);

	if($custom_field) { //if the user set a custom field
		echo '&lt;img src="'.$custom_field.'" alt="" width="'.$width.'" height="'.$height.'"/&gt;';
	}
	else { //else, return
		return;
	}
}</pre>
<p>Then, just use the function in your theme files.  This example would echo the image with a width and height of 100px:</p>
<pre>&lt;?php image_attachment('image', 100, 100); ?&gt;</pre>
<p>Cool, huh? :-)  Feel free to experiment with the many, many opportunities these kinds of shortcuts can bring you.<br />
<h2>Similar Posts:</h2>
<ul class="similar-posts">
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-keywords/" rel="bookmark" title="October 14, 2008">Ultimate Guide to WordPress SEO - META Keywords</a></li>
<li><a href="http://www.nathanrice.net/blog/definitive-sticky-posts-guide-for-wordpress-27/" rel="bookmark" title="November 11, 2008">Definitive Sticky Posts Guide for WordPress 2.7</a></li>
<li><a href="http://www.nathanrice.net/blog/wordpress-single-post-templates/" rel="bookmark" title="May 13, 2008">WordPress Single Post Templates</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-optimized-titles/" rel="bookmark" title="October 7, 2008">Ultimate Guide to WordPress SEO - Optimized Titles</a></li>
<li><a href="http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-meta-descriptions/" rel="bookmark" title="October 13, 2008">Ultimate Guide to WordPress SEO - META Descriptions</a></li>
</ul>
<p><!-- Similar Posts took 6.945 ms --></p>

<p><a href="http://feeds.feedburner.com/~a/nathanricenet?a=qtbzi7"><img src="http://feeds.feedburner.com/~a/nathanricenet?i=qtbzi7" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/nathanricenet/~4/415684367" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nathanrice.net/blog/an-easy-way-to-get-the-contents-of-a-custom-field/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.nathanrice.net/blog/an-easy-way-to-get-the-contents-of-a-custom-field/</feedburner:origLink></item>
	</channel>
</rss>
