<?xml version="1.0" encoding="UTF-8"?>
<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:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Fusedthought Studio » Tech</title>
	
	<link>http://fusedthought.com</link>
	<description>Where thoughts become reality</description>
	<lastBuildDate>Sat, 06 Mar 2010 05:02:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.fusedthought.com/FusedthoughtTech" /><feedburner:info uri="fusedthoughttech" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Code Release: Class.FTShorten</title>
		<link>http://feeds.fusedthought.com/~r/FusedthoughtTech/~3/nbRQbLkj5_E/</link>
		<comments>http://fusedthought.com/archives/code-release-class-ftshorten/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 15:51:51 +0000</pubDate>
		<dc:creator>Gerald</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Dev Log]]></category>
		<category><![CDATA[Released for Download]]></category>
		<category><![CDATA[WordPress-Related]]></category>

		<guid isPermaLink="false">http://fusedthought.com/?p=2692</guid>
		<description><![CDATA[With the latest update of my URL Shortener Core Plugin  to version 2.0 as well as the addon module to version 0.2, I made a overhaul to the coding, providing a unified class for processing the Short URL request.
Class.FTShorten
The new component of the core plugin. It contains the functions required to request a Short URL [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://lh6.ggpht.com/_t0tF5SVoX88/SuHevGWw_rI/AAAAAAAAAjQ/0ZLC1w8WcXI/s144/URLShortenerLogo.jpg" alt="" />With the latest update of my URL Shortener Core Plugin  to version 2.0 as well as the addon module to version 0.2, I made a overhaul to the coding, providing a unified class for processing the Short URL request.</p>
<h3>Class.FTShorten</h3>
<p>The new component of the core plugin. It contains the functions required to request a Short URL from a service provider. I am separating this class into a separate development branch which will allow me to update independently of the core URL Shortener Plugin. As such it will get its own page as well.. For more information, take a look at the <a href="/downloads/class-ftshorten">FTShorten Class information page</a>. The Class will also be available for download there as well.</p>
<h3>URL Shortener WordPress Plugin</h3>
<p>Version 2.0 of the, incorporating the most number of changes a version bump has to date. Other than integrating the new class as mentioned above, it includes several bugfix as well. Check out the <a href="/downloads/url-shortener-wordpress-plugin/">URL Shortener download page</a> for more information.</p>
<h3>Addon Module</h3>
<p>Likewise, the addon module also received an update, introducing more URL Shortening services for testing and also a structural change similar to the core plugin. There has been a version labeling change as well, switching to a version tree independent of the core plugin. The latest addon module is now 0.2 instead of being labeled 2.0-Addon. Check out the <a href="/downloads/addon-module-for-url-shortener-wordpress-plugin/">Addon Module download page</a> for more information as well.</p>
<div class="feedflare">
<a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=nbRQbLkj5_E:SQ4uB-ASheU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=nbRQbLkj5_E:SQ4uB-ASheU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=nbRQbLkj5_E:SQ4uB-ASheU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=nbRQbLkj5_E:SQ4uB-ASheU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=nbRQbLkj5_E:SQ4uB-ASheU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=nbRQbLkj5_E:SQ4uB-ASheU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=nbRQbLkj5_E:SQ4uB-ASheU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=nbRQbLkj5_E:SQ4uB-ASheU:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/FusedthoughtTech/~4/nbRQbLkj5_E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fusedthought.com/archives/code-release-class-ftshorten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://fusedthought.com/archives/code-release-class-ftshorten/</feedburner:origLink></item>
		<item>
		<title>WordPress Gets Upgraded to 2.9</title>
		<link>http://feeds.fusedthought.com/~r/FusedthoughtTech/~3/U1J7WBuKEW0/</link>
		<comments>http://fusedthought.com/archives/wordpress-gets-upgraded-to-2-9/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 07:21:26 +0000</pubDate>
		<dc:creator>Gerald</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[WordPress-Related]]></category>

		<guid isPermaLink="false">http://fusedthought.com/?p=2618</guid>
		<description><![CDATA[
Automattic has released an upgrade to it&#8217;s popular WordPress blogging platform.
Version 2.9, also known as  “Carmen” includes quite a notable number of additions like oembed support, batch plugin updating, a simple image editor as well as a &#8220;Windows recycle bin&#8221;-like feature for posts.
Under-the-hood improvements are also abound in this upgrade, with over 500 tickets [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://lh5.ggpht.com/_t0tF5SVoX88/Syx_iWV7fpI/AAAAAAAAAuY/xgrGVKaJrLM/s288/WordPress29.png" alt="" /></p>
<p>Automattic has released an upgrade to it&#8217;s popular WordPress blogging platform.</p>
<p><a href="http://wordpress.org/download/">Version 2.9</a>, also known as  “Carmen” includes quite a notable number of additions like <a href="http://codex.wordpress.org/Embeds">oembed</a> support, batch plugin updating, a simple image editor as well as a &#8220;Windows recycle bin&#8221;-like feature for posts.</p>
<p>Under-the-hood improvements are also abound in this upgrade, with over 500 tickets and bugs addressed (according to the <a href="http://wordpress.org/development/2009/12/wordpress-2-9/">blog post</a> on WordPress.org by founder Matt Mullenweg). It is also great to see the official support for rel=&#8221;canonical&#8221; as well as an automatic database repair feature.</p>
<p>Testing it out, the current 2.9 upgrade has been as smooth as always. However, one small issue I have so far is that the embed support doesn&#8217;t work consistently, with some videos not being embed as expected. I&#8217;ll have to monitor first and verify if it&#8217;s indeed a recurrent issue.</p>
<p>With commentsmeta now available officially, I&#8217;ll most probably include avatar support for the Facebook Connect and Google connect feature on my site. Once it&#8217;s stable, it will be released as a plugin for public usage. Unlike other plugins, it doesn&#8217;t really create a user signup entry in the WordPress database which is ideal for blogs, minimizing the clutter of users in the backend.</p>
<p>At the same time, I&#8217;ve also made a small update to my <a href="http://fusedthought.com/downloads/url-shortener-wordpress-plugin/">URL Shortener Plugin</a>, bumping it up to <a href="http://downloads.wordpress.org/plugin/url-shortener.1.7.zip">Version 1.7</a>, to take into account the inclusion of WP.me shortlink generation in the stats plugin as well as the &#8220;Get Shortlink&#8221; button included in the WordPress Core.</p>
<p><strong>EDIT</strong>: A short video summarizing some of the new features of WordPress 2.9:<br />
<object type="application/x-shockwave-flash" style="width:500px;height:306px;" data="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?guid=NBZ853Xn"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="movie" value="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?guid=NBZ853Xn" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" /></object></p>
<div class="feedflare">
<a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=U1J7WBuKEW0:DZnv_l-RdMY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=U1J7WBuKEW0:DZnv_l-RdMY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=U1J7WBuKEW0:DZnv_l-RdMY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=U1J7WBuKEW0:DZnv_l-RdMY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=U1J7WBuKEW0:DZnv_l-RdMY:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=U1J7WBuKEW0:DZnv_l-RdMY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=U1J7WBuKEW0:DZnv_l-RdMY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=U1J7WBuKEW0:DZnv_l-RdMY:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/FusedthoughtTech/~4/U1J7WBuKEW0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fusedthought.com/archives/wordpress-gets-upgraded-to-2-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://fusedthought.com/archives/wordpress-gets-upgraded-to-2-9/</feedburner:origLink></item>
		<item>
		<title>WP.me shortlinks now available to self-hosted WordPress</title>
		<link>http://feeds.fusedthought.com/~r/FusedthoughtTech/~3/3Hr18CQm4aw/</link>
		<comments>http://fusedthought.com/archives/wp-me-shortlinks-now-available-to-self-hosted-wordpress/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 14:49:00 +0000</pubDate>
		<dc:creator>Gerald</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tech News]]></category>
		<category><![CDATA[WordPress-Related]]></category>

		<guid isPermaLink="false">http://fusedthought.com/?p=2587</guid>
		<description><![CDATA[In a recent update to the WordPress.com stats plugin, the developers have added WP.me shortlink generation functionality to it as well.
What this entails
With version 1.6 of the stats plugin, the once exclusive WP.me shortlink feature will now be available to all users of the self-hosted WordPress. It is definitely a welcomed change as the close [...]]]></description>
			<content:encoded><![CDATA[<p>In a recent update to the <a href="http://wordpress.org/extend/plugins/stats">WordPress.com stats plugin</a>, the developers have added WP.me shortlink generation functionality to it as well.</p>
<h3>What this entails</h3>
<p>With version 1.6 of the stats plugin, the once exclusive WP.me shortlink feature will now be available to all users of the self-hosted WordPress. It is definitely a welcomed change as the close control of the WP.me shortening service means that it is less open to abuse.</p>
<p>Of course, now there would be a problem of robot blogs (blogs which auto generate content from other blogs) generating shortlinks as well.</p>
<p>However, one caveat is that the WP.me generation comes with the plugin and there is no way to deactivate it. These leave little option for users who doesn&#8217;t want to auto-generate or use the integrated shortlink feature.</p>
<h3>Showing WP.me shortlink in themes</h3>
<p>With that said, I&#8217;ve update my template to reflect the shortlink as well.. You can find a WP.me links on top of the 3rd Partly shortlink in the<a href="#shorturls"> shortlink section</a> below.</p>
<p>For those who want to display the WP.me shortlinks, add the following to the template :</p>
<pre>&lt;a href="&lt;?php echo get_shortlink($post);?&gt;"&gt;&lt;?php echo get_shortlink($post); ?&gt;&lt;/a&gt;</pre>
<p>Remember it has to be placed within the <a href="http://codex.wordpress.org/The_Loop">WordPress post loop</a></p>
<h3>Future of my URL Shortener Plugin</h3>
<p>With this release, I wonder what will be the future of my <a href="http://fusedthought.com/downloads/url-shortener-wordpress-plugin/">URL Shortener plugin</a>.</p>
<p>Probably I will now consider adding WP.me support to my URL Shortener plugin. This would thus allow users who don&#8217;t use WordPress.com Stats plugin to access the service as well.</p>
<div class="feedflare">
<a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=3Hr18CQm4aw:jj-EBgy2ClA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=3Hr18CQm4aw:jj-EBgy2ClA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=3Hr18CQm4aw:jj-EBgy2ClA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=3Hr18CQm4aw:jj-EBgy2ClA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=3Hr18CQm4aw:jj-EBgy2ClA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=3Hr18CQm4aw:jj-EBgy2ClA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=3Hr18CQm4aw:jj-EBgy2ClA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=3Hr18CQm4aw:jj-EBgy2ClA:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/FusedthoughtTech/~4/3Hr18CQm4aw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fusedthought.com/archives/wp-me-shortlinks-now-available-to-self-hosted-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://fusedthought.com/archives/wp-me-shortlinks-now-available-to-self-hosted-wordpress/</feedburner:origLink></item>
		<item>
		<title>Tutorial: Autosave WordPress Post Title as Tags</title>
		<link>http://feeds.fusedthought.com/~r/FusedthoughtTech/~3/og-OKQjsiWI/</link>
		<comments>http://fusedthought.com/archives/tutorial-autosave-wordpress-post-title-as-tags/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 14:39:27 +0000</pubDate>
		<dc:creator>Gerald</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress-Related]]></category>

		<guid isPermaLink="false">http://fusedthought.com/?p=2483</guid>
		<description><![CDATA[This post is published in response to a WordPress support thread, requesting such a functionality (http://wordpress.org/support/topic/338629)
Although the title of the post states that it is a tutorial, I haven&#8217;t really tested the following code extensively. It works on my test environment as well as a live blog which I tested it with.
Here&#8217;s the initial code:

function [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://lh5.ggpht.com/_t0tF5SVoX88/SxiwiBNIlkI/AAAAAAAAAqA/YnvCNd1SANs/s800/wordpresstut.png" alt="" />This post is published in response to a WordPress support thread, requesting such a functionality (<a rel="nofollow" href="http://wordpress.org/support/topic/338629">http://wordpress.org/support/topic/338629</a>)</p>
<p>Although the title of the post states that it is a tutorial, I haven&#8217;t really tested the following code extensively. It works on my test environment as well as a live blog which I tested it with.</p>
<p>Here&#8217;s the initial code:</p>
<pre><code>
function SaveTitleAsTag($post_ID) {
 $gpt = get_post($post_ID);
 $posttitle = $gpt-&gt;post_title;
 $posttitle = strtolower($posttitle);
 if(get_the_tags($post_ID)){
    foreach(get_the_tags($post_ID) as $tag) {
      $tag_name = $tag-&gt;name;
      $tag_name  = strtolower($tag_name);
      $posttitle = str_replace($tag_name, "", $posttitle);
    }
 }
 $splittotags = explode(" ", $posttitle);
 foreach ($splittotags as $atag){
     $atag = str_replace(" ", "", $atag);
     if($atag !=NULL){
           wp_set_object_terms($post_ID, $atag, 'post_tag', true );
     }
  }
}

add_action('save_post', 'SaveTitleAsTag');</code></pre>
<p>I&#8217;ve wrapped the above code up in a plugin. Just download the file, upload to your WordPress plugin folder and activate.</p>
<p><a href="http://fusedthought-labs.googlecode.com/files/autosave-title-as-tags.0.2.zip">Download</a></p>
<p><strong>NOTE:</strong> For the latest version of the plugin and updates to the code, please visit the download details page: <a href="http://fusedthought.com/downloads/autosave-post-title-as-tags-wordpress-plugin">http://fusedthought.com/downloads/autosave-post-title-as-tags-wordpress-plugin</a></p>
<div class="feedflare">
<a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=og-OKQjsiWI:6hVemtp3qOw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=og-OKQjsiWI:6hVemtp3qOw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=og-OKQjsiWI:6hVemtp3qOw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=og-OKQjsiWI:6hVemtp3qOw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=og-OKQjsiWI:6hVemtp3qOw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=og-OKQjsiWI:6hVemtp3qOw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=og-OKQjsiWI:6hVemtp3qOw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=og-OKQjsiWI:6hVemtp3qOw:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/FusedthoughtTech/~4/og-OKQjsiWI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fusedthought.com/archives/tutorial-autosave-wordpress-post-title-as-tags/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://fusedthought.com/archives/tutorial-autosave-wordpress-post-title-as-tags/</feedburner:origLink></item>
		<item>
		<title>Tutorial: Adding a second dynamic (widget) sidebar in WordPress</title>
		<link>http://feeds.fusedthought.com/~r/FusedthoughtTech/~3/m9tEcKCutqU/</link>
		<comments>http://fusedthought.com/archives/tutorial-adding-a-second-dynamic-widget-sidebar-in-wordpress/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 15:58:27 +0000</pubDate>
		<dc:creator>Gerald</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress-Related]]></category>

		<guid isPermaLink="false">http://fusedthought.com/?p=2464</guid>
		<description><![CDATA[I was looking around in the WordPress support forums the other day and the question of how to add a second dynamic sidebar came up.
This is probably quite a common question, and it&#8217;s definitely one of the few things that I looked for when dynamic sidebars were introduced in WordPress. I&#8217;ve decided take the reply [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://lh5.ggpht.com/_t0tF5SVoX88/SxiwiBNIlkI/AAAAAAAAAqA/YnvCNd1SANs/s800/wordpresstut.png" alt="" />I was looking around in the WordPress support forums the other day and the question of how to add a second dynamic sidebar came up.</p>
<p>This is probably quite a common question, and it&#8217;s definitely one of the few things that I looked for when dynamic sidebars were introduced in WordPress. I&#8217;ve decided take the reply which I gave and make it into a tutorial.</p>
<p>There should be quite a number of tutorials or solutions out there already, but let me just add a step-by-step tutorial to the fold as well&#8230;.</p>
<h3>So Let&#8217;s Go:</h3>
<ol>
<li>First up, open the function.php in your theme folder.
<ul>
<li>If the file doesn&#8217;t exist, skip to step 3.</li>
</ul>
</li>
<li>Find the line that says:</li>
<pre><code>if ( function_exists('register_sidebar') ) {
	register_sidebar(array(
		'before_widget' =&gt; '&lt;li id="%1$s"&gt;',
		'after_widget' =&gt; '&lt;/li&gt;',
		'before_title' =&gt; '&lt;h2&gt;',
		'after_title' =&gt; '&lt;/h2&gt;',
	));</code></pre>
<p>and replace it with the code from step 3.</p>
<li>Create a function.php file and add the following codes to the file:
<pre><code>if ( function_exists('register_sidebar') ) {
   register_sidebar(array('name'=&gt;'primary_sidebar',
       'before_widget' =&gt; '&lt;li id="%1$s"&gt;',
       'after_widget' =&gt; '&lt;/li&gt;',
       'before_title' =&gt; '&lt;h2&gt;',
       'after_title' =&gt; '&lt;/h2&gt;',
   ));

   register_sidebar(array('name'=&gt;'secondary_sidebar',
       'before_widget' =&gt; '&lt;li id="%1$s"&gt;',
       'after_widget' =&gt; '&lt;/li&gt;',
       'before_title' =&gt; '&lt;h2&gt;',
       'after_title' =&gt; '&lt;/h2&gt;',
   ));

};</code></pre>
<p>Note the part of the array that says: <code> 'name'=&gt;'primary_sidebar'</code>. It defines a name for the dynamic sidebar instance which you can call later.</li>
<li>After you&#8217;re done, find your current sidebar code, usually located in your sidebar.php and replace the following line:
<pre><code>if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() : ?&gt;</code></pre>
<p>with</p>
<pre><code>if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('primary_sidebar') ) : ?&gt;</code></pre>
</li>
<li>To show the second sidebar, go to the part of your code where you want and add the following:
<pre><code>&lt;ul&gt;
   &lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('secondary_sidebar') ) : else : ?&gt;
   &lt;?php endif; ?&gt;
&lt;/ul&gt;</code></pre>
</li>
<li>That&#8217;s all!. Now it&#8217;s left to styling your new sidebar!</li>
</ol>
<h3>Having more than two sidebars:</h3>
<p>In the event you need to define more dynamic sidebars, just add a new register_sidebar array, and make a call in the template to the name of the new sidebar array.</p>
<h3>Note</h3>
<p>One thing to note: the default WordPress kubrick and the above code outputs your widgets in a list. To change that, modify the before_widget and after_widget variables and remove the &lt;ul&gt; and &lt;/ul&gt; enclosing the function call..</p>
<p>Another thing to note is that the function calls to the sideabrs should not be nested within each other.</p>
<div class="feedflare">
<a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=m9tEcKCutqU:y9ve1Yr5Zww:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=m9tEcKCutqU:y9ve1Yr5Zww:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=m9tEcKCutqU:y9ve1Yr5Zww:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=m9tEcKCutqU:y9ve1Yr5Zww:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=m9tEcKCutqU:y9ve1Yr5Zww:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=m9tEcKCutqU:y9ve1Yr5Zww:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=m9tEcKCutqU:y9ve1Yr5Zww:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=m9tEcKCutqU:y9ve1Yr5Zww:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/FusedthoughtTech/~4/m9tEcKCutqU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fusedthought.com/archives/tutorial-adding-a-second-dynamic-widget-sidebar-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://fusedthought.com/archives/tutorial-adding-a-second-dynamic-widget-sidebar-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>FlowMod WordPress Admin Theme Dev</title>
		<link>http://feeds.fusedthought.com/~r/FusedthoughtTech/~3/qY3p0p9M5xM/</link>
		<comments>http://fusedthought.com/archives/flowmod-wordpress-admin-theme-dev/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 06:56:30 +0000</pubDate>
		<dc:creator>Gerald</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Dev Log]]></category>
		<category><![CDATA[WordPress-Related]]></category>

		<guid isPermaLink="false">http://fusedthought.com/?p=2449</guid>
		<description><![CDATA[Long time users of the WordPress blogging platform would know that the administration interface underwent changes when it reached version 2.5 and subsequently when version 2.7 was released. The interface has definitely improved quite abit over those years and all these changes were without a doubt, much welcomed.
However, I felt the interface lacked contrasts between [...]]]></description>
			<content:encoded><![CDATA[<p>Long time users of the WordPress blogging platform would know that the administration interface underwent changes when it reached version 2.5 and subsequently when version 2.7 was released. The interface has definitely improved quite abit over those years and all these changes were without a doubt, much welcomed.</p>
<p>However, I felt the interface lacked contrasts between menu and lacked quick links on the front-page. As such, I&#8217;ve started coding a custom admin theme for my personal WordPress installations. In addition to the &#8220;quick links&#8221; in the dashboard, it also features an accordion menu in place of the usual expandable menu.</p>
<p>Here&#8217;s a screenshot:<br />
<a rel="lightbox" href="http://lh3.ggpht.com/_t0tF5SVoX88/SxXhmjb7QaI/AAAAAAAAApc/DS_XiFe3sVM/s800/screenshot-dashboard.jpg"><img src="http://lh3.ggpht.com/_t0tF5SVoX88/SxXhmjb7QaI/AAAAAAAAApc/DS_XiFe3sVM/s288/screenshot-dashboard.jpg" alt="" /></a></p>
<p>I am thinking of releasing it as a plugin but there are a few kinks that&#8217;ll have to be ironed out before it reaches release level. One of them would be the toggling of the navigation menu. Since I&#8217;ve only used it on my own sites, I never felt the need to code it.. probably I will have to consider that now..</p>
<p>Currently it&#8217;s codenamed: FlowMod (Short for Flow Modify).</p>
<div class="feedflare">
<a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=qY3p0p9M5xM:JZpsfm1theU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=qY3p0p9M5xM:JZpsfm1theU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=qY3p0p9M5xM:JZpsfm1theU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=qY3p0p9M5xM:JZpsfm1theU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=qY3p0p9M5xM:JZpsfm1theU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=qY3p0p9M5xM:JZpsfm1theU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=qY3p0p9M5xM:JZpsfm1theU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=qY3p0p9M5xM:JZpsfm1theU:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/FusedthoughtTech/~4/qY3p0p9M5xM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fusedthought.com/archives/flowmod-wordpress-admin-theme-dev/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://fusedthought.com/archives/flowmod-wordpress-admin-theme-dev/</feedburner:origLink></item>
		<item>
		<title>Canonical URLs (Code Snippet – WordPress)</title>
		<link>http://feeds.fusedthought.com/~r/FusedthoughtTech/~3/Nf4egtxbaHk/</link>
		<comments>http://fusedthought.com/archives/canonical-urls-code-snippet-wordpress/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 16:56:25 +0000</pubDate>
		<dc:creator>Gerald</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[WordPress-Related]]></category>

		<guid isPermaLink="false">http://fusedthought.com/?p=2417</guid>
		<description><![CDATA[While developing websites, most probably you would have heard about specifying canonical URLs or come across an article on it.
For the benefit of those who haven&#8217;t, URL Canonicalization, also known as URL normalization is a process by which URLs are modified and standardized in a consistent manner. Search engines (Google, Yahoo, Bing) allows site owners [...]]]></description>
			<content:encoded><![CDATA[<p>While developing websites, most probably you would have heard about specifying canonical URLs or come across an article on it.</p>
<p>For the benefit of those who haven&#8217;t, URL Canonicalization, also known as <a href="http://en.wikipedia.org/wiki/URL_normalization">URL normalization</a> is a process by which URLs are modified and standardized in a consistent manner. Search engines (<a href="http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html">Google</a>, <a href="http://ysearchblog.com/2009/02/12/fighting-duplication-adding-more-arrows-to-your-quiver/">Yahoo</a>, <a href="http://www.bing.com/community/blogs/webmaster/archive/2009/02/12/partnering-to-help-solve-duplicate-content-issues.aspx">Bing</a>) allows site owners to specify their preferred version of a page through the canonical meta tag. This is useful in the event that there are multiple URLs pointing to the same page/content.</p>
<p>Adding support for canonical URL meta tag is normally one of the first things I do in recent months. The following is the code I usually use for my WordPress themes:</p>
<pre class="brush: php">function post_canonical_url() {
   if ( is_singular() ) {
     $canonical_url = '&lt;link rel="canonical" href="' . get_permalink() . '"/&gt;';
   } elseif ( is_home() ){
     $canonical_url = '&lt;link rel="canonical" href="' . get_bloginfo('home') . '"/&gt;';
   }
echo $canonical_url;
}
add_action('wp_head', 'post_canonical_url')
?&gt;</pre>
<p>For WordPress, it is easy to achieve through a <a href="http://wordpress.org/extend/plugins/search.php?q=canonical+url">plugin</a>. However, for those who don&#8217;t want to add another plugin, or want a simple, no-frills method, just copy the above code into your functions.php.</p>
<p>After adding the above code,  a canonical meta tag will be added to your index, posts and pages.</p>
<p>(<strong>EDIT 291109: </strong>This code is only needed in WordPress 2.8 and below. According to the development builds of WordPress 2.9, it has native support for canonical URLs).</p>
<div class="feedflare">
<a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=Nf4egtxbaHk:emN_GJexCXA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=Nf4egtxbaHk:emN_GJexCXA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=Nf4egtxbaHk:emN_GJexCXA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=Nf4egtxbaHk:emN_GJexCXA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=Nf4egtxbaHk:emN_GJexCXA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=Nf4egtxbaHk:emN_GJexCXA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=Nf4egtxbaHk:emN_GJexCXA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=Nf4egtxbaHk:emN_GJexCXA:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/FusedthoughtTech/~4/Nf4egtxbaHk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fusedthought.com/archives/canonical-urls-code-snippet-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://fusedthought.com/archives/canonical-urls-code-snippet-wordpress/</feedburner:origLink></item>
		<item>
		<title>Comment using Google Friend Connect</title>
		<link>http://feeds.fusedthought.com/~r/FusedthoughtTech/~3/GbNK_y4n7us/</link>
		<comments>http://fusedthought.com/archives/comment-using-google-friend-connect/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 13:57:57 +0000</pubDate>
		<dc:creator>Gerald</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Announce]]></category>
		<category><![CDATA[Dev Log]]></category>
		<category><![CDATA[The Google Cloud]]></category>

		<guid isPermaLink="false">http://fusedthought.com/?p=2361</guid>
		<description><![CDATA[As some of you may have notice, there is a new button labeled &#8220;Google Friend Connect&#8221; in the comments area.
Starting from today, in addition to the usual comment methods and Facebook Connect (FBC), you can also use Google Friend Connect (GFC) to leave a comment. Using Google Friend Connect or Facebook Connect allows you to [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://lh4.ggpht.com/_t0tF5SVoX88/SwfmEyjl4dI/AAAAAAAAAo4/U_LJFZqKrec/s800/GFC-FB-Comment-FTS.jpg"><img class="alignright" src="http://lh4.ggpht.com/_t0tF5SVoX88/SwfmEyjl4dI/AAAAAAAAAo4/U_LJFZqKrec/s288/GFC-FB-Comment-FTS.jpg" alt="" /></a>As some of you may have notice, there is a new button labeled &#8220;Google Friend Connect&#8221; in the comments area.</p>
<p>Starting from today, in addition to the usual comment methods and Facebook Connect (FBC), you can also use Google Friend Connect (GFC) to leave a comment. Using Google Friend Connect or Facebook Connect allows you to skip typing in the required fields everytime you need to leave a comment.</p>
<p>GFC currently supports authentication with Google accounts, OpenID, Yahoo, AIM and Netlog.</p>
<p>I may be expanding the usage of both FBC and GFC on this blog in the future. For now, it is limited to the comments section only.</p>
<div class="feedflare">
<a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=GbNK_y4n7us:6iyB7-GbgfU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=GbNK_y4n7us:6iyB7-GbgfU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=GbNK_y4n7us:6iyB7-GbgfU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=GbNK_y4n7us:6iyB7-GbgfU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=GbNK_y4n7us:6iyB7-GbgfU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=GbNK_y4n7us:6iyB7-GbgfU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=GbNK_y4n7us:6iyB7-GbgfU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=GbNK_y4n7us:6iyB7-GbgfU:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/FusedthoughtTech/~4/GbNK_y4n7us" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fusedthought.com/archives/comment-using-google-friend-connect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://fusedthought.com/archives/comment-using-google-friend-connect/</feedburner:origLink></item>
		<item>
		<title>Update: URL Shortener Plugin v1.6</title>
		<link>http://feeds.fusedthought.com/~r/FusedthoughtTech/~3/zVIhelnMe3o/</link>
		<comments>http://fusedthought.com/archives/update-url-shortener-plugin-v1-6/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 16:13:36 +0000</pubDate>
		<dc:creator>Gerald</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Dev Log]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Released for Download]]></category>
		<category><![CDATA[WordPress-Related]]></category>

		<guid isPermaLink="false">http://fusedthought.com/?p=2349</guid>
		<description><![CDATA[
Due to a request by a user in the WordPress support forums, I&#8217;ve updated the URL Shortener plugin to include the awe.sm service as well&#8230;
At the same time, I&#8217;ve also updated the post activation hook to take into account scheduled posts. Previously, Short URLs were not generated when scheduled posts are published even though Short [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://lh6.ggpht.com/_t0tF5SVoX88/SuHevGWw_rI/AAAAAAAAAjQ/0ZLC1w8WcXI/s144/URLShortenerLogo.jpg" alt="" /></p>
<p>Due to a <a href="http://wordpress.org/support/topic/329476">request by a user</a> in the WordPress support forums, I&#8217;ve updated the URL Shortener plugin to include the awe.sm service as well&#8230;</p>
<p>At the same time, I&#8217;ve also updated the post activation hook to take into account scheduled posts. Previously, Short URLs were not generated when scheduled posts are published even though Short URL generation is set to auto in the settings page. This update fixes the above-mentioned issue.</p>
<p>The version number has also been bumped up to 1.6.</p>
<p>For now, I am still determined to have a central administration page for the Short URLs generated but there seems to be no simple way to do it&#8230; I&#8217;ll definitely want it in a future version.. If anybody has any ideas, please leave a comment&#8230;</p>
<p>In the meantime, do try out the updated plugin and give your feedback on the <a href="http://wordpress.org/tags/url-shortener">plugin support forum</a> on any bugs or the awe.sm feature. I don&#8217;t have a permanent account at the awe.sm service, neither do I have access to their custom domain service&#8230; As such, I couldn&#8217;t conduct as many tests as I wanted&#8230;</p>
<p>For more information on the plugin, head over to the <a href="../../downloads/url-shortener-wordpress-plugin/">Plugin Page </a></p>
<div class="feedflare">
<a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=zVIhelnMe3o:ZUmWqYrO4_0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=zVIhelnMe3o:ZUmWqYrO4_0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=zVIhelnMe3o:ZUmWqYrO4_0:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=zVIhelnMe3o:ZUmWqYrO4_0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=zVIhelnMe3o:ZUmWqYrO4_0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=zVIhelnMe3o:ZUmWqYrO4_0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=zVIhelnMe3o:ZUmWqYrO4_0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=zVIhelnMe3o:ZUmWqYrO4_0:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/FusedthoughtTech/~4/zVIhelnMe3o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fusedthought.com/archives/update-url-shortener-plugin-v1-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://fusedthought.com/archives/update-url-shortener-plugin-v1-6/</feedburner:origLink></item>
		<item>
		<title>WordPress Custom Content Length (Code Snippet)</title>
		<link>http://feeds.fusedthought.com/~r/FusedthoughtTech/~3/f7GIetfs5fo/</link>
		<comments>http://fusedthought.com/archives/wordpress-custom-content-length-code-snippet/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 16:15:01 +0000</pubDate>
		<dc:creator>Gerald</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WordPress-Related]]></category>

		<guid isPermaLink="false">http://fusedthought.com/?p=2300</guid>
		<description><![CDATA[While I was coding this website, I was looking around for a piece of WordPress code allows you to display an excerpt of a certain length.
Frankly, I really feel that a custom content length should be built into the WordPress core.
Anyway, there are plugins available but just didn&#8217;t want to add another one to the [...]]]></description>
			<content:encoded><![CDATA[<p>While I was coding this website, I was looking around for a piece of WordPress code allows you to display an excerpt of a certain length.</p>
<p>Frankly, I really feel that a custom content length should be built into the WordPress core.</p>
<p>Anyway, there are plugins available but just didn&#8217;t want to add another one to the installation if I can help it&#8230; so I decided to add a simple function instead&#8230;</p>
<p>For those interested:</p>
<pre class="brush: php">function limit_content($content_length = 250, $allowtags = true, $allowedtags = '') {
	global $post;
	$content = $post-&gt;post_content;
	$content = apply_filters('the_content', $content);
	if (!$allowtags){
		$allowedtags .= '&lt;style&gt;';
		$content = strip_tags($content, $allowedtags);
	}
	$wordarray = explode(' ', $content, $content_length + 1);
	if(count($wordarray) &gt; $content_length) :
		array_pop($wordarray);
		array_push($wordarray, '...');
		$content = implode(' ', $wordarray);
		$content .= "&lt;/p&gt;";
	endif;

	echo $content;
}</pre>
<p>Just copy the above code into your functions.php file.</p>
<h3>Usage:</h3>
<p>limit_content( $length,  $allow-tags, $tags-to-allow )</p>
<h3>Example:</h3>
<pre class="brush: php">limit_content('300',  false, '&lt;p&gt;&lt;a&gt;');</pre>
<h3>Parameters:</h3>
<p><strong>$length</strong><br />
(integer) Number of characters desired.</p>
<p>Default: 250</p>
<p><strong>$allow-tags</strong><br />
(string) (optional) Allow any formatting?</p>
<p>Default: true</p>
<p><strong>$tags-to-allow</strong><br />
(string) (optional) If $allow-tags is set to false, you can use this parameter to selectively allow certain formatting tags.</p>
<p>Default:  &#8216; &#8216;</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 342px; width: 1px; height: 1px;">
<pre class="brush: php">$content .= "&lt;/p&gt;";</pre>
</div>
<div class="feedflare">
<a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=f7GIetfs5fo:S8xsfM6LozU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=f7GIetfs5fo:S8xsfM6LozU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=f7GIetfs5fo:S8xsfM6LozU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=f7GIetfs5fo:S8xsfM6LozU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=f7GIetfs5fo:S8xsfM6LozU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=f7GIetfs5fo:S8xsfM6LozU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.fusedthought.com/~ff/FusedthoughtTech?a=f7GIetfs5fo:S8xsfM6LozU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/FusedthoughtTech?i=f7GIetfs5fo:S8xsfM6LozU:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/FusedthoughtTech/~4/f7GIetfs5fo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fusedthought.com/archives/wordpress-custom-content-length-code-snippet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://fusedthought.com/archives/wordpress-custom-content-length-code-snippet/</feedburner:origLink></item>
	</channel>
</rss>
