<?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>In the Woods &#187; WordPress</title>
	<atom:link href="http://blog.themeforest.net/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.themeforest.net</link>
	<description>The ThemeForest Blog</description>
	<lastBuildDate>Mon, 27 Sep 2010 19:48:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Add Social Bookmarks to your WordPress Theme</title>
		<link>http://blog.themeforest.net/wordpress/add-social-bookmarks-to-your-wordpress-theme/</link>
		<comments>http://blog.themeforest.net/wordpress/add-social-bookmarks-to-your-wordpress-theme/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 17:41:07 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.themeforest.net/?p=2417</guid>
		<description><![CDATA[In this short tutorial, we&#8217;ll be adding buttons to our WordPress theme to allow visitors to easily submit the current article to social bookmarking sites like Delicious, Reddit, Digg, StumbleUpon, Twitter and Facebook. 
All of these sites provide a simple way to create these buttons. For example, to add an article to Reddit, the URL [...]]]></description>
			<content:encoded><![CDATA[<p>In this short tutorial, we&#8217;ll be adding buttons to our WordPress theme to allow visitors to easily submit the current article to social bookmarking sites like Delicious, Reddit, Digg, StumbleUpon, Twitter and Facebook. </p>
<p>All of these sites provide a simple way to create these buttons. For example, to add an article to Reddit, the URL is: <code>http://www.reddit.com/submit?url=THE-URL&amp;title=THE-TITLE</code>. As you can see, we just have to fill in the URL and the title for the submission.</p>
<p>I implemented this functionality into my recent &#8216;<a href="http://themeforest.net/item/magazine-otuts/38654" target="_blank">Magazine o&#8217;Tuts</a>&#8216; template:</p>
<p><img class="aligncenter size-full wp-image-2418" src="http://blog.themeforest.net/wp-content/uploads/2009/08/share.png" alt="share" width="570" height="64" /></p>
<h3>Getting Started</h3>
<p>We&#8217;ll be applying this functionality to the default WordPress theme, and will use the <a href="http://jwloh.deviantart.com/art/Social-me-90694011" target="_blank">Social.me</a> icons by jwloh. Download these icons and place the following icons from the 48&#215;48 folder into /wp-content/themes/default/images/</p>
<ul>
<li>delicious.png</li>
<li>digg.png</li>
<li>facebook.png</li>
<li>feed.png</li>
<li>reddit.png</li>
<li>stumbleupon.png</li>
<li>twitter.png</li>
</ul>
<p>The social bookmarks will be displayed on the single post page, between the content and the comments. So open the default theme&#8217;s single.php file and enter the following directly above the <code><?php comments_template(); ?></code> line:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;social&quot;</span>&gt;</span>
&nbsp;
 <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>Share This Post!<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h3</span>&gt;</span>
&nbsp;
 <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('rss2_url'); ?&gt;</span></span>&quot; title=&quot;Subscribe to our RSS feed.&quot;&gt;
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('template_directory'); ?&gt;</span></span>/images/feed.png&quot; alt=&quot;Subscribe to our RSS feed.&quot; /&gt;
 <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>Take a look at a post page on the blog, you should see the &#8216;Share This Post!&#8217; heading, followed by an RSS image linking to your RSS feed:</p>
<div class="tutorial_image"><img class="aligncenter size-full wp-image-2427" src="http://blog.themeforest.net/wp-content/uploads/2009/08/Picture-2.png" alt="Picture 2" width="196" height="99" /></div>
<h3>Twitter, Reddit and StumbleUpon</h3>
<p>Now we know everything&#8217;s in the right place, let&#8217;s create the first three social links; Twitter, Reddit and StumbleUpon:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://twitter.com/home/?status=&lt;?php the_title(); ?&gt;</span></span> : <span style="color: #009900;">&lt;?php the_permalink<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>&quot; title=&quot;Tweet this!&quot;&gt;
 <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('template_directory'); ?&gt;</span></span>/images/twitter.png&quot; alt=&quot;Tweet this!&quot; /&gt;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.stumbleupon.com/submit?url=&lt;?php the_permalink(); ?&gt;</span></span><span style="color: #ddbb00;">&amp;amp;</span>amp;title=<span style="color: #009900;">&lt;?php the_title<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>&quot; title=&quot;StumbleUpon.&quot;&gt;
 <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('template_directory'); ?&gt;</span></span>/images/stumbleupon.png&quot; alt=&quot;StumbleUpon&quot; /&gt;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.reddit.com/submit?url=&lt;?php the_permalink(); ?&gt;</span></span><span style="color: #ddbb00;">&amp;amp;</span>amp;title=<span style="color: #009900;">&lt;?php the_title<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>&quot; title=&quot;Vote on Reddit.&quot;&gt;
 <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('template_directory'); ?&gt;</span></span>/images/reddit.png&quot; alt=&quot;Reddit&quot; /&gt;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></div></div>

<p>The create a Twitter submission, we are using Twitter&#8217;s URL API. The link will direct the visitor to their Twitter profile and automatically fill in their &#8216;Status&#8217; textbox with the title of your blog post, followed by the URL.<br />
All the user has to do, is hit &#8216;Submit&#8217;.</p>
<p>Both StumbleUpon and Reddit&#8217;s links are very similar. The link requires the URL for the article, and a title. Each will then take the user to the site&#8217;s &#8216;Submit a Link&#8217; page, with all the fields automatically entered.</p>
<p>Take a look:</p>
<div class="tutorial_image"><img class="aligncenter size-full wp-image-2428" src="http://blog.themeforest.net/wp-content/uploads/2009/08/Picture-3.png" alt="Picture 3" width="256" height="100" /></div>
<h3>Digg, Delicious and Facebook</h3>
<p>Just like before, these are also very similar:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://digg.com/submit?phase=2&amp;amp;amp;url=&lt;?php the_permalink(); ?&gt;</span></span><span style="color: #ddbb00;">&amp;amp;</span>amp;title=<span style="color: #009900;">&lt;?php the_title<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>&quot; title=&quot;Digg this!&quot;&gt;
 <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('template_directory'); ?&gt;</span></span>/images/digg.png&quot; alt=&quot;Digg This!&quot; /&gt;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://del.icio.us/post?url=&lt;?php the_permalink(); ?&gt;</span></span><span style="color: #ddbb00;">&amp;amp;</span>amp;title=<span style="color: #009900;">&lt;?php the_title<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>&quot; title=&quot;Bookmark on Delicious.&quot;&gt;
 <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('template_directory'); ?&gt;</span></span>/images/delicious.png&quot; alt=&quot;Bookmark on Delicious&quot; /&gt;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.facebook.com/sharer.php?u=&lt;?php the_permalink();?&gt;</span></span><span style="color: #ddbb00;">&amp;amp;</span>amp;t=<span style="color: #009900;">&lt;?php the_title<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>&quot; title=&quot;Share on Facebook.&quot;&gt;
 <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('template_directory'); ?&gt;</span></span>/images/facebook.png&quot; alt=&quot;Share on Facebook&quot; id=&quot;sharethis-last&quot; /&gt;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></div></div>

<div class="tutorial_image"><img class="aligncenter size-full wp-image-2429" src="http://blog.themeforest.net/wp-content/uploads/2009/08/Picture-4.png" alt="Picture 4" width="409" height="96" /></div>
<h3>But, There&#8217;s One Problem</h3>
<p>Right now, all the links work, but there&#8217;s a slight problem with the Twitter one. We&#8217;re sending the whole URL to Twitter, which could be very long, and take the tweet over the 140 character limit.</p>
<p>The solution to this is to add in support for one of the many URL shorteners available. We&#8217;ll be using <a href="http://http://tinyurl.com/" target="_blank">TinyURL.com</a> as it is the easiest to incorporate into a site.</p>
<p>Inside the theme&#8217;s <code>functions.php</code> file, enter the following below the first line to create a <code>get_tiny_url()</code> function:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> get_tiny_url<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
 <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'curl_init'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://tinyurl.com/api-create.php?url='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #000088;">$ch</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_HEADER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$tinyurl</span> <span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #b1b100;">return</span> <span style="color: #000088;">$tinyurl</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
&nbsp;
 <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #666666; font-style: italic;"># cURL disabled on server; Can't shorten URL
</span>   <span style="color: #666666; font-style: italic;"># Return long URL instead.
</span>   <span style="color: #b1b100;">return</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>So we start by creating the function and accepting a URL as a parameter. On line 3, we check whether the server running the WordPress installation has cURL enabled &#8211; most will, but it&#8217;s good to have a fall-back to avoid any errors.</p>
<p>cURL is a PHP function used to interact with other websites. If cURL does exist, we send a request to TinyURL&#8217;s API. We provide it with the current URL, and it will return a TinyURL shortened version.</p>
<p>If cURL is disabled, we will have no choice but to use the full-length URL instead.</p>
<p>To implement this function, edit the Twitter link to:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://twitter.com/home/?status=&lt;?php the_title(); ?&gt;</span></span> : <span style="color: #009900;">&lt;?php echo get_tiny_url<span style="color: #66cc66;">&#40;</span>get_permalink<span style="color: #66cc66;">&#40;</span>$post-&gt;</span>ID)); ?&gt;&quot; title=&quot;Tweet this!&quot;&gt;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('template_directory'); ?&gt;</span></span>/images/twitter.png&quot; alt=&quot;Tweet this!&quot; /&gt;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></div></div>

<p>Finally, add these two styles to the bottom of style.css:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">.social {
 text-align: center;
}
&nbsp;
.social h3 {
 margin-bottom: 10px;
}</pre></div></div>

<p>Try it out! Click the Twitter button, and you should get a TinyURL (unless your server has cURL disabled).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.themeforest.net/wordpress/add-social-bookmarks-to-your-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>WordPress for Designers: Day 18</title>
		<link>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-18/</link>
		<comments>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-18/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 22:44:07 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Screencasts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[video tutorials]]></category>
		<category><![CDATA[word press]]></category>
		<category><![CDATA[wordpress for designers]]></category>

		<guid isPermaLink="false">http://blog.themeforest.net/?p=2407</guid>
		<description><![CDATA[I&#8217;ll bet that many of you have used or have been searching for a WordPress contact form to you for yourself or a client. Plugins can be great and very convenient, but your also relying on the plugin developer to make sure it works and does what you want. Today, we are going to build [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll bet that many of you have used or have been searching for a WordPress contact form to you for yourself or a client. Plugins can be great and very convenient, but your also relying on the plugin developer to make sure it works and does what you want. Today, we are going to build our contact page, complete with a working AJAX/php contact form! We will use the jQuery library to pull off the AJAX call and animation effects. It&#8217;s a day you won&#8217;t want to miss if you have ever wondered how to build an AJAX contact form with WordPress.</p>
<h3 style="clear: left;">Day 18: Creating an AJAX Contact Form</h3>
<p></p>
<div>
<embed src="http://blip.tv/play/grg3gZrJDwA" type="application/x-shockwave-flash" width="590" height="443" allowscriptaccess="always" allowfullscreen="true"></embed>
</div>
<h3>Resources you May Enjoy&#8230;</h3>
<ul>
<li><a href='http://docs.jquery.com/Ajax/jQuery.post#urldatacallbacktype'>jquery.post function</a></li>
<li><a href='http://us.php.net/filter_var'>PHP &#8211; filter_var()</a></li>
<li><a href='http://codex.wordpress.org/Function_Reference/wp_enqueue_script'>WP Codex- wp_enqueue_script()</a></li>
</ul>
<ul class="webroundup">
<li>Subscribe to the <a href="http://feedproxy.google.com/themeforest" title="ThemeForest RSS Feed">Theme Forest RSS Feed</a> and follow us on <a href="http://www.twitter.com/themeforest">Twitter</a>.</li>
</ul>
<p>
<script type="text/javascript"><!--digg_url = "post permalink (not digg url)"; // -->
</script><br />
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-18/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>WordPress for Designers: Day 16</title>
		<link>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-16/</link>
		<comments>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-16/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 07:42:12 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Screencasts]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.themeforest.net/?p=2117</guid>
		<description><![CDATA[Have you missed us? We&#8217;re back and ready for more action with our WordPress for Designers series! We are currently on day sixteen and each fay we are getting closer to completing our goal. Today, we go over creating and styling an entire page from scratch, including the sidebar. Furthermore, we will learn how to [...]]]></description>
			<content:encoded><![CDATA[<p>Have you missed us? We&#8217;re back and ready for more action with our WordPress for Designers series! We are currently on day sixteen and each fay we are getting closer to completing our goal. Today, we go over creating and styling an entire page from scratch, including the sidebar. Furthermore, we will learn how to use multiple custom fields and text area inputs to take full advantage of the power of WordPress from the backend admin panel. Servers on, text editor running, Hanson playing on iTunes, let&#8217;s go!</p>
<h3 style="clear: left;">Day 16</h3>
<p></p>
<div>
<embed src="http://blip.tv/play/grg3gY%2BqXAA" type="application/x-shockwave-flash" width="590" height="443" allowscriptaccess="always" allowfullscreen="true"></embed>
</div>
<h3>Resources you may enjoy:</h3>
<ul>
<li><a href='http://codex.wordpress.org/Using_Custom_Fields'>Wp Codex: Using Custom Fields</a></li>
<li><a href='http://vandelaydesign.com/blog/wordpress/custom-fields/'>20 tutorials and resources for working with custom fields</a></li>
</ul>
<ul class="webroundup">
<li>Subscribe to the <a href="http://feedproxy.google.com/themeforest" title="ThemeForest RSS Feed">Theme Forest RSS Feed</a> and follow us on <a href="http://www.twitter.com/themeforest">Twitter</a>.</li>
</ul>
<p>
<script type="text/javascript"><!--digg_url = "post permalink (not digg url)"; // -->
</script><br />
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-16/feed/</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
		<item>
		<title>WordPress for Designers: Day 15</title>
		<link>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-15/</link>
		<comments>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-15/#comments</comments>
		<pubDate>Tue, 26 May 2009 08:36:32 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Screencasts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress for designers]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://blog.themeforest.net/?p=1900</guid>
		<description><![CDATA[We&#8217;re back with our Wordpress for Designers series! Moving on with our &#8216;Paper Business&#8217; theme, it&#8217;s time to bring in the slider. Today, we will build and implement a jQuery slider plugin into WordPress, style it properly, and discuss how we will pull out the information from the admin panel. Let&#8217;s get our slide on!
Day [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re back with our Wordpress for Designers series! Moving on with our &#8216;Paper Business&#8217; theme, it&#8217;s time to bring in the slider. Today, we will build and implement a jQuery slider plugin into WordPress, style it properly, and discuss how we will pull out the information from the admin panel. Let&#8217;s get our slide on!</p>
<h3 style="clear: left;">Day 15: The Slider</h3>
<p></p>
<div>
<embed src="http://blip.tv/play/grg3gYS_VwA" type="application/x-shockwave-flash" width="590" height="443" allowscriptaccess="always" allowfullscreen="true"></embed>
</div>
<h3>Resources You May Enjoy</h3>
<ul>
<li><a href='http://github.com/nathansearles/loopedSlider/tree/master' title='Looped Slider'>Looped Slider Plugin</a></li>
<li><a href='http://code.google.com/apis/ajaxlibs/' title='Google AJAX Libs'>Google AJAX Libraries</a></li>
</ul>
<h3>Custom queries coming!</h3>
<p>On day 16 of our series, we will take the slider we have created and learn how to pull out the information the user has entered. No need for the end user to hard code anything, stay tuned!</p>
<ul class="webroundup">
<li>Subscribe to the <a href="http://feedproxy.google.com/themeforest" title="ThemeForest RSS Feed">Theme Forest RSS Feed</a>.</li>
</ul>
<p>
<script type="text/javascript"><!--digg_url = "post permalink (not digg url)"; // -->
</script><br />
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-15/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>9 Useful Snippets for Your WordPress Functions</title>
		<link>http://blog.themeforest.net/wordpress/9-useful-snippets-for-your-wordpress-functions/</link>
		<comments>http://blog.themeforest.net/wordpress/9-useful-snippets-for-your-wordpress-functions/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 15:18:57 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.themeforest.net/?p=1770</guid>
		<description><![CDATA[Seeing as how the WordPress category is one of the most successful and popular categories on Themeforest, it seems fit to cover some useful tips on the topic. When it comes to WordPress, many designers seem to be scared off or uninterested in the functions.php file, when really it can be one of the most [...]]]></description>
			<content:encoded><![CDATA[<p>Seeing as how the WordPress category is one of the most successful and popular categories on Themeforest, it seems fit to cover some useful tips on the topic. When it comes to WordPress, many designers seem to be scared off or uninterested in the functions.php file, when really it can be one of the most useful files for your WordPress theme. Today, we will review nine superb code snippets you can use to enhance your theme.</p>
<p>One of the biggest benefits of the functions.php file, is that it allows us some abstraction from our regular theme files. Instead of hard coding information or queries into, say, our single.php file, we can use our functions.php file instead to alter it. Later on down the road, if we need to make any changes, we can simply edit one file instead of many.</p>
<h3>1. Make Your Theme Widget Ready</h3>
<p>A widget ready sidebar could almost be consider essential for any Wordpress theme. Widgets allow the end user to easily and quickly customize specific content on their WordPress theme. Luckily for us, making our sidebar widget ready is very simple. First, add the below code to your functions.php file:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li class=&quot;widget&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2 class=&quot;widgettitle&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h3&gt;'</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The code above registers our sidebar widgets and formats them with some basic HTML markup, this allows the designer to easily use those elements to style the widgets and page as they see fit. Now, all we need to do is add a conditional php statement in our sidebar, like so:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
		<span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;!--non widget and sidebar information go here--&gt;
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Our theme is now widget ready, if there are no widgets enabled, the default sidebar information will be displayed. If the widgets are enabled by the user, then the widgets will be displayed along with any markup that we declared in our functions.php file.</p>
<h3>2. Add Multiple Sidebar Widgets</h3>
<p>What if we wanted to have multiple sidebars or sections for other widgets to be added? This is very similar to the code above, however, we need to let WordPress know we are going to register multiple sidebars. We can achieve this easily by doing something like the below snippet:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
			register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'-ColumnOne'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li class=&quot;widget&quot;&gt;'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2 class=&quot;widgettitle&quot;&gt;'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h3&gt;'</span><span style="color: #339933;">,</span>
		<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'-ColumnTwo'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li class=&quot;widget&quot;&gt;'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2 class=&quot;widgettitle&quot;&gt;'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h3&gt;'</span><span style="color: #339933;">,</span>
		<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>The only other thing we would need to do is add our additional conditional statement like we did in Step 1:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'-ColumnOne'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;!--Default sidebar info here--&gt;
			&lt;!--do the same thing for -ColumnTwo --&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<div class='tutorial_image'><img src='http://themeforest.s3.amazonaws.com/72_snippets/widgets.jpg' alt='Widgets Screenshot' /></div>
<h4>Additional Resources:</h4>
<ul>
<li><a href='http://codex.wordpress.org/WordPress_Widgets_Api/dynamic_sidebar'>Codex: WordPress Widgets and Dynamic Sidebars</a></li>
<li><a href='http://www.quickonlinetips.com/archives/2007/11/how-to-create-multiple-dynamic-sidebars-for-wordpress-widgets/'>Creating multiple sidebars in WordPress</a></li>
</ul>
<h3>3. Promote Your RSS Feed After Individual Articles</h3>
<p>You may have noticed that many blogs have a little bit of self promotion that occurs at the end of their articles. Such promotion usually contains things like encouraging you to subscribe to RSS feeds or maybe a list of related posts. Using our functions.php file, we can automatically append a little bit of self promotion onto the end of our individual articles.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
		<span style="color: #000000; font-weight: bold;">function</span> promote_blog<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;div class='promote'&gt;
			&lt;h3&gt;Enjoy this article?&lt;/h3&gt;
			&lt;p&gt;Consider &lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rss2_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; title=&quot;Subscribe via RSS&quot;&gt;subscribing to our RSS feed!&lt;/a&gt;&lt;/p&gt;
		&lt;/div&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span>
		add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'promote_blog'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>You could easily add any additional classes or divs you need and style away. Below is a great example of promoting ones website after the individual article using WordPress by <a href='http://wpengineer.com'>WP Engineer</a>:</p>
<div class='tutorial_image'><a href='http://wpengineer.com'><img src='http://themeforest.s3.amazonaws.com/72_snippets/promote.jpg' alt='Promotion_Screenshot' /></a></div>
<h3>4. Enable Adsense Shortcode</h3>
<p>This tip comes from the WordPress expert, Jean-Baptiste Jung, from <a href='http://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/'>his article on Smashing Magazine</a>. Basically, wordpress allows developers and theme creators to write functions that allow the user to use shortcode, i.e., [adsense]. This kind of &#8216;pseudo&#8217; code makes it easy for end users to insert elements where they would like without knowing about coding.</p>
<p>Knowing that we can create shortcodes, we can create one to insert a Google Adsense ad anywhere in theme theme.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> showads<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>  
     	<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'&lt;div id=&quot;adsense&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--  
     	google_ad_client = &quot;pub-XXXXXXXXXXXXXX&quot;;  
    	 google_ad_slot = &quot;4668915978&quot;;  
    	 google_ad_width = 468;  
    	 google_ad_height = 60;  
    	 //--&gt;  
		 &lt;/script&gt;  
&nbsp;
		 &lt;script type=&quot;text/javascript&quot;  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;  
 		 &lt;/script&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>  
 <span style="color: #009900;">&#125;</span>  
&nbsp;
 add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'adsense'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'showads'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Now whenever you would like to add your adsense code in your articles or pages, just simply insert [adsense].</p>
<p><a href='http://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/'>Article Source</a></p>
<h3>5. Add a &#8216;Send to Twitter&#8217; Link With TinyURLs in the Status</h3>
<p>If you&#8217;re on Twitter and want to give users the option of sending the current article to their status with your link (in the form of a TinyURL) and post title, you can add this custom function to your functions.php file. As noted, credit to my friend <a href='http://briancray.com'>Brian Cray</a> for the one line TinyURL solution:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dd_tiny_tweet_init'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> dd_tiny_tweet_init<span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">//Thanks to http://briancray.com for the one line $tiny_tweet_url solution. </span>
		<span style="color: #000088;">$tiny_tweet_url</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'http://tinyurl.com/api-create.php?url='</span> <span style="color: #339933;">.</span> <span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'http://'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//Grab the title of the current post</span>
		<span style="color: #000088;">$tiny_tweet_title</span> <span style="color: #339933;">=</span> get_the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//Reduce title to 100 characters</span>
		<span style="color: #000088;">$tiny_tweet_title</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$tiny_tweet_title</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//Append an ellipsis to the end</span>
		<span style="color: #000088;">$tiny_tweet_title</span> <span style="color: #339933;">.=</span><span style="color: #0000ff;">'...'</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//Set up the status and url to send to twitter</span>
		<span style="color: #000088;">$tiny_tweet_status_url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://twitter.com/home?status=Currently reading &quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$tiny_tweet_title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$tiny_tweet_url</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">//If the current page is an individual article, promote it with a Twitter link!</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span>  <span style="color: #0000ff;">'&lt;div class=\'tiny_tweet\'&gt;Enjoy this post? &lt;a href=\''</span><span style="color: #339933;">.</span><span style="color: #000088;">$tiny_tweet_status_url</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\'&gt;The give it a tweet!&lt;/a&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_content'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dd_tiny_tweet_init'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Note you will need to make sure your host supports file_get_contents() for this to work. Below is a screenshot of the basic output:</p>
<div class='tutorial_image'><img src='http://themeforest.s3.amazonaws.com/72_snippets/send_to_twitter.jpg' alt='SendToTwitterScreenshot' /></div>
<p>The comments in the code above should explain most of it. When a user views an individual article, they can click on the link to send the article to their current Twitter status. If our article was named &#8216;Hello World&#8217;, then the status would read:</p>
<blockquote><p>Currently reading &#8216;Hello World&#8230;&#8217; http://tinyurl.com/5ng3n8</p></blockquote>
<p>Customize and style to your liking and you have a fully functioning send to Twitter link!</p>
<h3>6. Disable Commenting on Posts Older Than 1 Month</h3>
<p>Sometimes blog conversations can get a little off topic and out of hand to say the least. If you wish to keep things relative and up to date on the latest discussions, you cal close comments automatically after one month. This handy tip comes to us from <a href='http://forthelose.org/15-useful-wordpress-tips-to-make-your-theme-even-better'>forthelose</a> and looks like so:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">function</span> close_comments<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$posts</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$posts</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$posts</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_date_gmt</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #009900;">&#40;</span> <span style="color: #cc66cc;">30</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">24</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">60</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">60</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$posts</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_status</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'closed'</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$posts</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ping_status</span>    <span style="color: #339933;">=</span> <span style="color: #0000ff;">'closed'</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$posts</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'the_posts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'close_comments'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>You can find a nice example of this on the website of <a href='http://elliotjaystocks.com/blog'>Elliot Jay Stocks</a>:</p>
<div class='tutorial_image'><img src='http://themeforest.s3.amazonaws.com/72_snippets/close_comments.jpg' alt='ClosedComments' /></div>
<h3>7. Add a PayPal Donation Link</h3>
<p>Perhaps you run a website or blog that likes to give away free tutorials, images, and/or code and you would like to offer your readers a way to give back. Using a custom PayPal url and function, we can automatically create a shortcut code to create a donation link. All credit to <a href='http://blue-anvil.com/archives/8-fun-useful-shortcode-functions-for-wordpress'>Blue Anvil</a> for this wonderful snippet:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> donate_shortcode<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$atts</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   			 <span style="color: #990000;">extract</span><span style="color: #009900;">&#40;</span>shortcode_atts<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
       			 <span style="color: #0000ff;">'text'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Make a donation'</span><span style="color: #339933;">,</span>
       			 <span style="color: #0000ff;">'account'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'REPLACE ME'</span><span style="color: #339933;">,</span>
       			 <span style="color: #0000ff;">'for'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
  			  <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$atts</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   			 <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
&nbsp;
    		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$for</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$for</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;+&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   			<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'&lt;a class=&quot;donateLink&quot; href=&quot;https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business='</span><span style="color: #339933;">.</span><span style="color: #000088;">$account</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;item_name=Donation+for+'</span><span style="color: #339933;">.</span><span style="color: #000088;">$for</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$text</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'donate'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'donate_shortcode'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Next, just replace the &#8216;text&#8217; and &#8216;account&#8217; values with your own within this function. Now all you need to do is add the shortcode wherever you like in your post, i.e. [donate]</p>
<div class='tutorial_image'><a href='http://blue-anvil.com/archives/8-fun-useful-shortcode-functions-for-wordpress'><img src='http://themeforest.s3.amazonaws.com/72_snippets/paypal_donate.jpg' alt='PayPalDonateScreenshot' /></a></div>
<h3>8. Change the Default Gravatar</h3>
<p>Our next tip comes to us from <a href='http://www.catswhocode.com/blog/10-tricks-to-make-your-wordpress-theme-stand-out'>CatsWhoCode</a> and is a simple option to change the default WordPress gravatar with one of your own. This is a fantastic way to further brand yourself and your website.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fb_addgravatar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> fb_addgravatar<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$avatar_defaults</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #000088;">$myavatar</span> <span style="color: #339933;">=</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/gravatar.gif'</span><span style="color: #339933;">;</span>
        <span style="color: #666666; font-style: italic;">//default avatar below</span>
		<span style="color: #000088;">$avatar_defaults</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$myavatar</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Exciting new gravtar'</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$avatar_defaults</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'avatar_defaults'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fb_addgravatar'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>In the above code, change &#8216;Exciting new gravatar&#8217; and point it to the filename of your new Gravatar and you&#8217;re done!</p>
<h3>9. Changing Your WordPress Feed Links Without .htaccess</h3>
<p>For our last function we will have a look at a snippet written by WordPress Guru, <a href='http://justintadlock.com/archives/2008/12/15/how-to-change-your-feed-links-without-using-htaccess'>Justin Tadlock</a>. Though there are many plugins that can do this for us, it is quite easy to pull off. For the snippet we will assume you would like the links to point to a feedburner account.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> custom_feed_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$output</span><span style="color: #339933;">,</span> <span style="color: #000088;">$feed</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000088;">$feed_url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://feeds.feedburner.com/justintadlock'</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$feed_array</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rss'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$feed_url</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'rss2'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$feed_url</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'atom'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$feed_url</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'rdf'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$feed_url</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'comments_rss2'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$feed_array</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$feed</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$feed_url</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$feed_array</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$feed</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> other_feed_links<span style="color: #009900;">&#40;</span><span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://feeds.feedburner.com/justintadlock'</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$link</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
	<span style="color: #666666; font-style: italic;">//Add our functions to the specific filters</span>
	add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'feed_link'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'custom_feed_link'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category_feed_link'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'other_feed_links'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'author_feed_link'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'other_feed_links'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'tag_feed_link'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'other_feed_links'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'search_feed_link'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'other_feed_links'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Change the $feed_url variable to your current feed and go grab some lunch!</p>
<div class='tutorial_image'><img src='http://themeforest.s3.amazonaws.com/72_snippets/feed_burner.jpg' alt='FeedBurnerScreenshot' /></div>
<p>Have any custom functions or code snippets you like to use? Share them with us in the comments section below, and don&#8217;t forget to check out our <a href='http://blog.themeforest.net/wordpress/wordpress-for-designers-day-14/'>WordPress for Designers series</a> we are currently running. Happy coding!</p>
<ul class="webroundup">
<li>Please subscribe to the <a href="http://feedproxy.google.com/themeforest" title="ThemeForest RSS Feed">Theme Forest RSS Feed</a>, and follow us on <a href="http://twitter.com/themeforest">Twitter</a>.</li>
</ul>
<p>
<script type="text/javascript"><!--digg_url = "post permalink (not digg url)"; // -->
</script><br />
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.themeforest.net/wordpress/9-useful-snippets-for-your-wordpress-functions/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>WordPress for Designers: Day 14</title>
		<link>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-14/</link>
		<comments>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-14/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 09:30:38 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Screencasts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[wordpress for designers]]></category>

		<guid isPermaLink="false">http://blog.themeforest.net/?p=1763</guid>
		<description><![CDATA[Moving full steam ahead with our WordPress series, it&#8217;s time to finish our static home page that we have been creating. Today, we will utilize all kinds of cool WordPress tricks and functions to bring our home page together. Get ready for a day full of custom fields, WordPress queries, and special functions!
Day 14




Resources you [...]]]></description>
			<content:encoded><![CDATA[<p>Moving full steam ahead with our WordPress series, it&#8217;s time to finish our static home page that we have been creating. Today, we will utilize all kinds of cool WordPress tricks and functions to bring our home page together. Get ready for a day full of custom fields, WordPress queries, and special functions!</p>
<h3 style="clear: left;">Day 14</h3>
<p></p>
<div>
<embed src="http://blip.tv/play/grg3_ZJaAA" type="application/x-shockwave-flash" width="590" height="443" allowscriptaccess="always" allowfullscreen="true"></embed>
</div>
<h3>Resources you may find useful</h3>
<ul>
<li><a href='http://codex.wordpress.org/Function_Reference/WP_Query' title='WP_Query'>WordPress Codex: WP_Query()</a></li>
<li><a href='http://wpengineer.com/quick-tipps-for-wordpress-query/' title='Tips for Query'>Quick tips for WordPress query</a></li>
<li><a href='http://codex.wordpress.org/Using_Custom_Fields' title='Custom Fields'>WordPress Codex: Using custom fields</a></li>
<li><a href='http://codex.wordpress.org/Template_Tags/the_content_rss' title='Content RSS'>WordPress Codex: the_content_rss()</a></li>
<li><a href='http://codex.wordpress.org/Template_Tags/wp_list_pages' title='wp_list_pages'>WordPress Codex: wp_list_pages()</a></li>
</ul>
<ul class="webroundup">
<li>Subscribe to the <a href="http://feedproxy.google.com/themeforest" title="ThemeForest RSS Feed">Theme Forest RSS Feed</a>.</li>
</ul>
<p>
<script type="text/javascript"><!--digg_url = "post permalink (not digg url)"; // -->
</script><br />
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-14/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
		<item>
		<title>WordPress for Designers: Day 11</title>
		<link>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-11/</link>
		<comments>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-11/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 16:37:51 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Screencasts]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.themeforest.net/?p=1642</guid>
		<description><![CDATA[After a short break, we are back! Today is a big day as we continue on with our &#8220;WordPress for Designers&#8221; series and introduce the .psd that we will be converting. Join us as we get to know the ins and outs of the design we are working with and the basics of getting our [...]]]></description>
			<content:encoded><![CDATA[<p>After a short break, we are back! Today is a big day as we continue on with our &#8220;WordPress for Designers&#8221; series and introduce the .psd that we will be converting. Join us as we get to know the ins and outs of the design we are working with and the basics of getting our images out of the .psd and ready for the web.</p>
<h3 style="clear: left;">Day 11: The PSD </h3>
<p></p>
<div class="tutorial_image">
<embed src="http://blip.tv/play/grg39+QVAA" type="application/x-shockwave-flash" width="590" height="413" allowscriptaccess="always" allowfullscreen="true"></embed>
</div>
<h3>PSD Links and Sources</h3>
<p>A special thanks to <a href='http://themeforest.net/user/joefrey'>Joefrey Mahusay</a> for letting us work with his .psd theme to continue on our Wordpress series!</p>
<ul>
<li><a href='http://themeforest.net/item/paper-business/25565'>Paper Business .psd</a></li>
<li><a href='http://themeforest.net/theme_previews/25565-paper-business'>Paper Business Screenshots</a></li>
</ul>
<h3>Please Note</h3>
<p>Please take some time to answer the questions asked towards the end of the screencast above. Would you like to go from slicing our images into an HTML theme and then into Wordpress? Or would you like to dive straight from slicing into Wordpress? In addition, any comments or suggestions are always welcome and wanted!</p>
<h3>Stay Tuned!</h3>
<p>In day 12 we will get familiar with slicing our images and splitting them up as we prepare to use them in our final Wordpress theme!</p>
<ul class="webroundup">
<li>Subscribe to the <a href="http://feedproxy.google.com/themeforest" title="ThemeForest RSS Feed">Theme Forest RSS Feed</a>.</li>
</ul>
<p>
<script type="text/javascript"><!--digg_url = "post permalink (not digg url)"; // -->
</script><br />
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-11/feed/</wfw:commentRss>
		<slash:comments>62</slash:comments>
		</item>
		<item>
		<title>WordPress for Designers: Day 10</title>
		<link>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-10/</link>
		<comments>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-10/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 20:22:29 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Screencasts]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.themeforest.net/?p=1550</guid>
		<description><![CDATA[While we sort out the final touches on the .psd file, we are going to spend some time today to have a little fun with Wordpress and also create a very simple Wordpress plugin. If you are interested in learning more about using RSS feeds with wordpress and would like to learn the basics of [...]]]></description>
			<content:encoded><![CDATA[<p>While we sort out the final touches on the .psd file, we are going to spend some time today to have a little fun with Wordpress and also create a very simple Wordpress plugin. If you are interested in learning more about using RSS feeds with wordpress and would like to learn the basics of creating a plugin, then today is the day for you!</p>
<div class="source">
<a href="http://themeforest.s3.amazonaws.com/41_wordPressForDesigners/Wordpressforest10.zip"><img src="http://net.tutsplus.com/wp-content/themes/nettuts/site_images/button_src_nm.jpg" alt="Download the Source Code" /></a>
</div>
<h3 style="clear: left;">Day 10: Your First Plugin </h3>
<p></p>
<div class="tutorial_image">
<embed src="http://blip.tv/play/grg38+8KAA" type="application/x-shockwave-flash" width="590" height="413" allowscriptaccess="always" allowfullscreen="true"></embed>
</div>
<p>
<em>Be sure to click on the &#8220;Full Screen Toggle&#8221; to move to full screen. </em>
</p>
<h3>Resources You May Enjoy</h3>
<ul>
<li><a href='http://codex.wordpress.org/Plugin_API' title='Plugin API'>WP Codex: Plugin API</a></li>
<li><a href='http://codex.wordpress.org/Plugin_API/Filter_Reference' title='Filter Ref'>WP Codex: Filter Reference</a></li>
<li><a href='http://feedburner.com' title='Feedburner Home'>Feedburner Home Page</a></li>
</ul>
<h3>PSD is Coming Soon!</h3>
<p>I know you have all been waiting for us to get to the .psd and I am excited to say we are nearly there! Stay with us and be sure to add any questions or suggestions you have in the comments section below!</p>
<h3>Please Note</h3>
<p>If you had any issues with the last series and the Wordpress 2.7 comments template, please watch the beginning of this screencast and read all of the comments from that day. There were a few mistakes in the source code all of which have been resolved in the comments and this screencast. The source code above should contain the fixed comments.php file as well. Thanks to all who helped find and clear up any bugs!</p>
<h3>Help Us!</h3>
<p>
<em>We put a great deal of effort into bringing you these videos free of charge. If they have helped, we would greatly appreciate a submission to your favorite social networking site. Even a <a href="http://www.twitter.com/NETTUTS">retweet</a> will help! It allows us to continue providing you with top quality content. Thanks again. <img src='http://blog.themeforest.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </em>
</p>
<ul class="webroundup">
<li>Subscribe to the <a href="http://feedproxy.google.com/themeforest" title="ThemeForest RSS Feed">Theme Forest RSS Feed</a>.</li>
</ul>
<p>
<script type="text/javascript"><!--digg_url = "post permalink (not digg url)"; // -->
</script><br />
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-10/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>WordPress for Designers: Day 9</title>
		<link>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-9/</link>
		<comments>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-9/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 03:07:42 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Screencasts]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.themeforest.net/?p=1482</guid>
		<description><![CDATA[With the release of Wordpress 2.7 came some awesome new features to the comment section, including threaded comments. Today we will pick up where we left off in Day 8 of the series and continue tweaking our custom comments.php file to perfection. Not only will we cover threaded comments, but how to paginate comments as [...]]]></description>
			<content:encoded><![CDATA[<p>With the release of Wordpress 2.7 came some awesome new features to the comment section, including threaded comments. Today we will pick up where we left off in Day 8 of the series and continue tweaking our custom comments.php file to perfection. Not only will we cover threaded comments, but how to paginate comments as well! It&#8217;s a screencast full of comment enhancements and features, so get ready and let&#8217;s do this!</p>
<div class="source">
<a href="http://themeforest.s3.amazonaws.com/41_wordPressForDesigners/Wordpressforest9.zip"><img src="http://net.tutsplus.com/wp-content/themes/nettuts/site_images/button_src_nm.jpg" alt="Download the Source Code" /></a>
</div>
<h3 style="clear: left;">Day 9: Tweaking the Comments </h3>
<p></p>
<div class="tutorial_image">
<embed src="http://blip.tv/play/grg38PcNAA" type="application/x-shockwave-flash" width="590" height="413" allowscriptaccess="always" allowfullscreen="true"></embed>
</div>
<p>
<em>Be sure to click on the &#8220;Full Screen Toggle&#8221; to move to full screen. </em>
</p>
<h3>Resources You May Enjoy</h3>
<ul>
<li><a href='http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7/Enhanced_Comment_Display'>Codex: Migrating plugins and themes to 2.7</a></li>
<li><a href='http://codex.wordpress.org/Function_Reference/paginate_comments_links'>Codex:paginate_comments_links</a></li>
<li><a href='http://codex.wordpress.org/Template_Tags/wp_list_comments'>Codex: wp_list_comments</a></li>
</ul>
<h3>PSD is Coming Soon!</h3>
<p>I know you have all been waiting for us to get to the .psd and I am excited to say we are nearly there! Stay with us and be sure to add any questions or suggestions you have in the comments section below!</p>
<h3>Feedback?</h3>
<p>I encourage all of you to keep up the fantastic feedback and continue to ask any questions you may have. In addition, if you have any suggestions or would like to see a certain tip or trick with Wordpress, be sure to let us know. We are here to help! Remember that we will be going over more of the comments file in Day 9.</p>
<h3>Help Us!</h3>
<p>
<em>We put a great deal of effort into bringing you these videos free of charge. If they have helped, we would greatly appreciate a submission to your favorite social networking site. Even a <a href="http://www.twitter.com/NETTUTS">retweet</a> will help! It allows us to continue providing you with top quality content. Thanks again. <img src='http://blog.themeforest.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </em>
</p>
<ul class="webroundup">
<li>Subscribe to the <a href="http://feedproxy.google.com/themeforest" title="ThemeForest RSS Feed">Theme Forest RSS Feed</a>.</li>
</ul>
<p>
<script type="text/javascript"><!--digg_url = "post permalink (not digg url)"; // -->
</script><br />
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-9/feed/</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
		<item>
		<title>WordPress for Designers: Day 8</title>
		<link>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-8/</link>
		<comments>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-8/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 16:20:19 +0000</pubDate>
		<dc:creator>Drew Douglass</dc:creator>
				<category><![CDATA[Screencasts]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.themeforest.net/?p=1409</guid>
		<description><![CDATA[Today it&#8217;s all about the comments! So many of you have been requesting that we cover the comments.php page, so today we will do just that. Throughout this and the next series we will cover all the ins and outs of dealing with comments in Wordpress, including gravatars and threaded comments. This is one of [...]]]></description>
			<content:encoded><![CDATA[<p>Today it&#8217;s all about the comments! So many of you have been requesting that we cover the comments.php page, so today we will do just that. Throughout this and the next series we will cover all the ins and outs of dealing with comments in Wordpress, including gravatars and threaded comments. This is one of the longer screencasts we have done so get comfortable, start your servers, and lets start day 8!</p>
<div class="source">
<a href="http://themeforest.s3.amazonaws.com/41_wordPressForDesigners/day8.zip"><img src="http://net.tutsplus.com/wp-content/themes/nettuts/site_images/button_src_nm.jpg" alt="Download the Source Code" /></a>
</div>
<h3 style="clear: left;">Day 8: Comments</h3>
<p></p>
<div class="tutorial_image">
<embed src="http://blip.tv/play/grg378cLAA" type="application/x-shockwave-flash" width="590" height="413" allowscriptaccess="always" allowfullscreen="true"></embed>
</div>
<p>
<em>Be sure to click on the &#8220;Full Screen Toggle&#8221; to move to full screen. </em>
</p>
<h3>Resources You May Find Helpful</h3>
<ul>
<li><a href='http://net.tutsplus.com/news/unraveling-the-secrets-of-wordpress-commentsphp-file/'>Unraveling the secrets to comments.php</a></li>
<li><a href='http://codex.wordpress.org/Using_Gravatars'>Codex:Using gravatars</a></li>
<li><a href='http://designm.ag/resources/tutorials-for-wordpress-comments/'>Top 10 tutorials for working with Wordpress comments</a></li>
</ul>
<h3>Feedback?</h3>
<p>I encourage all of you to keep up the fantastic feedback and continue to ask any questions you may have. In addition, if you have any suggestions or would like to see a certain tip or trick with Wordpress, be sure to let us know. We are here to help! Remember that we will be going over more of the comments file in Day 9.</p>
<h3>Help Us!</h3>
<p>
<em>We put a great deal of effort into bringing you these videos free of charge. If they have helped, we would greatly appreciate a submission to your favorite social networking site. Even a <a href="http://www.twitter.com/NETTUTS">retweet</a> will help! It allows us to continue providing you with top quality content. Thanks again. <img src='http://blog.themeforest.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </em>
</p>
<ul class="webroundup">
<li>Subscribe to the <a href="http://feedproxy.google.com/themeforest" title="ThemeForest RSS Feed">Theme Forest RSS Feed</a>.</li>
</ul>
<p>
<script type="text/javascript"><!--digg_url = "post permalink (not digg url)"; // -->
</script><br />
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.themeforest.net/wordpress/wordpress-for-designers-day-8/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
	</channel>
</rss>
