<?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>Playworkplay Webstudio &#187; WordPress</title>
	<atom:link href="http://playworkplay.com/blog/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://playworkplay.com</link>
	<description>Because Fun Things Get Done</description>
	<lastBuildDate>Wed, 19 Aug 2009 12:00:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Labor of Love</title>
		<link>http://playworkplay.com/blog/labor-of-love/</link>
		<comments>http://playworkplay.com/blog/labor-of-love/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 01:35:07 +0000</pubDate>
		<dc:creator>Hafiz Rahman</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://playworkplay.com/blog/labor-of-love/</guid>
		<description><![CDATA[This blog was supposed to be many things: design, code, and a bit of WordPress love. Recently, though, the content I wrote tend to gravitate to the latter; not that it&#8217;s something bad, I do love talking about WP. I just think that, hey, maybe it&#8217;d be a good idea to grow that interest into [...]]]></description>
			<content:encoded><![CDATA[<p>This blog was supposed to be many things: design, code, and a bit of WordPress love. Recently, though, the content I wrote tend to gravitate to the latter; not that it&#8217;s something bad, I do love talking about WP. I just think that, hey, maybe it&#8217;d be a good idea to grow that interest into its own blog.</p>
<p>And so, <a href="http://wplover.com/">WPLover</a> is born.</p>
<p>Having a goal of providing &#8220;bite-sized WordPress news, and then some&#8221;, I hope I could grow that blog as well as this one. Managing multiple blogs is hard, so I cheated a bit by keeping in mind that WPLover will mostly contain snippet of news update instead of fully-blown article every time.</p>
<p>From now on, this blog will focus more on web design and code, so stay tuned for more articles on that area.</p>
<p>Oh, and thank you very much for reading. No, honestly.</p>
]]></content:encoded>
			<wfw:commentRss>http://playworkplay.com/blog/labor-of-love/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.5 RC1 First Impression</title>
		<link>http://playworkplay.com/blog/wordpress-25-rc1-first-impression/</link>
		<comments>http://playworkplay.com/blog/wordpress-25-rc1-first-impression/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 09:19:21 +0000</pubDate>
		<dc:creator>Hafiz Rahman</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://playworkplay.com/blog/wordpress-25-rc1-first-impression/</guid>
		<description><![CDATA[Delayed one week from the initial release date of March 10, 2008, WordPress 2.5 RC1 is finally out. Here are a few points worth mentioning from the announcement post:
For the past few months, we’ve been working with our friends at Happy Cog — Jeffrey Zeldman, Jason Santa Maria, and Liz Danzico — to redesign WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>Delayed one week from the initial release date of March 10, 2008, <a href="http://wordpress.org/development/2008/03/25-sneak-peek/">WordPress 2.5 RC1 is finally out</a>. Here are a few points worth mentioning from the announcement post:</p>
<blockquote><p>For the past few months, we’ve been working with our friends at Happy Cog — Jeffrey Zeldman, Jason Santa Maria, and Liz Danzico — to redesign WordPress from the ground-up.</p></blockquote>
<p>Yes, yes, yes. Music to my ears. <a href="http://playworkplay.com/blog/wordpress-25-backend-redesign-and-happy-cog/">Here&#8217;s my old post regarding Happy Cog&#8217;s involvement in redesigning WordPress&#8217; backend</a>.</p>
<blockquote><p>You might also notice there are some new colors, the dashboard feels much fresher and lighter. If you’re jonesing for the old look under your user options you can now select the “classic” colors and get those old blues back. (It’s also pluggable so people can easily add or share their own color schemes.)</p></blockquote>
<p>So, you can change the admin&#8217;s color schemes by creating plugins. Interesting. <a href="http://planetozh.com/blog/2008/03/per-user-custom-stylesheet-in-wordpress-25/">Here&#8217;s Ozh explaining how to do that in details</a>. Now, I&#8217;m just itching to go to <a href="http://www.colourlovers.com/">Colour Lovers</a> and grab a few lovely schemes for this.</p>
<blockquote><p>The software is basically done and stable, and could be released today</p></blockquote>
<p>So, this is it. What I&#8217;m waiting the most from 2.5 is the redesigned admin, and if you&#8217;re like me, it&#8217;s probably quite safe to believe that the new design is there and ready to test. Now, let&#8217;s play!</p>
]]></content:encoded>
			<wfw:commentRss>http://playworkplay.com/blog/wordpress-25-rc1-first-impression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Will Somebody Fix Codex&#8217;s Search Functionality?</title>
		<link>http://playworkplay.com/blog/will-somebody-fix-codexs-search-functionality/</link>
		<comments>http://playworkplay.com/blog/will-somebody-fix-codexs-search-functionality/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 14:50:19 +0000</pubDate>
		<dc:creator>Hafiz Rahman</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://playworkplay.com/blog/will-somebody-fix-codexs-search-functionality/</guid>
		<description><![CDATA[Don&#8217;t you think it&#8217;s kind of weird that searching for &#8220;the_category&#8221; on WordPress Codex results in quite a lot of page, but none of it shows Template Tags/the category, the correct page for it?
I mean, the search term is also used on the correct page&#8217;s URL, so what&#8217;s the big deal here? Note that searching [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t you think it&#8217;s kind of weird that <a href="http://wordpress.org/search/the_category?documentation=1">searching for &#8220;the_category&#8221;</a> on <a href="http://codex.wordpress.org/">WordPress Codex</a> results in quite a lot of page, but none of it shows <a href="http://codex.wordpress.org/Template_Tags/the_category">Template Tags/the category, the correct page for it</a>?</p>
<p>I mean, the search term is also used on the correct page&#8217;s URL, so what&#8217;s the big deal here? Note that <a href="http://www.google.com/search?hl=en&#038;lr=&#038;safe=off&#038;as_qdr=all&#038;q=the_category+site%3Acodex.wordpress.org&#038;btnG=Search">searching it via Google shows the correct page as the first result</a>.</p>
<p>I frequently had some problems searching for various other things too. I love Codex, but sadly I must say the search functionality could use some help. What do you guys think?</p>
]]></content:encoded>
			<wfw:commentRss>http://playworkplay.com/blog/will-somebody-fix-codexs-search-functionality/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress QuickTips: Getting a Post&#8217;s ID</title>
		<link>http://playworkplay.com/blog/wordpress-quicktips-getting-a-posts-id/</link>
		<comments>http://playworkplay.com/blog/wordpress-quicktips-getting-a-posts-id/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 02:12:44 +0000</pubDate>
		<dc:creator>Hafiz Rahman</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://playworkplay.com/blog/wordpress-quicktips-getting-a-posts-id/</guid>
		<description><![CDATA[In a project I&#8217;m working on, I need to find the ID of a Post (a Page, actually, but the truth is that this works for both) so that the theme does not display the sidebar on this particular Post, but still showing for the rest.
At first I&#8217;m looking at the Template Tag the_ID(). Unfortunately, [...]]]></description>
			<content:encoded><![CDATA[<p>In a project I&#8217;m working on, I need to find the ID of a Post (a Page, actually, but the truth is that this works for both) so that the theme does not display the sidebar on this particular Post, but still showing for the rest.</p>
<p>At first I&#8217;m looking at the Template Tag <a href="http://codex.wordpress.org/Template_Tags/the_ID">the_ID()</a>. Unfortunately, this function automatically prints out the Post&#8217;s ID instead of returning the ID when called. In other words, the following is <strong>not possible</strong>:</p>
<pre class="brush: php">
// Check whether the Post&#039;s ID is 5.
// This does not work.
if(the_ID()==5) do something...
</pre>
<p>&#8230;because the_ID() does not return 5. It turns out, the working method is by using <strong>$post->ID</strong>:</p>
<pre class="brush: php">
// Check whether the Post&#039;s ID is 5.
// This works.
if($post-&gt;ID == 5 ) do something...
</pre>
<p>Also, in my experience, the <strong>$post</strong> variable is still available after The Loop is done, very useful in my quest of displaying/hiding sidebar depending on the Post&#8217;s ID:</p>
<pre class="brush: php">
// This works.
&lt;div id=&quot;content&quot;&gt;

  // The Loop
  &lt;?php if (have_posts()) : ?&gt;
    &lt;?php while (have_posts()) : the_post(); ?&gt;
       // ...the usual content displaying stuff...
    &lt;?php endwhile; ?&gt;
  &lt;?php endif; ?&gt;
&lt;/div&gt;

&lt;?php
  // Outside The Loop!
  if($post-&gt;ID != 21) get_sidebar(); ?&gt;
</pre>
<p>I suppose this works well on template files that only display 1 content (e.g: single.php, page.php). Expect crazy things to happen when calling $post outside The Loop inside template files that actually loops more than once (index.php, category.php, etc).</p>
]]></content:encoded>
			<wfw:commentRss>http://playworkplay.com/blog/wordpress-quicktips-getting-a-posts-id/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Finding Query Count for a Certain Part in a WordPress Theme</title>
		<link>http://playworkplay.com/blog/finding-query-count-for-a-certain-part-in-a-wordpress-theme/</link>
		<comments>http://playworkplay.com/blog/finding-query-count-for-a-certain-part-in-a-wordpress-theme/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 23:39:14 +0000</pubDate>
		<dc:creator>Hafiz Rahman</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://playworkplay.com/blog/finding-query-count-for-a-certain-part-in-a-wordpress-theme/</guid>
		<description><![CDATA[Michael Castilla&#8217;s post on modifying individual posts in the loop got me to test the query count between the double loop and single loop with counter method. This is my way to count that query count.
Say the Magic Word
This is how you would display the (current) query count in your theme:

&#60;?php echo get_num_queries(); ?&#62;

This piece [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wpcandy.com/modifying-individual-posts-in-the-loop/">Michael Castilla&#8217;s post on modifying individual posts in the loop</a> got me to test the query count between the double loop and single loop with counter method. This is my way to count that query count.</p>
<h3>Say the Magic Word</h3>
<p>This is how you would display the (current) query count in your theme:</p>
<pre class="brush: php">
&lt;?php echo get_num_queries(); ?&gt;
</pre>
<p>This piece of code is usually found inside footer.php, right at the very end of the code to display the total queries needed to display that single page. The secret is that <strong>you can place it just about anywhere inside your theme</strong>, and it will obediently display the total of query so far. </p>
<p>Also, you can have more than one of these in one go, so you could place one before and one after a certain part of a theme:</p>
<pre class="brush: php">
&lt;?php echo get_num_queries(); ?&gt;

The Loop here...

&lt;?php echo get_num_queries(); ?&gt;
</pre>
<p>&#8230;and you will have the query count before the loop and after it. Subtract the number and there you go, you have the total of queries invoked for The Loop.</p>
]]></content:encoded>
			<wfw:commentRss>http://playworkplay.com/blog/finding-query-count-for-a-certain-part-in-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrading WordPress the “Sneaky” Way Part II: Finding Files Changed from Previous Version</title>
		<link>http://playworkplay.com/blog/upgrading-wordpress-the-%e2%80%9csneaky%e2%80%9d-way-part-ii-finding-files-changed-from-previous-version/</link>
		<comments>http://playworkplay.com/blog/upgrading-wordpress-the-%e2%80%9csneaky%e2%80%9d-way-part-ii-finding-files-changed-from-previous-version/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 11:35:45 +0000</pubDate>
		<dc:creator>Hafiz Rahman</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://playworkplay.com/blog/upgrading-wordpress-the-%e2%80%9csneaky%e2%80%9d-way-part-ii-finding-files-changed-from-previous-version/</guid>
		<description><![CDATA[Back in December 2007 I wrote a post explaining a method to upgrade your WordPress install by simply overwriting the changed files instead of reuploading everything. Back then I was assuming that the &#8220;new version available&#8221; post will always tell you what files are changed so it&#8217;s easy for you to know what to upload.
However, [...]]]></description>
			<content:encoded><![CDATA[<p>Back in December 2007 I wrote a post explaining <a href="http://playworkplay.com/blog/upgrading-wordpress-the-sneaky-way/">a method to upgrade your WordPress install by simply overwriting the changed files instead of reuploading everything</a>. Back then I was assuming that the &#8220;new version available&#8221; post will always tell you what files are changed so it&#8217;s easy for you to know what to upload.</p>
<p>However, today 2.3.3 is out and <a href="http://wordpress.org/development/2008/02/wordpress-233/">the announcement does not mention anything about changed files</a>. Darn.</p>
<h3>Trac Browsing to the Rescue</h3>
<p>So, I decided to look around <a href="http://trac.wordpress.org/">WordPress&#8217;s Trac</a>. Now, I don&#8217;t know much about Trac, so I&#8217;ll let Wikipedia explain:</p>
<blockquote><p>Trac is an open source, web-based project management and bug-tracking tool[...] (<a href="http://en.wikipedia.org/wiki/Trac">Source</a>)</p></blockquote>
<p>Okay. So, in essence, this is the place where you go to find the WordPress source code in various versions, with notes on modifications and whatnot, from the earliest to the most updated. So it&#8217;s the right place to go.</p>
<p>And the nice thing is that it allows you to compare the difference between versions. Exactly what we needed.</p>
<p>First, go to the <a href="http://trac.wordpress.org/browser/tags">tags directory of the source</a>. There you can see a list of every WordPress version, from 1.5 to 2.3.3 and everything in between. <strong>Choose the most updated version</strong>. In our case, 2.3.3.</p>
<p>If you do it right, <a href="http://trac.wordpress.org/browser/tags/2.3.2">this page will be opened</a>. At the bottom of the page there&#8217;s the <strong>View Changes&#8230;</strong> button. Exactly what we need. Click it.</p>
<p>You will see a form like below:</p>
<p><img src="http://i269.photobucket.com/albums/jj50/playworkplay/blog/sneaky.gif" alt="Finding changed files using Trac" /></p>
<p>Except that in your case the input field might still be empty. Well, punch in the numbers the way I did: in the From field it&#8217;s &#8220;<strong>tags/x.x.x</strong>&#8220;, x.x.x is for the previous version, while in the To field it&#8217;s &#8220;<strong>tags/y.y.y</strong>&#8221; for the current version. Click <strong>View Changes</strong>. You don&#8217;t have to worry about the numbers on the two <strong>Revision</strong> input boxes.</p>
<p>And now you&#8217;ll see the list of files changed from previous version:</p>
<p><img src="http://i269.photobucket.com/albums/jj50/playworkplay/blog/sneaky-2.gif" alt="WordPress Trac's list of changed files" /></p>
<p>Those are the one you should upload and upgrade. <a href="http://playworkplay.com/blog/upgrading-wordpress-the-sneaky-way/">Refer to the old tutorial for more detailed steps</a>.</p>
<p>Now, if you&#8217;d excuse me, I have some upgrading to do.</p>
]]></content:encoded>
			<wfw:commentRss>http://playworkplay.com/blog/upgrading-wordpress-the-%e2%80%9csneaky%e2%80%9d-way-part-ii-finding-files-changed-from-previous-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prologue 140 Characters Limit Mod Update</title>
		<link>http://playworkplay.com/blog/prologue-140-characters-limit-mod-update/</link>
		<comments>http://playworkplay.com/blog/prologue-140-characters-limit-mod-update/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 01:53:47 +0000</pubDate>
		<dc:creator>Hafiz Rahman</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://playworkplay.com/blog/prologue-140-characters-limit-mod-update/</guid>
		<description><![CDATA[Prologue gets updated, and here&#8217;s the list of new features/fixes:


The front page now shows a stream of recent updates instead of one update per user
Pages now have their own template and look much better
Avatars are only shown once for sequential posts by the same author (front page and tag pages)
Post titles are no longer empty, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.com/blog/2008/01/30/prologue-gets-an-update/">Prologue gets updated</a>, and here&#8217;s the list of new features/fixes:</p>
<blockquote>
<ul>
<li>The front page now shows a stream of recent updates instead of one update per user</li>
<li>Pages now have their own template and look much better</li>
<li>Avatars are only shown once for sequential posts by the same author (front page and tag pages)</li>
<li>Post titles are no longer empty, they are generated based on the beginning of each post</li>
<li>Works out of the box for WordPress.org 2.3.2</li>
</ul>
</blockquote>
<p>And so, I have updated the Twitter-like 140 chars limit mod as well.</p>
<a class="downloadlink" href="http://playworkplay.com/wp-content/plugins/download-monitor/download.php?id=4" title="Version 1.2 downloaded 136 times" >Prologue Theme Mod with 140 Chars Limit</a>
<p><a href="http://playworkplay.com/download/prologue-140.zip">Download Prologue 140 Characters Limit Mod here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://playworkplay.com/blog/prologue-140-characters-limit-mod-update/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress Theme Tutorial: Displaying Recent Articles, Excluding From Some Categories</title>
		<link>http://playworkplay.com/blog/wordpress-theme-tutorial-displaying-recent-articles-except-from-some-categories/</link>
		<comments>http://playworkplay.com/blog/wordpress-theme-tutorial-displaying-recent-articles-except-from-some-categories/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 03:58:52 +0000</pubDate>
		<dc:creator>Hafiz Rahman</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://playworkplay.com/blog/wordpress-theme-tutorial-displaying-recent-articles-except-from-some-categories/</guid>
		<description><![CDATA[By default, you can use wp_get_archives() to display a list of recent articles. Nevertheless, it doesn&#8217;t allow you to set which category to include/exclude from the list. Here&#8217;s a way to do that:

&#60;ul&#62;
&#60;?php
  // display recent posts excluding those from certain categories.
  query_posts(&#34;showposts=10&#38;cat=-4,-5,-6,-7,-8,-9&#34;); // grab 10 posts, negative to exclude cat IDs

  [...]]]></description>
			<content:encoded><![CDATA[<p>By default, you can use <a href="http://codex.wordpress.org/Template_Tags/wp_get_archives">wp_get_archives()</a> to display a list of recent articles. Nevertheless, it doesn&#8217;t allow you to set which category to include/exclude from the list. Here&#8217;s a way to do that:</p>
<pre class="brush: php">
&lt;ul&gt;
&lt;?php
  // display recent posts excluding those from certain categories.
  query_posts(&quot;showposts=10&amp;cat=-4,-5,-6,-7,-8,-9&quot;); // grab 10 posts, negative to exclude cat IDs

  while (have_posts()) :
    the_post();
?&gt;
  &lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;?php endwhile; ?&gt;
&lt;/ul&gt;
</pre>
<p>The key here is to tweak <strong>query_post</strong>&#8217;s parameter to your liking. &#8220;showpost&#8221; means how many post you want to display, while &#8220;include&#8221; can be used both to include or exclude a category. Note that here you used a category ID. Normal number means you include that category, while adding a negative (&#8221;-&#8221;) symbol before the number means that you exclude that category. You use comma (&#8221;,&#8221;) to separate multiple IDs.</p>
<p>So, my query_post above can be translated to &#8220;get a list of ten most recent posts, excluding those that belongs to category ID 4, 5, 6, 7, 8, 9&#8243;. </p>
]]></content:encoded>
			<wfw:commentRss>http://playworkplay.com/blog/wordpress-theme-tutorial-displaying-recent-articles-except-from-some-categories/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Prologue Theme Mod with 140 Chars Limit</title>
		<link>http://playworkplay.com/blog/prologue-theme-mod-with-128-chars-limit/</link>
		<comments>http://playworkplay.com/blog/prologue-theme-mod-with-128-chars-limit/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 02:29:26 +0000</pubDate>
		<dc:creator>Hafiz Rahman</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://playworkplay.com/blog/prologue-theme-mod-with-128-chars-limit/</guid>
		<description><![CDATA[Note: You are reading about an older version of the theme mod. The most updated post is here. Thank you.
Update: Okay, I was being a total fool for thinking that Twitter&#8217;s limit is 128 instead of 140. Thanks to Jeffro2pt0 for reminding me, and I have reuploaded the theme to reflect the changes. End of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note</strong>: You are reading about an older version of the theme mod. <a href="http://playworkplay.com/blog/prologue-140-characters-limit-mod-update/">The most updated post is here</a>. Thank you.</p>
<p><strong>Update</strong>: Okay, I was being a total fool for thinking that Twitter&#8217;s limit is 128 instead of 140. Thanks to <a href="http://jeffro2pt0.com">Jeffro2pt0</a> for <a href="http://playworkplay.com/blog/prologue-theme-mod-with-128-chars-limit/#comment-54">reminding me</a>, and I have reuploaded the theme to reflect the changes. End of update.</p>
<p><a href="http://wordpress.com/blog/2008/01/28/introducing-prologue/">Prologue</a> is the new, wonderful theme by Automattic. What&#8217;s great about this theme is that it&#8217;s not your average blog-looking theme. Here&#8217;s what they have to say:</p>
<blockquote><p>So last week Joseph Scott and Matt Thomas decided to tackle this problem and within a few days they had a new theme for us: Prologue. Imagine it like a group Twitter.</p></blockquote>
<p>Yes, it is a Twitter-like theme, complete with textarea at the top of the page for logged-in authors to submit their post immediately, Twitter-style. <a href="http://prologuedemo.wordpress.com/">They have set up a demo as well</a>.</p>
<p>All in all, it&#8217;s a great, well-executed idea. And as a tribute to its greatness, I&#8217;d love to contribute my own addition: make it so that you can only post 140 chars per post. Because there&#8217;s something Zen-like about it. Because <a href="http://gettingreal.37signals.com/ch03_Embrace_Constraints.php">constraints drive innovation and force focus</a>. Because you&#8217;re addicted to Twitter enough that writing longer than 140 characters grinds your brain to a halt.</p>
<p>Whatever the reason, this might just be the mod for you.</p>
<h3>Terri Ann to the Rescue</h3>
<p>Being the lazy guy that I am, the first thing I do is of course look around the net for scripts to do the functionality. <a href="http://blog.ninedays.org/2008/01/17/limit-characters-in-a-textarea-with-prototype/">And Terri Ann just so happen to create the very functionality a week ago</a>. There are actually quite a lot of such scripts, but I liked Terry&#8217;s for its ease of use and simplicity. Plus, it uses Prototype JS, which is already included in everyone&#8217;s installation of WordPress. Nice!</p>
<p>And after fooling around for a bit, I finally made it!</p>
<p><a href="http://playworkplay.com/download/prologue-140.zip"><img src="http://i269.photobucket.com/albums/jj50/playworkplay/blog/prologue-140.png" alt="Download Prologue-140!" /></a></p>
<p>Here you go, <a href="http://playworkplay.com/download/prologue-140.zip">download Prologue Theme Mod, now with 140 chars limit!</a></p>
<h3>Final Note</h3>
<p>I didn&#8217;t create the Prologue Theme, <strong>Joseph Scott</strong> and <strong>Matt Thomas</strong> from <a href="http://automattic.com/">Automattic</a> did. I didn&#8217;t create the character-limiting JS functionality as well, it was made by <strong>Terri Ann</strong>.  All credits should go to them. I didn&#8217;t do much but combine the two things together.</p>
<p>Also, since the limiter is done by Javascript, you will be able to bypass the chars limit if you turn it off. But hey, it&#8217;s your own blog, so I don&#8217;t think that would be too big of a problem <img src='http://playworkplay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks, and hope you like it! (Please don&#8217;t bother them if there&#8217;s bug with the mod, let me know instead.)</p>
<h3>Miscellanea</h3>
<p><a href="http://blog.wearesakuzaku.com/ive-reached-my-limit-approaches-to-character-number-cutoffs/">Here&#8217;s a great topic regarding the design of limited characters input</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://playworkplay.com/blog/prologue-theme-mod-with-128-chars-limit/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Understanding comments-popup.php</title>
		<link>http://playworkplay.com/blog/understanding-comments-popupphp/</link>
		<comments>http://playworkplay.com/blog/understanding-comments-popupphp/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 01:55:45 +0000</pubDate>
		<dc:creator>Hafiz Rahman</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://playworkplay.com/blog/understanding-comments-popupphp/</guid>
		<description><![CDATA[I have a confession to make.
Up until now, I didn&#8217;t have any idea how comments-popup.php works. Oh, it&#8217;s not like I haven&#8217;t done any research. The Codex&#8217;s Theme Development page, for instance, explains this file as:
The popup comments template. If not present, comments-popup.php from the &#8220;default&#8221; Theme is used.
And it doesn&#8217;t link to any specific [...]]]></description>
			<content:encoded><![CDATA[<p>I have a confession to make.</p>
<p>Up until now, I didn&#8217;t have any idea how <strong>comments-popup.php</strong> works. Oh, it&#8217;s not like I haven&#8217;t done any research. The Codex&#8217;s <a href="http://codex.wordpress.org/Theme_Development">Theme Development</a> page, for instance, explains this file as:</p>
<blockquote><p>The popup comments template. If not present, comments-popup.php from the &#8220;default&#8221; Theme is used.</p></blockquote>
<p>And it doesn&#8217;t link to any specific page explaining more about it. On another page, <a href="http://codex.wordpress.org/Using_Themes">Using Themes</a>, the information is even more sparse:</p>
<blockquote><p>Popup Comments Template = comments-popup.php</p></blockquote>
<p>For quite a long time, my understanding is that this file is used if, somewhere within WordPress, the option to display comments as a popup is activated. When that magic switch is on, people who click the comment link will get a popup window with the comment area inside it. The question is, where on earth do I find that option?</p>
<p>Oh, don&#8217;t ask me how many hours I&#8217;ve spent looking around for it. I&#8217;m even tempted to enter the famous <a href="http://en.wikipedia.org/wiki/Konami_code">Konami Code</a> inside the WP admin area just to see if a secret page will open and show me the magic &#8220;Display Comment as Popup&#8221; option&mdash;it&#8217;s really that hard to find!</p>
<p>And no wonder. I just got the revelation today, and it turns out there&#8217;s never been such option within the admin area. Nope. I was digging in the wrong place.</p>
<p>The option to use comments-popup.php, ladies and gentlemen, depends solely on the presence of a single PHP line inside a theme&#8217;s header file. Go open the header.php of the Classic theme (available in any default install of WordPress), line 21 you will see:</p>
<pre class="brush: php">
&lt;?php //comments_popup_script(); // off by default ?&gt;
</pre>
<p>Yes! That&#8217;s the magic switch. The Holy Grail of Popup Commenting. I uncommented that and, bam, the very first WordPress comment popup appared before my very eyes. Try it.</p>
<p>By searching for that PHP function into the Codex, I found this <a href="http://codex.wordpress.org/FAQ_Working_with_WordPress#Can_I_have_popup_comments.3F">small but complete explanation about popup comments</a>, which I wished I&#8217;ve found before.</p>
<p>Anyways, it&#8217;s also interesting to note that many, many themes out there have comments-popup.php inside them but no comments_popup_script() function, making it practically useless. It&#8217;s not even available within Kubrick, WordPress&#8217;s current default theme.</p>
<p>I&#8217;m not sure why comments_popup_script() function is not included within the default theme (not even in commented form like the one inside the classic theme); to me and many others, Kubrick is the first theme we tear apart and learn in the process. Perhaps the usage of popup window is discouraged?</p>
<p>I&#8217;m not sure. But in my case, I&#8217;m very likely to leave out the comments-popup.php like I often do. I used to do it out of the fact that I don&#8217;t know what it does, and because Sandbox theme&mdash;another good theme I learn a lot from&mdash;does not have it. But now, after some thinking, I&#8217;ll just leave it out for one more reason:</p>
<p>I&#8217;ve never ever visit a WP-powered blog with popup comments (have you?). I&#8217;m sure that&#8217;s what most users experience as well&mdash;we&#8217;re already accustomed to the open-new-page-for-comments behavior. </p>
<p>Better not mess with that.</p>
]]></content:encoded>
			<wfw:commentRss>http://playworkplay.com/blog/understanding-comments-popupphp/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>
