<?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>Zeo &#187; WordPress</title>
	<atom:link href="http://zeo.unic.net.my/all/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://zeo.unic.net.my</link>
	<description>Safirul Alredha on web, WordPress, K2, Apple, ...</description>
	<lastBuildDate>Wed, 09 Jun 2010 15:34:46 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress.org Support Forum</title>
		<link>http://zeo.unic.net.my/wordpress-org-support-forum/</link>
		<comments>http://zeo.unic.net.my/wordpress-org-support-forum/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 16:15:00 +0000</pubDate>
		<dc:creator>Zeo</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://zeo.unic.net.my/?p=1110</guid>
		<description><![CDATA[For the past couple of weeks, I suddenly had an urge to hang out at WordPress.org support forum. All I can say that it was a whole new experience. Reminds me a lot when I was active in K2 forum &#8211; answering question and request free of charge!
I think my WordPress ninja skill has been [...]]]></description>
			<content:encoded><![CDATA[<p>For the past couple of weeks, I suddenly had an urge to hang out at WordPress.org support forum. All I can say that it was a whole new experience. Reminds me a lot when I was active in K2 forum &ndash; <em>answering question and request free of charge!</em></p>
<p>I think my WordPress ninja skill has been upgraded to another level.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeo.unic.net.my/wordpress-org-support-forum/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress [gallery]: Force x Number of Columns</title>
		<link>http://zeo.unic.net.my/wordpress-gallery-force-x-number-of-columns/</link>
		<comments>http://zeo.unic.net.my/wordpress-gallery-force-x-number-of-columns/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 10:00:31 +0000</pubDate>
		<dc:creator>Zeo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[columns]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[shortcode]]></category>

		<guid isPermaLink="false">http://zeo.unic.net.my/?p=1028</guid>
		<description><![CDATA[Does anyone know the easiest way for WordPress &#91;gallery&#93; to force x number of columns display without tampering the core or manually set the columns value to the shortcode?
I could only figure out 2 possible ways: 

function / code duplication
Regular expression

If you use &#91;gallery&#93; shortcode without setting the columns value, the default is set to [...]]]></description>
			<content:encoded><![CDATA[<p>Does anyone know the easiest way for <a rel="nofollow" href="http://codex.wordpress.org/Gallery_Shortcode">WordPress <code>&#91;gallery&#93;</code></a> to force <code>x</code> number of columns display without tampering the core or manually set the columns value to the shortcode?</p>
<p>I could only figure out 2 possible ways: </p>
<ol>
<li>function / code duplication</li>
<li>Regular expression</li>
</ol>
<p>If you use <code>&#91;gallery&#93;</code> shortcode without setting the columns value, the default is set to 3. Some WordPress theme can either fit 3 or more column per row or less. Below is an example to force <code>&#91;gallery&#93;</code> columns to 2 to any post or page that uses <code>&#91;gallery&#93;</code> shortcode:</p>
<pre>
function gallery_columns($content){
	$columns = 2;
	$pattern = array(
		'/(\&#91;gallery(.*?)columns="(&#91;0-9&#93;)"(.*?)\&#93;)/ie',
		'/(\&#91;gallery\&#93;)/ie',
		'/(\&#91;gallery(.*?)\&#93;)/ie'
	);
	$replace = 'stripslashes(strstr("\1", "columns=\"$columns\"") ? "\1" : "&#91;gallery \2 \4 columns=\"$columns\"&#93;")';

	return preg_replace($pattern, $replace, $content);
}

add_filter('the_content', 'gallery_columns');
</pre>
<p><code>$columns</code> can be set to any numeric value. If <code>&#91;gallery&#93;</code> columns is set to 0, no row breaks will be included. </p>
<p>There are probably some hidden drawbacks to the method above. Feel free to share if you have any other solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeo.unic.net.my/wordpress-gallery-force-x-number-of-columns/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Money is the motivation</title>
		<link>http://zeo.unic.net.my/money-is-the-motivation/</link>
		<comments>http://zeo.unic.net.my/money-is-the-motivation/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 05:04:12 +0000</pubDate>
		<dc:creator>Zeo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[motivation]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://zeo.unic.net.my/?p=1017</guid>
		<description><![CDATA[I hate to admit this but if it wasn&#8217;t for that particular someone that pay me (or was it a donation?) to update this theme, it probably took ages for me to do so.
It feels really great once you start to see the result. This probably too late to mention, but WordPress 2.7 is awesome. [...]]]></description>
			<content:encoded><![CDATA[<p>I hate to admit this but if it wasn&#8217;t for that particular someone that pay me (or was it a donation?) to update this theme, it probably took ages for me to do so.</p>
<p>It feels really great once you start to see the result. This probably too late to mention, but <a rel="nofollow" href="http://codex.wordpress.org/Version_2.7">WordPress 2.7</a> is awesome. Sticky post, comment threading and paging, reply to comments, new template tags has been added to this theme. Hoping to repackage it soon for public consumption.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeo.unic.net.my/money-is-the-motivation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Remove WordPress [gallery] shortcode embedded CSS</title>
		<link>http://zeo.unic.net.my/remove-wordpress-gallery-shortcode-embedded-css/</link>
		<comments>http://zeo.unic.net.my/remove-wordpress-gallery-shortcode-embedded-css/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 06:26:40 +0000</pubDate>
		<dc:creator>Zeo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[shortcode]]></category>

		<guid isPermaLink="false">http://zeo.unic.net.my/?p=954</guid>
		<description><![CDATA[Dump this code anywhere in Theme&#8217;s template functions.php file (For example, functions.php file for a Theme named &#8220;default&#8221; would probably reside in the directory wp-content/themes/default/functions.php):

add_filter('gallery_style',
	create_function(
		'$css',
		'return preg_replace("#&#60;style type=\'text/css\'&#62;(.*?)&#60;/style&#62;#s", "", $css);'
		)
	);

And these are the classes for your stylesheet:

.gallery {}
.gallery-item {}
.gallery-icon {}
.gallery-caption {}

]]></description>
			<content:encoded><![CDATA[<p>Dump this code anywhere in Theme&#8217;s template <a rel="nofollow" href="http://codex.wordpress.org/Theme_Development#Functions_File"><tt>functions.php</tt></a> file (For example, <tt>functions.php</tt> file for a Theme named &#8220;default&#8221; would probably reside in the directory <tt>wp-content/themes/default/functions.php</tt>):</p>
<pre>
add_filter('gallery_style',
	create_function(
		'$css',
		'return preg_replace("#&lt;style type=\'text/css\'&gt;(.*?)&lt;/style&gt;#s", "", $css);'
		)
	);
</pre>
<p>And these are the classes for your stylesheet:</p>
<pre>
.gallery {}
.gallery-item {}
.gallery-icon {}
.gallery-caption {}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://zeo.unic.net.my/remove-wordpress-gallery-shortcode-embedded-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress.tv</title>
		<link>http://zeo.unic.net.my/wordpress-dot-tv/</link>
		<comments>http://zeo.unic.net.my/wordpress-dot-tv/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 07:21:59 +0000</pubDate>
		<dc:creator>Zeo</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[automattic]]></category>

		<guid isPermaLink="false">http://zeo.unic.net.my/?p=947</guid>
		<description><![CDATA[WordPress.tv &#8212; a great visual resource for those WordPress user who doesn&#8217;t like to read.
]]></description>
			<content:encoded><![CDATA[<p><a rel="nofollow" href="http://wordpress.tv">WordPress.tv</a> &mdash; a great visual resource for those WordPress user who doesn&#8217;t like to read.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeo.unic.net.my/wordpress-dot-tv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
