<?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>Mark Leong</title>
	<atom:link href="http://www.markyleong.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markyleong.com</link>
	<description>Christianity. Books. Computers. The web.</description>
	<lastBuildDate>Fri, 03 Sep 2010 14:20:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>No ordinary people</title>
		<link>http://www.markyleong.com/no-ordinary-people/</link>
		<comments>http://www.markyleong.com/no-ordinary-people/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 07:32:31 +0000</pubDate>
		<dc:creator>Mark Leong</dc:creator>
				<category><![CDATA[Christianity]]></category>
		<category><![CDATA[quote]]></category>

		<guid isPermaLink="false">http://www.markyleong.com/?p=876</guid>
		<description><![CDATA[Thank you C.S. Lewis for stating so eloquently one of the awesome responsibilities of being made in the image of God – It is a serious thing to live in a society of possible gods and goddesses, to remember that the dullest and most uninteresting person you talk to may one day be a creature [...]]]></description>
			<content:encoded><![CDATA[<p>Thank you C.S. Lewis for stating so eloquently one of the awesome responsibilities of being made in the image of God –</p>
<blockquote><p>It is a serious thing to live in a society of possible gods and goddesses, to remember that the dullest and most uninteresting person you talk to may one day be a creature which, if you saw it now, you would be strongly tempted to worship, or else a horror and a corruption such as you now meet, if at all, only in a nightmare. All day long we are, in some degree, helping each other to one or other of these destinations. It is in the light of these overwhelming possibilities, it is with the awe and the circumspection proper to them, that we should conduct all our dealings with one another, all friendships, all loves, all play, all politics. There are no ‘ordinary’ people. You have never talked to a mere mortal&#8230; It is immortals whom we joke with, work with, marry, snub and exploit&#8211;immortal horrors or everlasting splendours. </p></blockquote>
<p><em>The Weight of Glory</em>, C.S. Lewis, pp. 14-15</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markyleong.com/no-ordinary-people/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Leona Lewis on the pursuit of happiness</title>
		<link>http://www.markyleong.com/leona-lewis-on-the-pursuit-of-happiness/</link>
		<comments>http://www.markyleong.com/leona-lewis-on-the-pursuit-of-happiness/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 12:30:52 +0000</pubDate>
		<dc:creator>Mark Leong</dc:creator>
				<category><![CDATA[Music & video]]></category>

		<guid isPermaLink="false">http://www.markyleong.com/?p=873</guid>
		<description><![CDATA[(Link to embedded video: http://www.youtube.com/watch?v=7Mt7Nfq1CJc) I must say that I really like &#8216;Happy&#8217; by Leona Lewis. It&#8217;s a beautiful song and Lewis&#8217; vocal performance is stunning; it might well be my favourite pop song of the year. But I think it&#8217;s a good song not just because it sounds nice, but also because of the [...]]]></description>
			<content:encoded><![CDATA[<p><object width="500" height="400"><param name="movie" value="http://www.youtube.com/v/7Mt7Nfq1CJc&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed  src="http://www.youtube.com/v/7Mt7Nfq1CJc&#038;fs=1" type="application/x-shockwave-flash" width="500" height="400" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>(Link to embedded video: <a href="http://www.youtube.com/watch?v=7Mt7Nfq1CJc">http://www.youtube.com/watch?v=7Mt7Nfq1CJc</a>)</p>
<p>I must say that I really like &#8216;Happy&#8217; by Leona Lewis. It&#8217;s a beautiful song and Lewis&#8217; vocal performance is stunning; it might well be my favourite pop song of the year. But I think it&#8217;s a good song not just because it sounds nice, but also because of the message that it conveys. If you don&#8217;t know the song, watching the <a href="http://www.youtube.com/watch?v=-jCDnwldrt8">official video clip on YouTube</a> is probably the best way to understand the story it tells.</p>
<p>The song begins with the protagonist saying that her life isn&#8217;t the way it should be, for she wants to be happy but finds herself &#8216;so unhappy&#8217;. In doing so it admits that life isn&#8217;t all hunky-dory, that the world could and should be a better place. The song then goes on to say that we have two choices: either to &#8216;stand by the side&#8217; and &#8216;watch this life pass me by&#8217; or to pursue happiness in romance. In the song, the protagonist refuses to accept the former, so she runs after happiness in a romantic relationship. If you watch the <a href="http://www.youtube.com/watch?v=-jCDnwldrt8">video clip on YouTube</a> you will see that all seems to be going well until it is revealed at the climax of the song that her lover has rejected her to be with another woman.</p>
<p>This is where the song really shines, for it exposes the impotence of romantic relationships as the ultimate source of meaning and joy in life. It unmasks the lie that says &#8216;once I find the guy/girl of my dreams, I&#8217;ll be happy.&#8217; This is a theme which is repeated, either explicitly or by inference, in many of the other tracks on the album. (If you&#8217;re interested: &#8216;Can&#8217;t Breathe&#8217;, &#8216;Brave&#8217;, &#8216;Outta my head&#8217;, &#8216;My Hands&#8217;, &#8216;Love Letter&#8217;, &#8216;Broken&#8217;, &#8216;Naked&#8217; and &#8216;Alive&#8217;).</p>
<p>Despite being a beautiful song, the story that &#8216;Happy&#8217; tells is in some ways a tragedy. The protagonist sees the powerlessness of romantic relationships to provide ultimate happiness and satisfaction, but she knows no other way to live her life. This is the cry of the chorus: &#8216;So what if it hurts me? So what it I break down? So what if this world just throws me off the edge, my feet run out of ground.&#8217; Sadly, the song ends with this tension unresolved, the question of where to find happiness unanswered.</p>
<h3>Where do you look for happiness?</h3>
<p>Each of us has an answer to the question of where to find happiness and satisfaction. Even if it&#8217;s not one we&#8217;ve put into words before, it&#8217;s there somewhere deep inside us, often more obvious in others than in ourselves. </p>
<p>Some common answers are relationships, possessions, religious observance and experiences. Although each of these things provide some temporary satisfaction and happiness, many people, if they are honest, as this song is, will admit that none of them give us what we really long for. Like the late American billionaire John D. Rockefeller, who said, &#8216;just a little bit more,&#8217; in reply to the question of how much money is enough, we find that these things never truly satisfy.</p>
<p>So why do we desire what we cannot find? Is life just a great tragedy, a cosmic joke? Should we be bothered that we want what we seem to be unable to get? </p>
<p>C.S. Lewis&#8217; answer was this: </p>
<blockquote><p>&#8216;If I find in myself desires which nothing in this world can satisfy, the only logical explanation is that I was made for another world.&#8217;</p></blockquote>
<p>This is the answer that the Bible gives as well. The Bible speaks of a relational God existing in three persons &#8212; Father, Son and Spirit. The Father spoke the universe into existence through and for the Son, just because he loved him. It speaks of an eternal relationship of love between Father, Son and Spirit. It speaks of mankind being made in God&#8217;s likeness, to know God and to worship him.</p>
<p>But it also speaks of mankind&#8217;s rebellion against God in looking for satisfaction outside of a relationship with him. This happened when the first man and woman believed the lie that they would be better off doing things their way rather than God&#8217;s. In doing so they rejected the kingship of God over their lives and chose to make their lives into their own little kingdoms. The result of this was separation from God. </p>
<p>One of the symptoms of this separation is what is described in this song: a longing for happiness and satisfaction that is met by nothing in this world. Because we have forsaken God, who is the fountain of living waters, we find ourselves perpetually thirsty. Like someone shipwrecked on a raft in the middle of the sea, we try drinking the saltwater around us, but we find it only makes us thirstier than we were before.</p>
<p>If the Bible&#8217;s story ended there, it would be no less of a tragedy that the story told by &#8216;Happy&#8217;. But it doesn&#8217;t; the eternal Son became a man, lived, died and rose again to life to change the course of history forever. When he was alive, Jesus said, &#8216;if anyone thirsts, let him come to me and drink.&#8217; He could say this because he was about to remove the barrier between God and us by dying to take upon himself the punishment we deserved so that by trusting in him we might have a restored relationship with God.</p>
<p>Once the sin that separates us from God is dealt with, the way to God is open: we can now know God and worship him, just as he intended from the beginning. As we do so, we will find that knowing happiness and satisfaction in this life is no mere pipe dream, for we will be in relationship with the one of whom King David wrote of in the Psalms, &#8216;you make known to me the path of life; in your presence there is fullness of joy; at your right hand are pleasures forevermore.&#8217;</p>
<p>What do you think of &#8216;Happy&#8217; by Leona Lewis? Does your source of happiness deliver?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markyleong.com/leona-lewis-on-the-pursuit-of-happiness/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Chatbible continues</title>
		<link>http://www.markyleong.com/chatbible-continues/</link>
		<comments>http://www.markyleong.com/chatbible-continues/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 10:27:47 +0000</pubDate>
		<dc:creator>Mark Leong</dc:creator>
				<category><![CDATA[Christianity]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.markyleong.com/?p=872</guid>
		<description><![CDATA[Chatbible is an experiment in interactive discussion of the Bible on Twitter, launched in early May 2010. See my post on Chatbible or visit the Chatbible Twitter profile for more info or to get involved. Schedule for the weeks ahead Week Dates Passage 10 19-25 Jul Winning through losing &#8211; Romans 8:18-39 11 26-31 Jul [...]]]></description>
			<content:encoded><![CDATA[<p>Chatbible is an experiment in interactive discussion of the Bible on Twitter, launched in early May 2010. See <a href="http://www.markyleong.com/chatbible/">my post on Chatbible</a> or visit the <a href="http://twitter.com/Chatbible">Chatbible Twitter profile</a> for more info or to get involved.</p>
<h3>Schedule for the weeks ahead</h3>
<table>
<thead>
<tr>
<th>Week</th>
<th>Dates</th>
<th>Passage</th>
</tr>
</thead>
<tbody>
<tr>
<td>10</td>
<td>19-25 Jul</td>
<td>Winning through losing &#8211; Romans 8:18-39</td>
</tr>
<tr>
<td>11</td>
<td>26-31 Jul</td>
<td>Rooted &#8211; Psalm 1</td>
</tr>
<tr>
<td>12</td>
<td>2-8 Aug</td>
<td>What healing? &#8211; Mark 2:1-12</td>
</tr>
<tr>
<td>13</td>
<td>13-15 Aug</td>
<td>Strength in weakness &#8211; Isaiah 40:27-31</td>
</tr>
<tr>
<td>14</td>
<td>16-22 Aug</td>
<td>Battle of wills &#8211; Matthew 4:1-11</td>
</tr>
<tr>
<td>15</td>
<td>23-29 Aug</td>
<td>Short &amp; sweet &#8211; Philemon</td>
</tr>
<tr>
<td>16</td>
<td>30 Aug &#8211; 5 Sep</td>
<td>A curious epitaph &#8211; Nehemiah 13</td>
</tr>
<tr>
<td>17</td>
<td>6-12 Sep</td>
<td>Blindness and sight &#8211; John 9</td>
</tr>
<tr>
<td>18</td>
<td>13-19 Sep</td>
<td>Restoring the crumpled prophet &#8211; 1 Kings 19:1-18</td>
</tr>
<tr>
<td>19</td>
<td>20-26 Sep</td>
<td>Shock and awe &#8211; Habakkuk 3</td>
</tr>
<tr>
<td>20</td>
<td>27 Sep &#8211; 3 Oct</td>
<td>Jude the obscure? &#8211; Jude 20-25</td>
</tr>
<tr>
<td>21</td>
<td>4-10 Oct</td>
<td>A theology of weakness &#8211; 2 Corinthians 12:1-10</td>
</tr>
<tr>
<td>22</td>
<td>11-17 Oct</td>
<td>Wealth and folly &#8211; Luke 12:13-21</td>
</tr>
<tr>
<td>23</td>
<td>18-24 Oct</td>
<td>Come back to me &#8211; Hosea 14</td>
</tr>
<tr>
<td>24</td>
<td>25-31 Oct</td>
<td>What sort of battle? &#8211; Ephesians 6:10-18</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.markyleong.com/chatbible-continues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress hack: Force wp_list_pages() to print current_page_item class</title>
		<link>http://www.markyleong.com/wordpress-hack-force-wp_list_pages-to-print-current_page_item-class/</link>
		<comments>http://www.markyleong.com/wordpress-hack-force-wp_list_pages-to-print-current_page_item-class/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 09:26:15 +0000</pubDate>
		<dc:creator>Mark Leong</dc:creator>
				<category><![CDATA[Web work]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.markyleong.com/?p=870</guid>
		<description><![CDATA[The wp_list_pages() function displays a list of WordPress pages as links and is often used to display navigation menus. When it prints the list of links, it adds a CSS class current_page_item to the list item tag of the current page. This allows custom styling to be applied to the link e.g. to highlight a [...]]]></description>
			<content:encoded><![CDATA[<p>The <code>wp_list_pages()</code> function displays a list of WordPress pages as links and is often used to display navigation menus. When it prints the list of links, it adds a CSS class <code>current_page_item</code> to the list item tag of the current page. This allows custom styling to be applied to the link e.g. to highlight a link to indicate the page that the visitor is on.</p>
<p><strong>The limitation with this is that it only works if you are viewing a page or an attachment, or are on the posts page (as set in Settings > Reading).</strong></p>
<p>I was working on an archive page for a custom taxonomy and wanted to have the <code>current_page_item</code> CSS class added to the list item of a particular link of my choice. After poking around a bit in the <code>wp_list_pages()</code> code listing, I discovered it’s possible to hack the <code>$wp_query</code> object to make <code>wp_list_pages()</code> do what I wanted it to. </p>
<p>Here’s how:</p>
<pre name="code" class="php">
// Get the ID of the link you want highlighted. Either:
// - hardcode it (as below)
// - or query the database to get it
$the_id = "1";

// Make a copy of the $wp_query object
$temp_query = clone $wp_query;

// Trick WordPress into thinking we're on a page with ID $the_id
$wp_query->is_page = 1;
$wp_query->queried_object_id = $the_id;

// Display pages
wp_list_pages("title_li=");

// Reset $wp_query
$wp_query = clone $temp_query;
</pre>
<p><strong>Notes:</strong></p>
<ul>
<li><code>$wp_query->is_page</code> needs to be set to <code>1</code> (true) because <code>wp_list_pages()</code> does not set a current page unless <code>is_page()</code> or <code>is_attachment()</code> or <code>$wp_query->is_posts_page</code> returns true.</li>
<li>If you only want this code to run when you are on certain page you can wrap it in an <code>if</code> statement that checks a WordPress <a href="http://codex.wordpress.org/Conditional_Tags">conditional tag</a>. In my case I only wanted to run this code when a taxonomy archive was being displayed so I used <code>is_tax()</code>.</li>
<li>See <a href="http://www.jenst.se/2008/03/17/wordpress-get-id-by-post-or-page-name/">http://www.jenst.se/2008/03/17/wordpress-get-id-by-post-or-page-name/</a> on how to query the database by post/page name to get an ID.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.markyleong.com/wordpress-hack-force-wp_list_pages-to-print-current_page_item-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Website launched: Riverside Church</title>
		<link>http://www.markyleong.com/website-launched-riverside-church/</link>
		<comments>http://www.markyleong.com/website-launched-riverside-church/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 21:51:51 +0000</pubDate>
		<dc:creator>Mark Leong</dc:creator>
				<category><![CDATA[Web work]]></category>
		<category><![CDATA[website-launch]]></category>

		<guid isPermaLink="false">http://www.markyleong.com/?p=869</guid>
		<description><![CDATA[Over the last few months, I&#8217;ve been working on a redesign of the website of my church in Birmingham, Riverside Church. Today the new website went live! Home page: Normal content page: Please let me know what you think by leaving a comment, thanks!]]></description>
			<content:encoded><![CDATA[<p>Over the last few months, I&#8217;ve been working on a redesign of the website of my church in Birmingham, <a href="http://www.riverside-church.org.uk/">Riverside Church</a>. Today the new website went live!</p>
<p><strong>Home page:</strong></p>
<p><a href="http://www.riverside-church.org.uk/"><img src="http://www.markyleong.com/wp-content/uploads/2010/07/riverside_church_01_thumb.png" alt="" width="480" height="361" class="alignnone size-full wp-image-867" /></a></p>
<p><strong>Normal content page:</strong></p>
<p><a href="http://www.riverside-church.org.uk/about/about-riverside/"><img src="http://www.markyleong.com/wp-content/uploads/2010/07/riverside_church_02_thumb.png" alt="" width="480" height="361" class="alignnone size-full wp-image-868" /></a></p>
<p>Please let me know what you think by leaving a comment, thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markyleong.com/website-launched-riverside-church/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Christian music topping the charts?</title>
		<link>http://www.markyleong.com/christian-music-topping-the-charts/</link>
		<comments>http://www.markyleong.com/christian-music-topping-the-charts/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 07:35:41 +0000</pubDate>
		<dc:creator>Mark Leong</dc:creator>
				<category><![CDATA[Music & video]]></category>

		<guid isPermaLink="false">http://www.markyleong.com/?p=866</guid>
		<description><![CDATA[Recently there have been a number of Facebook campaigns aiming to get Christian music to the top of the charts. This got me thinking a bit about music charts, what makes music good and the wisdom of jumping on the Facebook campaign bandwagon. Why do we have music charts? Music charts list top-selling singles, albums [...]]]></description>
			<content:encoded><![CDATA[<p>Recently there have been a number of Facebook campaigns aiming to get Christian music to the top of the charts. This got me thinking a bit about music charts, what makes music good and the wisdom of jumping on the Facebook campaign bandwagon.</p>
<h3>Why do we have music charts?</h3>
<p>Music charts list top-selling singles, albums or artists. The point of having them is to provide information on which singles, albums or artists are currently selling well. They give an indication to individuals what music they might want to listen to or buy, radio stations what to play and music stores what to stock. This means that music charts are most useful when they feature lots of good music. </p>
<h3>What then is good music?</h3>
<p>In his little book <strong>Art and the Bible</strong>, Francis Schaeffer lists four criteria for judging art (i.e. art in general, not just &#8216;high art&#8217;). I’ve found them very helpful, so I’ll reproduce them here in an abbreviated and slightly modified form.</p>
<ol>
<li><strong>Technical excellence</strong> &#8212; Is it technically good music? Are the lyrics well written?</li>
<li><strong>Validity</strong> &#8212; Is the artist being true to their worldview or are they only producing music for money or for the sake of being accepted?</li>
<li><strong>Intellectual content</strong> (the worldview which comes through) &#8212; How does the worldview that is communicated by the artist’s body of work match up to Scripture?</li>
<li><strong>Integration of content and vehicle</strong> &#8212; Does the style of music match the content?</li>
</ol>
<p>These are the standards by which we should measure music or an artist.</p>
<p>One of the implications of this is that music isn’t good just because it is by an artist who is a Christian. Neither is it good just because it has Christian lyrics. This doesn’t mean that music by a Christian artist or songs that have Christian lyrics are always bad, just that they shouldn’t be judged on that basis alone as it ignores the other aspects of the work.</p>
<h3>So what?</h3>
<p>Where does this leave us? I want to suggest that to make music charts most effective in achieving the purpose for which they were made, we should make it our aim to buy good music. If any song makes it to the top of the charts, it should get there on its own steam &#8212; simply because it is good.</p>
<p>If you are a Christian reading this, instead of using your money, time and effort in getting music that you wouldn’t otherwise have bought to the top of the charts, why not invest it in <a href="/schaeffer-on-the-christian-life-as-a-work-of-art/">living a life that is a work of art</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markyleong.com/christian-music-topping-the-charts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schaeffer on ‘The Christian Life as a Work of Art’</title>
		<link>http://www.markyleong.com/schaeffer-on-the-christian-life-as-a-work-of-art/</link>
		<comments>http://www.markyleong.com/schaeffer-on-the-christian-life-as-a-work-of-art/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 11:30:34 +0000</pubDate>
		<dc:creator>Mark Leong</dc:creator>
				<category><![CDATA[Reading]]></category>
		<category><![CDATA[art]]></category>

		<guid isPermaLink="false">http://www.markyleong.com/?p=865</guid>
		<description><![CDATA[I&#8217;ve just finished reading Art and the Bible by Francis A. Schaeffer. It&#8217;s an excellent little book (only 94 pages!) and the first one I&#8217;ve read by Schaeffer &#8212; but not the last I expect! Here&#8217;s a little quote from the end of the book: No work of art is more important than the Christian’s [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished reading <strong><a href="http://www.amazon.co.uk/dp/083083401X/">Art and the Bible</a></strong> by <a href="http://en.wikipedia.org/wiki/Francis_Schaeffer">Francis A. Schaeffer</a>. It&#8217;s an excellent little book (only 94 pages!) and the first one I&#8217;ve read by Schaeffer &#8212; but not the last I expect!</p>
<p>Here&#8217;s a little quote from the end of the book:</p>
<blockquote><p>No work of art is more important than the Christian’s own life, and every Christian is cared upon to be an artist in this sense. He may have no gift of writing, no gift of composing or singing, but each man has the gift of creativity in terms of the way he lives his life. In this sense, the Christian’s life is to be an art work. The Christian’s life is to be a thing of beauty in the midst of a lost and despairing world.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.markyleong.com/schaeffer-on-the-christian-life-as-a-work-of-art/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set WordPress custom post types order in admin</title>
		<link>http://www.markyleong.com/set-wordpress-custom-post-types-order-in-admin/</link>
		<comments>http://www.markyleong.com/set-wordpress-custom-post-types-order-in-admin/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 16:51:14 +0000</pubDate>
		<dc:creator>Mark Leong</dc:creator>
				<category><![CDATA[Web work]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.markyleong.com/?p=864</guid>
		<description><![CDATA[One of the long-awaited new features of WordPress 3.0 is custom post types. By default, custom posts with the post capability_type (as opposed to page, attachment, revision, or nav-menu-item) are listed newest to oldest in the WordPress backend. This makes sense if these are blog posts, but if they are some other content type (such [...]]]></description>
			<content:encoded><![CDATA[<p>One of the long-awaited new features of WordPress 3.0 is <a href="http://codex.wordpress.org/Custom_Post_Types">custom post types</a>. </p>
<p>By default, custom posts with the <em>post</em> <a href="http://codex.wordpress.org/Function_Reference/register_post_type">capability_type</a> (as opposed to page, attachment, revision, or nav-menu-item) are listed newest to oldest in the WordPress backend. This makes sense if these are blog posts, but if they are some other content type (such as quotes, movies, books or contacts) it is often desirable to have them listed alphabetically.</p>
<p>To achieve this, add the following code to your <strong>functions.php</strong> file, replacing <strong>POST_TYPE</strong> (line 7) with the name of the post type that you want to have listed alphabetically.</p>
<pre name="code" class="php">
function set_custom_post_types_admin_order($wp_query) {
  if (is_admin()) {

    // Get the post type from the query
    $post_type = $wp_query->query['post_type'];

    if ( $post_type == 'POST_TYPE') {

      // 'orderby' value can be any column name
      $wp_query->set('orderby', 'title');

      // 'order' value can be ASC or DESC
      $wp_query->set('order', 'ASC');
    }
  }
}
add_filter('pre_get_posts', 'set_custom_post_types_admin_order');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.markyleong.com/set-wordpress-custom-post-types-order-in-admin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>New website launched: Kingsbridge Project</title>
		<link>http://www.markyleong.com/new-website-launched-kingsbridge-project/</link>
		<comments>http://www.markyleong.com/new-website-launched-kingsbridge-project/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 14:46:09 +0000</pubDate>
		<dc:creator>Mark Leong</dc:creator>
				<category><![CDATA[Web work]]></category>
		<category><![CDATA[website-launch]]></category>

		<guid isPermaLink="false">http://markyleong.dreamhosters.com/?p=860</guid>
		<description><![CDATA[This week saw the launch of the Kingsbridge Project website that I&#8217;ve been working on with some friends from church. The Kingsbridge Project is a consortium of faith groups, social enterprises, sports bodies and public bodies dedicated to bringing together communities in South Birmingham through sport and community activity. The initiative is currently in its [...]]]></description>
			<content:encoded><![CDATA[<p>This week saw the launch of the <a href="http://www.kingsbridge-project.org/">Kingsbridge Project</a> website that I&#8217;ve been working on with some friends from church.</p>
<p><a href="http://www.kingsbridge-project.org/"><img src="/wp-content/uploads/2010/06/kingsbridge_project_thumb.png" alt="Kingsbridge Project" title="Kingsbridge Project" width="480" height="360" class="aligncenter size-full wp-image-862" /></a></p>
<p>The Kingsbridge Project is a consortium of faith groups, social enterprises, sports bodies and public bodies dedicated to bringing together communities in South Birmingham through sport and community activity. The initiative is currently in its early stages and the website is meant to serve its current needs of establishing a web presence and providing publicity. As a result I decided that instead of creating a custom design, I would use &#8216;PersonalPress&#8217;, a premium WordPress theme <a href="http://www.elegantthemes.com/">Elegant Themes</a>, so that I could get site off the ground as quickly as possible.</p>
<p>Please let me know what you think by leaving a comment, thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markyleong.com/new-website-launched-kingsbridge-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New website launched: The Malaysian Gym Directory</title>
		<link>http://www.markyleong.com/new-website-launched-the-malaysian-gym-directory/</link>
		<comments>http://www.markyleong.com/new-website-launched-the-malaysian-gym-directory/#comments</comments>
		<pubDate>Sat, 22 May 2010 09:10:53 +0000</pubDate>
		<dc:creator>Mark Leong</dc:creator>
				<category><![CDATA[Web work]]></category>
		<category><![CDATA[website-launch]]></category>

		<guid isPermaLink="false">http://www.markyleong.com/?p=850</guid>
		<description><![CDATA[A few weeks ago I was searching online for gyms in Malaysia and found that there weren&#8217;t any dedicated gym directory websites. This got me thinking and the idea of setting up an online Malaysian gym directory was born. Yesterday the website went live &#8211; you can check it out here: http://www.malaysian-gyms.com. Please let me [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I was searching online for gyms in Malaysia and found that there weren&#8217;t any dedicated gym directory websites. This got me thinking and the idea of setting up an online Malaysian gym directory was born.</p>
<p>Yesterday the website went live &#8211; you can check it out here: <a href="http://www.malaysian-gyms.com">http://www.malaysian-gyms.com</a>.</p>
<p><a href="http://www.malaysian-gyms.com"><img src="/wp-content/uploads/2010/05/malaysian_gym_directory_thumb.png" alt="The Malaysian Gym Directory" title="The Malaysian Gym Directory" width="480" height="360" class="aligncenter size-full wp-image-858" /></a></p>
<p>Please let me know what you think by leaving a comment, thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markyleong.com/new-website-launched-the-malaysian-gym-directory/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
