<?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>KNGUYENTU - PHOTOGRAPHY BY KEVIN &#38; SAP HELP BY KEVIN &#187; WordPress Tips and Hack</title>
	<atom:link href="http://knguyentu.com/wordpress/category/wordpress-tips-and-hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://knguyentu.com/wordpress</link>
	<description>Home Of SAPHELPBYKEVIN.COM , PHOTOGRAPHYBYKEVIN.NET &#38; Smilepak Blog</description>
	<lastBuildDate>Thu, 05 Nov 2009 21:37:07 +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>Upgrading to WP2.7: Wordpress Automatic Upgrade</title>
		<link>http://knguyentu.com/wordpress/2009/01/upgrading-to-wp27-wordpress-automatic-upgrade/</link>
		<comments>http://knguyentu.com/wordpress/2009/01/upgrading-to-wp27-wordpress-automatic-upgrade/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 21:49:26 +0000</pubDate>
		<dc:creator>dikiem</dc:creator>
				<category><![CDATA[WordPress Tips and Hack]]></category>
		<category><![CDATA[Wordpress 2.7]]></category>

		<guid isPermaLink="false">http://knguyentu.com/wordpress/?p=179</guid>
		<description><![CDATA[I recently upgrade from WP2.5 to WP2.7. For anyone who is interested, there is a fairly simple method on doing this upgrade. You could use the plug-in &#8220;Wordpress Automatic Upgrade&#8220;. It will automatically backup the database, download, and handle the upgrade for you in a simple manner. I completed the entire upgrade in less than [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2009%2F01%2Fupgrading-to-wp27-wordpress-automatic-upgrade%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2009%2F01%2Fupgrading-to-wp27-wordpress-automatic-upgrade%2F" height="61" width="51" /></a></div><p>I recently upgrade from WP2.5 to WP2.7. For anyone who is interested, there is a fairly simple method on doing this upgrade. You could use the plug-in &#8220;<a title="Visit plugin homepage" href="http://techie-buzz.com/wordpress-plugins/wordpress-automatic-upgrade-12-release.html">Wordpress Automatic Upgrade</a>&#8220;. It will automatically backup the database, download, and handle the upgrade for you in a simple manner. I completed the entire upgrade in less than 20 minutes using this method. Highly recommended.</p>
<p>http://wordpress.org/extend/plugins/wordpress-automatic-upgrade/</p>

<div class='amazonfeed'><h2>Hot Items From Amazon!</h2>
<div class='product'><a href='http://www.amazon.com/Cellphone-Smartphone-Universal-windshield-navigation/dp/B000NPULWO?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000NPULWO' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41v2LSiMZfL._SL75_.jpg' class='amazonfeed-product-image' alt='iPhone iTouch (iPod Touch) Apple 3G 3GS, Zune HD, HTC Touch HD / Pro / Diamond / HD2 / Pro2 / Diamond2, PDA Phone/ Cellphone / Smartphone / MP3 player Universal car mount holder vent + windshield for GPS navigation' title='iPhone iTouch (iPod Touch) Apple 3G 3GS, Zune HD, HTC Touch HD / Pro / Diamond / HD2 / Pro2 / Diamond2, PDA Phone/ Cellphone / Smartphone / MP3 player Universal car mount holder vent + windshield for GPS navigation' /><span class='amazonfeed-product-title'>iPhone iTouch (iPod Touch) Apple 3G 3GS, Zune HD, HTC Touch HD / Pro / Diamond / HD2 / Pro2 / Diamond2, PDA Phone/ Cellphone / Smartphone / MP3 player Universal car mount holder vent + windshield for GPS navigation</span></a>
</div><div class='product'><a href='http://www.amazon.com/Nikon-D3000-Digital-18-55mm-3-5-5-6G/dp/B002JCSV5I?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002JCSV5I' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/517%2BbpHK4HL._SL75_.jpg' class='amazonfeed-product-image' alt='Nikon D3000 10.2MP Digital SLR Camera with 18-55mm f/3.5-5.6G AF-S DX VR Nikkor Zoom Lens' title='Nikon D3000 10.2MP Digital SLR Camera with 18-55mm f/3.5-5.6G AF-S DX VR Nikkor Zoom Lens' /><span class='amazonfeed-product-title'>Nikon D3000 10.2MP Digital SLR Camera with 18-55mm f/3.5-5.6G AF-S DX VR Nikkor Zoom Lens</span></a>
</div><div class='product'><a href='http://www.amazon.com/Canon-SD1200IS-Stabilized-Dark-Gray/dp/B001SER492?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001SER492' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/318c%2B-DkOjL._SL75_.jpg' class='amazonfeed-product-image' alt='Canon PowerShot SD1200IS 10 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Dark Gray)' title='Canon PowerShot SD1200IS 10 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Dark Gray)' /><span class='amazonfeed-product-title'>Canon PowerShot SD1200IS 10 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Dark Gray)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Sony-MDR-J10-Clip-Ear-Headphones/dp/B000092YR1?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000092YR1' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21TP57P39FL._SL75_.jpg' class='amazonfeed-product-image' alt='Sony MDR-J10 Clip In-The-Ear Headphones - Sapphire' title='Sony MDR-J10 Clip In-The-Ear Headphones - Sapphire' /><span class='amazonfeed-product-title'>Sony MDR-J10 Clip In-The-Ear Headphones - Sapphire</span></a>
</div><div class='product'><a href='http://www.amazon.com/110CM-Multi-Disc-Light-Reflector/dp/B002ZIMEMW?SubscriptionId=0K71XE306HCHA9WYBS02&tag=usamazonfeed-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002ZIMEMW' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41uI8SXIJKL._SL75_.jpg' class='amazonfeed-product-image' alt='43&quot; 110CM Round Multi Disc Light Reflector! Portable, 5 in 1: Translucent, Silver, Gold, White, and Black! Collapsible! Perfect for Studio or any Photography Situation!' title='43&quot; 110CM Round Multi Disc Light Reflector! Portable, 5 in 1: Translucent, Silver, Gold, White, and Black! Collapsible! Perfect for Studio or any Photography Situation!' /><span class='amazonfeed-product-title'>43" 110CM Round Multi Disc Light Reflector! Portable, 5 in 1: Translucent, Silver, Gold, White, and Black! Collapsible! Perfect for Studio or any Photography Situation!</span></a>
</div><div class='product'><a href='http://www.amazon.com/Canon-PowerShot-SD1200IS-Stabilized-Blue/dp/B001SER49M?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001SER49M' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41J-nNd3zCL._SL75_.jpg' class='amazonfeed-product-image' alt='Canon PowerShot SD1200IS 10 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Blue)' title='Canon PowerShot SD1200IS 10 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Blue)' /><span class='amazonfeed-product-title'>Canon PowerShot SD1200IS 10 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Blue)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Nikon-School-DVD-Understanding-Photography/dp/B000RAIQ9A?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000RAIQ9A' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41nDy8-v5eL._SL75_.jpg' class='amazonfeed-product-image' alt='Nikon School DVD - Understanding Digital Photography' title='Nikon School DVD - Understanding Digital Photography' /><span class='amazonfeed-product-title'>Nikon School DVD - Understanding Digital Photography</span></a>
</div><div class='product'><a href='http://www.amazon.com/Pyramid-PS7KX-Amp-Power-Supply/dp/B00069RB1Q?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B00069RB1Q' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21jOErAoQ6L._SL75_.jpg' class='amazonfeed-product-image' alt='Pyramid PS7KX 5 Amp Power Supply' title='Pyramid PS7KX 5 Amp Power Supply' /><span class='amazonfeed-product-title'>Pyramid PS7KX 5 Amp Power Supply</span></a>
</div><div class='product'><a href='http://www.amazon.com/Canon-PowerShot-SD780IS12-1-Stabilized-Black/dp/B001SER47Y?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001SER47Y' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31SE8FxiiZL._SL75_.jpg' class='amazonfeed-product-image' alt='Canon PowerShot SD780IS12.1 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Black)' title='Canon PowerShot SD780IS12.1 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Black)' /><span class='amazonfeed-product-title'>Canon PowerShot SD780IS12.1 MP Digital Camera with 3x Optical Image Stabilized Zoom and 2.5-inch LCD (Black)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Kensington-Mini-Charger-Mobile-Devices/dp/B002LARN9I?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002LARN9I' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31k0wojpZ4L._SL75_.jpg' class='amazonfeed-product-image' alt='Kensington Mini Car Charger for Mobile Devices with USB Port' title='Kensington Mini Car Charger for Mobile Devices with USB Port' /><span class='amazonfeed-product-title'>Kensington Mini Car Charger for Mobile Devices with USB Port</span></a>
</div><div class='product'><a href='http://www.amazon.com/Opteka-Premium-Reference-Quick-Release-Photography/dp/B001G04VJO?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001G04VJO' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31jTKobksgL._SL75_.jpg' class='amazonfeed-product-image' alt='Opteka Premium Reference Color &amp; White Balance Grey Card Set With Quick-Release Neck Strap for Digital Photography' title='Opteka Premium Reference Color &amp; White Balance Grey Card Set With Quick-Release Neck Strap for Digital Photography' /><span class='amazonfeed-product-title'>Opteka Premium Reference Color & White Balance Grey Card Set With Quick-Release Neck Strap for Digital Photography</span></a>
</div><div class='product'><a href='http://www.amazon.com/Accessories-Collapsible-Photography-Studio-Reflector/dp/B00315B2JO?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B00315B2JO' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41p8AIc1fyL._SL75_.jpg' class='amazonfeed-product-image' alt='Photo &amp; Video Light Accessories 5 in 1 Collapsible Multi Photography Disc Studio Reflector 40&quot; X 60&quot; Oval 40x60&quot; By Ephoto' title='Photo &amp; Video Light Accessories 5 in 1 Collapsible Multi Photography Disc Studio Reflector 40&quot; X 60&quot; Oval 40x60&quot; By Ephoto' /><span class='amazonfeed-product-title'>Photo & Video Light Accessories 5 in 1 Collapsible Multi Photography Disc Studio Reflector 40" X 60" Oval 40x60" By Ephoto</span></a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://knguyentu.com/wordpress/2009/01/upgrading-to-wp27-wordpress-automatic-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP: Splitting Category Listing Into Multiple Pages</title>
		<link>http://knguyentu.com/wordpress/2008/06/wp-splitting-category-listing-into-multiple-pages/</link>
		<comments>http://knguyentu.com/wordpress/2008/06/wp-splitting-category-listing-into-multiple-pages/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 23:53:12 +0000</pubDate>
		<dc:creator>dikiem</dc:creator>
				<category><![CDATA[WordPress Tips and Hack]]></category>
		<category><![CDATA[Multiple Pages]]></category>
		<category><![CDATA[Paginate]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://knguyentu.com/wordpress/?p=146</guid>
		<description><![CDATA[Here is a little neat trick for Wordpress. Normally, you would use the WordPress tag &#8220;query_posts&#8221; to query against the database to list all of the posts relating to one or more categories.
Usually a simple query against a category would like something like this:

&#60;?php query_posts(showposts=5&#38;cat=$category);
while(have_posts()) { the_post();

}
?&#62;

Basically all this is doing is show 5 posts [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-splitting-category-listing-into-multiple-pages%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-splitting-category-listing-into-multiple-pages%2F" height="61" width="51" /></a></div><p>Here is a little neat trick for Wordpress. Normally, you would use the WordPress tag &#8220;query_posts&#8221; to query against the database to list all of the posts relating to one or more categories.</p>
<p>Usually a simple query against a category would like something like this:</p>
<p><code><br />
&lt;?php query_posts(showposts=5&amp;cat=$category);<br />
while(have_posts()) { the_post();<br />
<!-- put your loop here --><br />
}<br />
?&gt;<br />
</code></p>
<p>Basically all this is doing is show 5 posts for the category, where $category is either one or more categories depending if you have a outter loop or not. What if you have a lot of posts per category and want to only show 5 per page. Plus you want to have the previous page and next page button. That would be cool huh?</p>
<p>You can easily do that. Using the above code as example, you can easily transform it to look like this.</p>
<p>&lt;?php $paged = (get_query_var(&#8217;paged&#8217;)) ? get_query_var(&#8217;paged&#8217;) : 1; ?&gt;<br />
&lt;?php query_posts(&#8221;cat=$category&amp;posts_per_page=5&amp;paged=$paged&#8221;);<br />
while(have_posts()) { the_post();<br />
<!-- put your loop here --><br />
}<br />
?&gt;</p>
<p>Somewhere else on that same page, you need to call the function code that handle the previous page and next page logic. They look something like this</p>
<p>&lt;?php next_posts_link(&#8217;« Next Page&#8217;) ?&gt;  ||  &lt;?php previous_posts_link(&#8217;Previous Page »&#8217;) ?&gt;</p>
<p>What you&#8217;ve just done essentially is use the get_query_var to capture from the url string what page is it currently on and pass that to the page. At the bottom, it detect what page is next and previous.</p>
<p>You can see a sample in action from the SAPHELPBYKEVIN page link above.</p>
<p><strong>Additional References:</strong><br />
Wordpress Query Post: http://codex.wordpress.org/Template_Tags/query_posts</p>

<div class='amazonfeed'><h2>Hot Items From Amazon!</h2>
<div class='product'><a href='http://www.amazon.com/David-Buschs-Quick-Photoblogging-Wordpress/dp/B0032K6MDY?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0032K6MDY' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51ASwySv22L._SL75_.jpg' class='amazonfeed-product-image' alt='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' title='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' /><span class='amazonfeed-product-title'>David Busch's Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating & Promoting Your Photoblog, Softcover Book, 205 Pages</span></a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://knguyentu.com/wordpress/2008/06/wp-splitting-category-listing-into-multiple-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP: Redirect from blogger.com to another location</title>
		<link>http://knguyentu.com/wordpress/2008/06/wp-redirect-from-bloggercom-to-another-location/</link>
		<comments>http://knguyentu.com/wordpress/2008/06/wp-redirect-from-bloggercom-to-another-location/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 17:31:31 +0000</pubDate>
		<dc:creator>dikiem</dc:creator>
				<category><![CDATA[WordPress Tips and Hack]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[Blogspot]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://knguyentu.com/wordpress/?p=142</guid>
		<description><![CDATA[This should be helpful for anyone who decided to host their own blog using WordPress another location. It took me awhile to search for this since the new blogger version template style changed a bit.
http://laffers.net/howtos/howto-redirect-blogger-to-wordpress
Thanks to laffers.net for putting this together. It was extremely useful!
Here are snip of what he presented there. All credit goes [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-redirect-from-bloggercom-to-another-location%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-redirect-from-bloggercom-to-another-location%2F" height="61" width="51" /></a></div><p>This should be helpful for anyone who decided to host their own blog using WordPress another location. It took me awhile to search for this since the new blogger version template style changed a bit.</p>
<p>http://laffers.net/howtos/howto-redirect-blogger-to-wordpress</p>
<p>Thanks to laffers.net for putting this together. It was extremely useful!</p>
<p>Here are snip of what he presented there. All credit goes to him and those who supported him on this.</p>
<blockquote>
<h2>set up redirects</h2>
<p>I&#8217;m assuming that at this point you have imported your posts to the new blog at Wordpress.com (if not, go to &#8220;Manage/Import&#8221;, select the obvious choice and do what you&#8217;re said).</p>
<p>Log into your Blogger account and click your way through the awkward navigation menu until you are at the &#8220;Template/Edit HTML&#8221; page. To redirect visitors from the main page, insert the following between the <code class="codeInline">&lt;head&gt;</code> and <code class="codeInline">&lt;/head&gt;</code> tags:</p>
<p><code>&lt;meta content='6;url=http://yournewblog.wordpress.com/' http-equiv='refresh'/&gt; </code></p>
<p>Number 6 means that the redirection will take effect after 6 seconds. Replace the url with your own.</p>
<p>The tricky part comes now. We want to redirect users <strong>from individual post pages to the corresponding post pages</strong> on the new blog. For that, we need a piece of JavaScript spiced with Blogger proprietary tags. Insert the following right after &#8220;<code class="codeInline">&lt;b:section class='main' id='main' showaddelement='no'&gt;</code>&#8221; in the template:</p>
<p><code>&lt;b:widget id='Redirector' locked='true' title='Blog Posts' type='Blog'&gt;<br />
&lt;b:includable id='main'&gt;<br />
&lt;b:if cond='data:blog.pageType == "item"'&gt;<br />
&lt;b:loop values='data:posts' var='post'&gt;<br />
&lt;script type='text/javascript'&gt;<br />
var new_page=&amp;#39;yournewblog.wordpress.com/&amp;#39;;<br />
var permalink = &amp;#39;&lt;data:post.url/&gt;&amp;#39;;<br />
var timestamp = &amp;#39;&lt;data:post.timestamp/&gt;&amp;#39;;<br />
timestamp = timestamp.split(&amp;#39;/&amp;#39;);<br />
timestamp = timestamp[2]+&amp;#39;/&amp;#39;+timestamp[0]+&amp;#39;/&amp;#39;+timestamp[1];<br />
new_page = permalink.replace(/youroldblog\.blogspot\.com\/2007\/[0-9]{2}/,new_page+timestamp);<br />
new_page = new_page.replace(/\.html$/,&amp;#39;&amp;#39;);<br />
document.location.href = new_page;<br />
&lt;/script&gt;<br />
&lt;/b:loop&gt;<br />
&lt;/b:if&gt;<br />
&lt;/b:includable&gt;<br />
&lt;/b:widget&gt;</code></p>
<p>Don&#8217;t forget to enter your new blog&#8217;s URL at <code class="codeInline">var new_page =</code> .</p>
<p><em>Important note!</em> For this script to work, all your posts should have been imported to Wordpress.com using their Manage/Import function. The creation dates of all posts must match, because they are part of the permalinks.</p>
<p> </p></blockquote>
<p> </p>

<div class='amazonfeed'><h2>Hot Items From Amazon!</h2>
<div class='product'><a href='http://www.amazon.com/Timbuk2-Blogger-Laptop-Messenger-Potrero/dp/B002WC8YK2?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002WC8YK2' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41ru32ub9yL._SL75_.jpg' class='amazonfeed-product-image' alt='Timbuk2 Blogger 2.0 Laptop Messenger Bag,Potrero,M' title='Timbuk2 Blogger 2.0 Laptop Messenger Bag,Potrero,M' /><span class='amazonfeed-product-title'>Timbuk2 Blogger 2.0 Laptop Messenger Bag,Potrero,M</span></a>
</div><div class='product'><a href='http://www.amazon.com/Timbuk2-Blogger-Computer-Bag-Black/dp/B000PHO5IG?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000PHO5IG' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41aabQymx%2BL._SL75_.jpg' class='amazonfeed-product-image' alt='Timbuk2 Blogger Computer Bag,Black/Black/Black' title='Timbuk2 Blogger Computer Bag,Black/Black/Black' /><span class='amazonfeed-product-title'>Timbuk2 Blogger Computer Bag,Black/Black/Black</span></a>
</div><div class='product'><a href='http://www.amazon.com/Timbuk2-Blogger-Shoulder-Bag-Black/dp/B001F510KS?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001F510KS' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41kP-4mEPeL._SL75_.jpg' class='amazonfeed-product-image' alt='Timbuk2 Blogger Shoulder Bag (Black/Black/Black)' title='Timbuk2 Blogger Shoulder Bag (Black/Black/Black)' /><span class='amazonfeed-product-title'>Timbuk2 Blogger Shoulder Bag (Black/Black/Black)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Timbuk2-Blogger-Laptop-Messenger-Black/dp/B002PWHZ18?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002PWHZ18' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21U6FoKWB7L._SL75_.jpg' class='amazonfeed-product-image' alt='Timbuk2 Blogger 2.0 Laptop Messenger Bag,Black/Black/Black,M' title='Timbuk2 Blogger 2.0 Laptop Messenger Bag,Black/Black/Black,M' /><span class='amazonfeed-product-title'>Timbuk2 Blogger 2.0 Laptop Messenger Bag,Black/Black/Black,M</span></a>
</div><div class='product'><a href='http://www.amazon.com/Rapid-Video-Blogger-Large-Box/dp/B000SF6K7E?SubscriptionId=0K71XE306HCHA9WYBS02&tag=usamazonfeed-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000SF6K7E' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51qIXLGQVbL._SL75_.jpg' class='amazonfeed-product-image' alt='Rapid Video Blogger Large Box .' title='Rapid Video Blogger Large Box .' /><span class='amazonfeed-product-title'>Rapid Video Blogger Large Box .</span></a>
</div><div class='product'><a href='http://www.amazon.com/Timbuk2-Blogger-Shoulder-Brown-Black/dp/B001F510LC?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001F510LC' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/311FTxR%2Bv3L._SL75_.jpg' class='amazonfeed-product-image' alt='Timbuk2 Blogger Shoulder Bag (Dark Brown/Black/Dark Brown)' title='Timbuk2 Blogger Shoulder Bag (Dark Brown/Black/Dark Brown)' /><span class='amazonfeed-product-title'>Timbuk2 Blogger Shoulder Bag (Dark Brown/Black/Dark Brown)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Timbuk2-Blogger-Laptop-Messenger-Black/dp/B002WC8YJS?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002WC8YJS' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31OVrjccGOL._SL75_.jpg' class='amazonfeed-product-image' alt='Timbuk2 Blogger 2.0 Laptop Messenger Bag,Blue/Black/Blue,M' title='Timbuk2 Blogger 2.0 Laptop Messenger Bag,Blue/Black/Blue,M' /><span class='amazonfeed-product-title'>Timbuk2 Blogger 2.0 Laptop Messenger Bag,Blue/Black/Blue,M</span></a>
</div><div class='product'><a href='http://www.amazon.com/David-Buschs-Quick-Photoblogging-Wordpress/dp/B0032K6MDY?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0032K6MDY' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51ASwySv22L._SL75_.jpg' class='amazonfeed-product-image' alt='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' title='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' /><span class='amazonfeed-product-title'>David Busch's Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating & Promoting Your Photoblog, Softcover Book, 205 Pages</span></a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://knguyentu.com/wordpress/2008/06/wp-redirect-from-bloggercom-to-another-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP: Creating Dropdown List of Categories</title>
		<link>http://knguyentu.com/wordpress/2008/06/wp-creating-dropdown-list-of-categories/</link>
		<comments>http://knguyentu.com/wordpress/2008/06/wp-creating-dropdown-list-of-categories/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 06:03:00 +0000</pubDate>
		<dc:creator>dikiem</dc:creator>
				<category><![CDATA[WordPress Tips and Hack]]></category>
		<category><![CDATA[Category Dropdown]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://knguyentu.com/wordpress/?p=141</guid>
		<description><![CDATA[Here is a little WordPress tip / trick. For anyone who is trying to build their sidebar and or want to add a dropwdown list style for category listing, this is one simple method.
http://codex.wordpress.org/Template_Tags/wp_dropdown_categories
You can use the code snip they&#8217;ve provided
&#60;li id="categories"&#62;lt;h2&#62;&#60;?php _e('Posts by Category'); ?&#62;&#60;/h2&#62;
&#60;?php wp_dropdown_categories('show_option_none=Select category'); ?&#62;
&#60;script type="text/javascript"&#62;&#60;!--
var dropdown = document.getElementById("cat");
function onCatChange() {
if [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-creating-dropdown-list-of-categories%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-creating-dropdown-list-of-categories%2F" height="61" width="51" /></a></div><p>Here is a little WordPress tip / trick. For anyone who is trying to build their sidebar and or want to add a dropwdown list style for category listing, this is one simple method.</p>
<p>http://codex.wordpress.org/Template_Tags/wp_dropdown_categories</p>
<p>You can use the code snip they&#8217;ve provided</p>
<div><code>&lt;li id="categories"&gt;lt;h2&gt;&lt;?php _e('Posts by Category'); ?&gt;&lt;/h2&gt;<br />
&lt;?php wp_dropdown_categories<span style="color: #ff0000;">(<strong>'show_option_none=Select category'</strong>);</span> ?&gt;</code></div>
<p><code>&lt;script type="text/javascript"&gt;&lt;!--<br />
var dropdown = document.getElementById("cat");<br />
function onCatChange() {<br />
if ( dropdown.options[dropdown.selectedIndex].value &gt; 0 ) {<br />
location.href = "<!--p echo get_option('home');<br--> ?&gt;/?cat="+dropdown.options[dropdown.selectedIndex].value;<br />
}<br />
}<br />
dropdown.onchange = onCatChange;<br />
--&gt;&lt;/script&gt;<br />
&lt;/li&gt;</p>
<p></code></p>
<blockquote>
<h2><span class="mw-headline">Parameters </span></h2>
<dl>
<dt>show_option_all  </dt>
<dd>(<em>string</em>) Causes the HTML for the dropdown to allow you to select All of the categories. </dd>
<dt>show_option_none  </dt>
<dd>(<em>string</em>) Causes the HTML for the dropdown to allow you to select NONE of the categories. </dd>
<dt>orderby  </dt>
<dd>(<em>string</em>) Key to sort options by. Valid values:</p>
<ul>
<li><tt>'ID'</tt> (Default)</li>
<li><tt>'name'</tt></li>
</ul>
</dd>
</dl>
<dl>
<dt>order  </dt>
<dd>(<em>string</em>) Sort order for options. Valid values:</p>
<ul>
<li><tt>'ASC'</tt> (Default)</li>
<li><tt>'DESC'</tt></li>
</ul>
</dd>
</dl>
<dl>
<dt>show_last_update  </dt>
<dd>(<em>boolean</em>) Sets whether to display the date of the last post in each category. Valid values:</p>
<ul>
<li><tt>1</tt> (True)</li>
<li><tt>0 </tt>(False &#8211; Default)</li>
</ul>
</dd>
</dl>
<dl>
<dt>show_count  </dt>
<dd>(<em>boolean</em>) Sets whether to display a count of posts in each category. Valid values:</p>
<ul>
<li><tt>1</tt> (True)</li>
<li><tt>0</tt> (False &#8211; Default)</li>
</ul>
</dd>
</dl>
<dl>
<dt>hide_empty  </dt>
<dd>(<em>boolean</em>) Sets whether to hide (not display) categories with no posts. Valid values:</p>
<ul>
<li><tt>1</tt> (True &#8211; Default)</li>
<li><tt>0</tt> (False)</li>
</ul>
</dd>
</dl>
<dl>
<dt>child_of  </dt>
<dd>(<em>integer</em>) Only display categories that are children of the category identified by its ID. There is no default for this parameter. </dd>
<dt>exclude  </dt>
<dd>(<em>string</em>) Comma separated list of category IDs to exclude. For example, &#8216;exclude=4,12&#8242; means category IDs 4 and 12 will NOT be displayed/echoed or returned. Defaults to exclude nothing. </dd>
<dt>echo  </dt>
<dd>(<em>boolean</em>) Display bookmarks (<tt>TRUE</tt>) or return them for use by PHP (<tt>FALSE</tt>). Defaults to <tt>TRUE</tt>.</p>
<ul>
<li><tt>1</tt> (True &#8211; default)</li>
<li><tt>0</tt> (False)</li>
</ul>
</dd>
</dl>
<dl>
<dt>selected  </dt>
<dd>(<em>integer</em>) Category ID of the category to be &#8217;selected&#8217; or presented in the display box. Defaults to no category selected. </dd>
<dt>hierarchical  </dt>
<dd>(<em>boolean</em>) Display categories in hierarchical fashion (child categories show indented). Defaults to <tt>FALSE</tt>.</p>
<ul>
<li><tt>1</tt> (True)</li>
<li><tt>0</tt> (False &#8211; Default)</li>
</ul>
</dd>
</dl>
<dl>
<dt>name  </dt>
<dd>(<em>string</em>) Name assigned to the dropdown form. Defaults to &#8216;cat&#8217;. </dd>
<dt>class  </dt>
<dd>(<em>string</em>) Class assinged to the dropdown form. Defaults to &#8216;postform&#8217;. </dd>
<dt>depth  </dt>
<dd>(<em>integer</em>) This parameter controls how many levels in the hierarchy of Categories are to be included in the list of Categories. The default value is <em>0</em> (display all Categories and their children). This parameter added at <a title="Version 2.5" href="http://knguyentu.com/Version_2.5"><strong><span style="color: #2583ad;">Version 2.5</span></strong></a></p>
<ul>
<li><tt>0</tt> &#8211; All Categories and child Categories (Default).</li>
<li><tt>-1</tt> &#8211; All Categories displayed in flat (no indent) form (overrides <strong>hierarchical</strong>).</li>
<li><tt>1</tt> &#8211; Show only top level Categories</li>
</ul>
</dd>
</dl>
<li><tt>n</tt> &#8211; Value of n (some number) specifies the depth (or level) to descend in displaying Categories</li>
</blockquote>

<div class='amazonfeed'><h2>Hot Items From Amazon!</h2>
<div class='product'><a href='http://www.amazon.com/David-Buschs-Quick-Photoblogging-Wordpress/dp/B0032K6MDY?SubscriptionId=0K71XE306HCHA9WYBS02&tag=usamazonfeed-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0032K6MDY' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51ASwySv22L._SL75_.jpg' class='amazonfeed-product-image' alt='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' title='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' /><span class='amazonfeed-product-title'>David Busch's Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating & Promoting Your Photoblog, Softcover Book, 205 Pages</span></a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://knguyentu.com/wordpress/2008/06/wp-creating-dropdown-list-of-categories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alternative RSS Method (Zenfolio, Flickr, etc.,)</title>
		<link>http://knguyentu.com/wordpress/2008/06/alternative-rss-method-zenfolio-flickr-etc/</link>
		<comments>http://knguyentu.com/wordpress/2008/06/alternative-rss-method-zenfolio-flickr-etc/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 16:40:46 +0000</pubDate>
		<dc:creator>dikiem</dc:creator>
				<category><![CDATA[WordPress Tips and Hack]]></category>
		<category><![CDATA[atom]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[pBASE]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Zenfolio]]></category>

		<guid isPermaLink="false">http://knguyentu.com/wordpress/?p=130</guid>
		<description><![CDATA[I had mentioned in the Wordpress Plugin section, there is an Zenfolio RSS plug that is used to display nice little thumb nails on the side bar of your Zenfolio Galleries. In search of finding something more specific, I came across an alternative method. While it is no plug in yet, but a simple PHP [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Falternative-rss-method-zenfolio-flickr-etc%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Falternative-rss-method-zenfolio-flickr-etc%2F" height="61" width="51" /></a></div><p><a href="http://knguyentu.com/wordpress/wp-content/uploads/2008/06/rss_1.jpg"></a>I had mentioned in the Wordpress Plugin section, there is an Zenfolio RSS plug that is used to display nice little thumb nails on the side bar of your Zenfolio Galleries. In search of finding something more specific, I came across an alternative method. While it is no plug in yet, but a simple PHP / HTML knowledge could get you going with this. You can see a sample of it operating in my Flower Photographs section here (<a href="http://knguyentu.com/wordpress/photography-by-kevin/flowers-photographs/">http://knguyentu.com/wordpress/photography-by-kevin/flowers-photographs/</a>)</p>
<p> The RSS engine I used there is RSS Parser for PHP5+ (<a href="http://rssphp.net/">http://rssphp.net/</a>).</p>
<a class="downloadlink dlimg" href="http://knguyentu.com/wordpress/wp-content/plugins/download-monitor/download.php?id=19" title="Version 1.0 downloaded 92 times" ><img src="http://knguyentu.com/wordpress/wp-content/plugins/download-monitor/img/download.gif" alt="Download RSS PHP Version 1.0" /></a>
<p>Download this RSS file and place it in the same folder as the theme files you are using. In my case, I&#8217;ve placed inside ./wordpress/wp-content/themes/(theme name)/&#8230; In another words, in the same location the theme index.php file is located.</p>
<p>Once you&#8217;ve place the RSS file there, you will need to setup a page to use as a template for your rss. You can easily make a copy of the page.php provided by your theme. Let&#8217;s copy it and call it photographs.php.</p>
<p>Now for the fun part. Edit the photographs.php and place the code in here, somewhere towards the bottom before the sidebar and/or footer calls.</p>
<p><code><br />
<!-- RSS FEED --><br />
&lt;?php</p>
<p>$values = get_post_custom_values("photoRSS");<br />
// echo $values[0];<br />
require_once 'rss_php.php';<br />
$rss = new rss_php;<br />
$rss-&gt;load($values[0]);<br />
$items = $rss-&gt;getItems();</p>
<p>$html = '';<br />
foreach($items as $index =&gt; $item) {<br />
$html .= '&lt;h3&gt;&lt;a href="'.$item['link'].'" title="'.$item['title'].'"&gt;'.$item['title'].'&lt;/h3&gt;';<br />
$html .= '&lt;/a&gt;&lt;br /&gt;'.$item['description'].'&lt;br /&gt;';<br />
$html .= "&lt;br /&gt;;<br />
}<br />
echo $html;<br />
?&gt;<br />
</code></p>
<p>This will loop through the RSS code and strip out the the RSS feed file and present it as your see int he example. You could wrap some HTML in the &#8220;$html&#8221; section in the code above to make the box look fancy and colorful if you like.</p>
<p>To be a bit more creative, with how the code is now, it will RSS pull all items in the RSS feed. You could add a simple loop around the code and limit how many items to pull per feed. See the code snip below. In <strong>BOLD </strong>is what was added to accommodate that. </p>
<p> <code><br />
&lt;?php</p>
<p>$values = get_post_custom_values("photoRSS");<br />
// echo $values[0];<br />
require_once 'rss_php.php';<br />
$rss = new rss_php;<br />
<strong>$item_limit = 3;</strong><br />
$rss-&gt;load($values[0]);<br />
$items = $rss-&gt;getItems();</p>
<p><strong>$i = 0;</strong><br />
$html = '';<br />
foreach($items as $index =&gt; $item) {<br />
   <strong>if ($i < $item_limit) {</strong><br />
      $html .= '&lt;h3&gt;&lt;a href="'.$item['link'].'" title="'.$item['title'].'"&gt;'.$item['title'].'&lt;/h3&gt;';<br />
      $html .= '&lt;/a&gt;&lt;br /&gt;'.$item['description'].'&lt;br /&gt;';<br />
      $html .= "&lt;br /&gt;;<br />
      <strong>$i++;</strong><br />
   }<br />
}<br />
echo $html;<br />
?&gt;</p>
<p></code></p>
<p>Now all you need is to create a new page, using the photographs.php template.</p>
<p>In the Custom Fields, use custom field &#8220;photoRSS&#8221; tag and place the URL to your RSS feed and away you go!</p>
<p><a href="http://knguyentu.com/wordpress/wp-content/uploads/2008/06/rss_1.jpg"><img class="alignnone size-medium wp-image-131" title="rss_1" src="http://knguyentu.com/wordpress/wp-content/uploads/2008/06/rss_1-300x96.jpg" alt="" width="300" height="96" /></a></p>
<p>Let me know what you think and what alternative you are using?</p>

<div class='amazonfeed'><h2>Hot Items From Amazon!</h2>
<div class='product'><a href='http://www.amazon.com/Zotac-IONITX-90-Watt-Intel-Motherboard/dp/B002BA5IHC?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002BA5IHC' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51s%2BjG-tufL._SL75_.jpg' class='amazonfeed-product-image' alt='Zotac IONITX-A-U Atom N330 Dual Core 90-Watt PSU WiFi ITX Intel Motherboard' title='Zotac IONITX-A-U Atom N330 Dual Core 90-Watt PSU WiFi ITX Intel Motherboard' /><span class='amazonfeed-product-title'>Zotac IONITX-A-U Atom N330 Dual Core 90-Watt PSU WiFi ITX Intel Motherboard</span></a>
</div><div class='product'><a href='http://www.amazon.com/Photography-Backdrops-Muslin-Support-PBL/dp/B001AT4D1M?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001AT4D1M' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41MK1rSIg2L._SL75_.jpg' class='amazonfeed-product-image' alt='Photography Backdrops Muslin 9&#039;x15&#039; Black White Support System Carry Bag by PBL' title='Photography Backdrops Muslin 9&#039;x15&#039; Black White Support System Carry Bag by PBL' /><span class='amazonfeed-product-title'>Photography Backdrops Muslin 9'x15' Black White Support System Carry Bag by PBL</span></a>
</div><div class='product'><a href='http://www.amazon.com/PHOTOGRAPHY-CONTINUOUS-LIGHTING-UMBRELLA-Fluorescent/dp/B000GX484U?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000GX484U' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31np-Rw3Z%2BL._SL75_.jpg' class='amazonfeed-product-image' alt='PHOTOGRAPHY STUDIO CONTINUOUS LIGHTING UMBRELLA KIT + Free 27 Watts 5500K Fluorescent Photo Lamp Bulb' title='PHOTOGRAPHY STUDIO CONTINUOUS LIGHTING UMBRELLA KIT + Free 27 Watts 5500K Fluorescent Photo Lamp Bulb' /><span class='amazonfeed-product-title'>PHOTOGRAPHY STUDIO CONTINUOUS LIGHTING UMBRELLA KIT + Free 27 Watts 5500K Fluorescent Photo Lamp Bulb</span></a>
</div><div class='product'><a href='http://www.amazon.com/StarTech-com-18-inch-9-pin-Straight-Through/dp/B00006JHXK?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B00006JHXK' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/312HHMWHH7L._SL75_.jpg' class='amazonfeed-product-image' alt='StarTech.com 18-inch 9-pin Straight Through Cable' title='StarTech.com 18-inch 9-pin Straight Through Cable' /><span class='amazonfeed-product-title'>StarTech.com 18-inch 9-pin Straight Through Cable</span></a>
</div><div class='product'><a href='http://www.amazon.com/Shuttle-Computer-Embedded-Chipset-Barebone/dp/B001JIFXGI?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001JIFXGI' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31opq8Bm5bL._SL75_.jpg' class='amazonfeed-product-image' alt='Shuttle Computer X27D ATOM Dual Core 330 CPU Embedded Intel 945GC Chipset 1x240 Pin DDR2 Max 2GB 60W Power Adapter Barebone System (Black)' title='Shuttle Computer X27D ATOM Dual Core 330 CPU Embedded Intel 945GC Chipset 1x240 Pin DDR2 Max 2GB 60W Power Adapter Barebone System (Black)' /><span class='amazonfeed-product-title'>Shuttle Computer X27D ATOM Dual Core 330 CPU Embedded Intel 945GC Chipset 1x240 Pin DDR2 Max 2GB 60W Power Adapter Barebone System (Black)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Flip-Ultra-Camcorder-60-Minutes-Black/dp/B000V1PXMI?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000V1PXMI' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31eR5QQx86L._SL75_.jpg' class='amazonfeed-product-image' alt='Flip Ultra Series Camcorder, 60-Minutes (Black) OLD MODEL' title='Flip Ultra Series Camcorder, 60-Minutes (Black) OLD MODEL' /><span class='amazonfeed-product-title'>Flip Ultra Series Camcorder, 60-Minutes (Black) OLD MODEL</span></a>
</div><div class='product'><a href='http://www.amazon.com/External-Accessory-Battery-ThinkPad-1100i/dp/B0007865S6?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0007865S6' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31Q5NDPHXNL._SL75_.jpg' class='amazonfeed-product-image' alt='External Accessory Battery Pack 4500 mAh for IBM ThinkPad 1100i,IBM ThinkPad 1200i,IBM ThinkPad 1200i, 1210i, 1230i,IBM ThinkPad 1250i, 1260i,IBM ThinkPad 1300i,IBM ThinkPad 1300i, 1310i, 1320i,IBM ThinkPad 130i,IBM ThinkPad 1330i, 1340i, 1370i,IBM ThinkPad 1420i, 1421i, 1422i,IBM ThinkPad' title='External Accessory Battery Pack 4500 mAh for IBM ThinkPad 1100i,IBM ThinkPad 1200i,IBM ThinkPad 1200i, 1210i, 1230i,IBM ThinkPad 1250i, 1260i,IBM ThinkPad 1300i,IBM ThinkPad 1300i, 1310i, 1320i,IBM ThinkPad 130i,IBM ThinkPad 1330i, 1340i, 1370i,IBM ThinkPad 1420i, 1421i, 1422i,IBM ThinkPad' /><span class='amazonfeed-product-title'>External Accessory Battery Pack 4500 mAh for IBM ThinkPad 1100i,IBM ThinkPad 1200i,IBM ThinkPad 1200i, 1210i, 1230i,IBM ThinkPad 1250i, 1260i,IBM ThinkPad 1300i,IBM ThinkPad 1300i, 1310i, 1320i,IBM ThinkPad 130i,IBM ThinkPad 1330i, 1340i, 1370i,IBM ThinkPad 1420i, 1421i, 1422i,IBM ThinkPad</span></a>
</div><div class='product'><a href='http://www.amazon.com/ECS-Dual-Core-Motherboard-945GCD-M-V1-0/dp/B002UK2QBE?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002UK2QBE' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41PPzXjTSoL._SL75_.jpg' class='amazonfeed-product-image' alt='ECS Atom Dual-Core 330/ Intel 945GC/ A&amp;V&amp;GbE/ MATX Motherboard 945GCD-M (V1.0)' title='ECS Atom Dual-Core 330/ Intel 945GC/ A&amp;V&amp;GbE/ MATX Motherboard 945GCD-M (V1.0)' /><span class='amazonfeed-product-title'>ECS Atom Dual-Core 330/ Intel 945GC/ A&V&GbE/ MATX Motherboard 945GCD-M (V1.0)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Apex-MI-100-Desktop-Silver-ATX12V/dp/B000WCQYU6?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000WCQYU6' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31JGCY0zjmL._SL75_.jpg' class='amazonfeed-product-image' alt='Apex MI-100 4BAY Desktop Blk/Silver 250W ATX12V Mitx' title='Apex MI-100 4BAY Desktop Blk/Silver 250W ATX12V Mitx' /><span class='amazonfeed-product-title'>Apex MI-100 4BAY Desktop Blk/Silver 250W ATX12V Mitx</span></a>
</div><div class='product'><a href='http://www.amazon.com/Digital-Concepts-Ps-101-Portable-Lighting/dp/B000FBF400?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000FBF400' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21OCArlWMJL._SL75_.jpg' class='amazonfeed-product-image' alt='Digital Concepts Ps-101 Portable Lighting Studio' title='Digital Concepts Ps-101 Portable Lighting Studio' /><span class='amazonfeed-product-title'>Digital Concepts Ps-101 Portable Lighting Studio</span></a>
</div><div class='product'><a href='http://www.amazon.com/PBL-PHOTOGRAPHY-LIGHTING-FLUORESCENT-DIGITAL/dp/B001COVC8M?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001COVC8M' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41PVEi09yML._SL75_.jpg' class='amazonfeed-product-image' alt='PBL PHOTOGRAPHY STUDIO LIGHTING KIT 600 WATT FLUORESCENT PHOTO DIGITAL VIDEO by PBL' title='PBL PHOTOGRAPHY STUDIO LIGHTING KIT 600 WATT FLUORESCENT PHOTO DIGITAL VIDEO by PBL' /><span class='amazonfeed-product-title'>PBL PHOTOGRAPHY STUDIO LIGHTING KIT 600 WATT FLUORESCENT PHOTO DIGITAL VIDEO by PBL</span></a>
</div><div class='product'><a href='http://www.amazon.com/Rf35-Smartcast-Wrist-Mount-RSS/dp/B000752MKO?SubscriptionId=0K71XE306HCHA9WYBS02&tag=usamazonfeed-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000752MKO' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41ywTIHuytL._SL75_.jpg' class='amazonfeed-product-image' alt='Rf35 Smartcast Wrist Mount with RSS' title='Rf35 Smartcast Wrist Mount with RSS' /><span class='amazonfeed-product-title'>Rf35 Smartcast Wrist Mount with RSS</span></a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://knguyentu.com/wordpress/2008/06/alternative-rss-method-zenfolio-flickr-etc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WP-Themes: Premium News Style</title>
		<link>http://knguyentu.com/wordpress/2008/06/wp-themes-premium-news-style/</link>
		<comments>http://knguyentu.com/wordpress/2008/06/wp-themes-premium-news-style/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 19:57:24 +0000</pubDate>
		<dc:creator>dikiem</dc:creator>
				<category><![CDATA[WP Themes]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://knguyentu.com/wordpress/?p=122</guid>
		<description><![CDATA[A lot of people have asked me what theme is used for this new design and layout. When looking into redesigning the domain, I wanted something to infuse all of the blogspot account I have and with the content management style I had with the Nuke-PHP engine I used previously. That lead me to use [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-themes-premium-news-style%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-themes-premium-news-style%2F" height="61" width="51" /></a></div><p>A lot of people have asked me what theme is used for this new design and layout. When looking into redesigning the domain, I wanted something to infuse all of the blogspot account I have and with the content management style I had with the Nuke-PHP engine I used previously. That lead me to use Wordpress. But the standard WordPress theme wasn&#8217;t exactly what I was looking for. In searching, I came across hundreds of different themes and finally settle with one made by <a href="http://www.der-prinz.com/">Michael Oeser</a>.</p>
<p>The theme you are seeing now has 3 parts to it:<br />
- Branford Theme<br />
- Wynton Theme<br />
- And lastly, my own customization coding to it</p>
<p>I like the main design of Branford, but also wanted some features of Wynton, both of which was creatively designed by Michael. That didn&#8217;t stop there, I wanted certain features and more dynamics to it, thus I made some modification to them. One main notice is on the front page. The feature article is no longer there, but in fact was replaced with an RSS PHP feed I had used in earlier web design. Using the CSS box design from the theme, I had infuse it with an RSS feed from various sources. The engine used is &#8220;<a href="http://lastrss.oslab.net/">LastRSS</a>&#8220;. It is a simple, but yet powerful RSS parser.</p>
<p>Both the Branford and Wynton Theme are based upon <a href="http://www.darrenhoyt.com/2007/08/05/wordpress-magazine-theme-released"></a>Mimbo and <a href="http://www.revolutiontheme.com"></a>Revolution style theme.</p>
<p>With some plugins, dabbing of PHP code changes, and various ideas, you have the website before you today!</p>
<p><strong>Michael Oeser Themes:</strong> <a href="http://www.der-prinz.com/" target="_blank">http://www.der-prinz.com/<br />
</a><strong>Revolution Themes:</strong> <a href="http://www.revolutiontheme.com/" target="_blank">http://www.revolutiontheme.com/</a><br />
<strong>Mimbo Themes:</strong> <a href="http://www.darrenhoyt.com/2007/08/05/wordpress-magazine-theme-released/" target="_blank">http://www.darrenhoyt.com/2007/08/05/wordpress-magazine-theme-released/<br />
</a><strong>Wordpress Blog Engine: </strong><a href="http://www.wordpress.org/" target="_blank">http://www.wordpress.org/<br />
</a><strong>LastRSS Parser:</strong> <a href="http://lastrss.oslab.net/" target="_blank">http://lastrss.oslab.net/</a></p>

<div class='amazonfeed'><h2>Hot Items From Amazon!</h2>
<div class='product'><a href='http://www.amazon.com/Theme-Pockets-November-Michelle-Barnett/dp/155799708X?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=155799708X' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51d0RzFh1mL._SL75_.jpg' class='amazonfeed-product-image' alt='Theme Pockets - November' title='Theme Pockets - November' /><span class='amazonfeed-product-title'>Theme Pockets - November</span></a>
</div><div class='product'><a href='http://www.amazon.com/Nady-PHP-3-DJ-Phono-Pre-Amplifier/dp/B000U2E4W8?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000U2E4W8' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51gZHqx28eL._SL75_.jpg' class='amazonfeed-product-image' alt='Nady PHP-3 DJ Phono Pre-Amplifier' title='Nady PHP-3 DJ Phono Pre-Amplifier' /><span class='amazonfeed-product-title'>Nady PHP-3 DJ Phono Pre-Amplifier</span></a>
</div><div class='product'><a href='http://www.amazon.com/Tiffen-DFXAEV2-Digital-Software-Effects/dp/B001F50EIW?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001F50EIW' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21DakhLzCtL._SL75_.jpg' class='amazonfeed-product-image' alt='Tiffen DFXAEV2 Dfx Digital Filter Software V2 Plug-in for Adobe After Effects - Windows XP, VISTA or Macintosh v10.4.6 and higher' title='Tiffen DFXAEV2 Dfx Digital Filter Software V2 Plug-in for Adobe After Effects - Windows XP, VISTA or Macintosh v10.4.6 and higher' /><span class='amazonfeed-product-title'>Tiffen DFXAEV2 Dfx Digital Filter Software V2 Plug-in for Adobe After Effects - Windows XP, VISTA or Macintosh v10.4.6 and higher</span></a>
</div><div class='product'><a href='http://www.amazon.com/Tripp-Lite-ULTRAFAX-Protector-Suppressor/dp/B0000513GY?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0000513GY' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/11GD6GJTXFL._SL75_.jpg' class='amazonfeed-product-image' alt='Tripp Lite ULTRAFAX IsPRar Ultra Surge Protector/Suppressor w/ Modem/Fax RJ11 2 outlets Direct Plug-In 600 Joules' title='Tripp Lite ULTRAFAX IsPRar Ultra Surge Protector/Suppressor w/ Modem/Fax RJ11 2 outlets Direct Plug-In 600 Joules' /><span class='amazonfeed-product-title'>Tripp Lite ULTRAFAX IsPRar Ultra Surge Protector/Suppressor w/ Modem/Fax RJ11 2 outlets Direct Plug-In 600 Joules</span></a>
</div><div class='product'><a href='http://www.amazon.com/Shopforbattery-395780-002-replacement-Battery-Compatible/dp/B001BUT8CE?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001BUT8CE' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31sa04lMO-L._SL75_.jpg' class='amazonfeed-product-image' alt='Shopforbattery HP COMPAQ 395780-002 replacement PDA Battery (Compatible)' title='Shopforbattery HP COMPAQ 395780-002 replacement PDA Battery (Compatible)' /><span class='amazonfeed-product-title'>Shopforbattery HP COMPAQ 395780-002 replacement PDA Battery (Compatible)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Myron-Davis-RSS100-Electronic-Assistance/dp/B000K4YV6A?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000K4YV6A' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41PvbefN90L._SL75_.jpg' class='amazonfeed-product-image' alt='Myron &amp; Davis RSS100 Electronic Parking Assistance' title='Myron &amp; Davis RSS100 Electronic Parking Assistance' /><span class='amazonfeed-product-title'>Myron & Davis RSS100 Electronic Parking Assistance</span></a>
</div><div class='product'><a href='http://www.amazon.com/PortaBrace-RS-S270-Portabrace-Rain-slicker/dp/B001ISK1BQ?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001ISK1BQ' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/4145UNStjBL._SL75_.jpg' class='amazonfeed-product-image' alt='Portabrace RS-S270 Rain slicker' title='Portabrace RS-S270 Rain slicker' /><span class='amazonfeed-product-title'>Portabrace RS-S270 Rain slicker</span></a>
</div><div class='product'><a href='http://www.amazon.com/Best-Mailbox-Themes-Farm-Animals/dp/1562342975?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=1562342975' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51802H8E3AL._SL75_.jpg' class='amazonfeed-product-image' alt='The Best of The Mailbox Themes - Farm Animals' title='The Best of The Mailbox Themes - Farm Animals' /><span class='amazonfeed-product-title'>The Best of The Mailbox Themes - Farm Animals</span></a>
</div><div class='product'><a href='http://www.amazon.com/Best-Mailbox-Themes-COLORS/dp/1562343688?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=1562343688' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51KZYYQE2KL._SL75_.jpg' class='amazonfeed-product-image' alt='The Best of The Mailbox Themes - COLORS' title='The Best of The Mailbox Themes - COLORS' /><span class='amazonfeed-product-title'>The Best of The Mailbox Themes - COLORS</span></a>
</div><div class='product'><a href='http://www.amazon.com/Heath-Zenith-SL-6012-WH5-Wireless-Command/dp/B001B5QWZA?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001B5QWZA' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41J4zNazxbL._SL75_.jpg' class='amazonfeed-product-image' alt='Heath Zenith SL-6012-WH5 Wireless Command Lamp Plug-in' title='Heath Zenith SL-6012-WH5 Wireless Command Lamp Plug-in' /><span class='amazonfeed-product-title'>Heath Zenith SL-6012-WH5 Wireless Command Lamp Plug-in</span></a>
</div><div class='product'><a href='http://www.amazon.com/Definitive-Technology-Referance-Ceiling-Surround/dp/B0017XI4Y8?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0017XI4Y8' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21nsHQe-B3L._SL75_.jpg' class='amazonfeed-product-image' alt='Definitive Technology In-Wall RSS III Referance Ceiling Surround/Wall Speaker (Single, White)' title='Definitive Technology In-Wall RSS III Referance Ceiling Surround/Wall Speaker (Single, White)' /><span class='amazonfeed-product-title'>Definitive Technology In-Wall RSS III Referance Ceiling Surround/Wall Speaker (Single, White)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Teaching-Reading-Bill-Martin-Books/dp/0439609631?SubscriptionId=0K71XE306HCHA9WYBS02&tag=usamazonfeed-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=0439609631' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51KoWsSW2zL._SL75_.jpg' class='amazonfeed-product-image' alt='Teaching Reading With Bill Martin Books: Engaging Activities that Build Early Reading Comprehension Skills and Explore the Themes in These Popular Books' title='Teaching Reading With Bill Martin Books: Engaging Activities that Build Early Reading Comprehension Skills and Explore the Themes in These Popular Books' /><span class='amazonfeed-product-title'>Teaching Reading With Bill Martin Books: Engaging Activities that Build Early Reading Comprehension Skills and Explore the Themes in These Popular Books</span></a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://knguyentu.com/wordpress/2008/06/wp-themes-premium-news-style/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WP-Tips: Adjusting Excerpt Display Count</title>
		<link>http://knguyentu.com/wordpress/2008/06/wp-adjusting-excerpt-display-count/</link>
		<comments>http://knguyentu.com/wordpress/2008/06/wp-adjusting-excerpt-display-count/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 17:47:43 +0000</pubDate>
		<dc:creator>dikiem</dc:creator>
				<category><![CDATA[WordPress Tips and Hack]]></category>
		<category><![CDATA[Excerpt]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://knguyentu.com/wordpress/?p=121</guid>
		<description><![CDATA[In wordpress, the commonly used tag to show summary of an article or post is &#60;?php the_excerpt(); ?&#62;. By default, if you don&#8217;t provide an excerpt, wordpress will use the first 55 words in the article as the excerpt.
What if you want to have more or less than 55 words, how is this accomplished?
You can [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-adjusting-excerpt-display-count%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-adjusting-excerpt-display-count%2F" height="61" width="51" /></a></div><p>In wordpress, the commonly used tag to show summary of an article or post is &lt;?php the_excerpt(); ?&gt;. By default, if you don&#8217;t provide an excerpt, wordpress will use the first 55 words in the article as the excerpt.</p>
<p>What if you want to have more or less than 55 words, how is this accomplished?</p>
<p>You can by easily editing the file ./wp-includes/formatting.php</p>
<p><code></code></p>
<p>function wp_trim_excerpt($text) { // Fakes an excerpt if needed<br />
if ( &#8221; == $text ) {<br />
$text = get_the_content(&#8221;);<br />
$text = apply_filters(&#8217;the_content&#8217;, $text);<br />
$text = str_replace(&#8217;]]&gt;&#8217;, &#8216;]]&gt;&#8217;, $text);<br />
$text = strip_tags($text);<br />
<strong><span style="color: #0000ff;">$excerpt_length = 55;</span></strong><br />
$words = explode(&#8217; &#8216;, $text, $excerpt_length + 1);<br />
if (count($words) &gt; $excerpt_length) {<br />
array_pop($words);<br />
array_push($words, &#8216;[...]&#8216;);<br />
$text = implode(&#8217; &#8216;, $words);<br />
}<br />
}<br />
return $text;<br />
}</p>
<p>In the above code, noticed in <strong><span style="color: #0000ff;">BOLD BLUE</span></strong>. By changing the default number of 55 higher or lower, that ultimately control how many words the excerpt tag will display.</p>

<div class='amazonfeed'><h2>Hot Items From Amazon!</h2>
<div class='product'><a href='http://www.amazon.com/David-Buschs-Quick-Photoblogging-Wordpress/dp/B0032K6MDY?SubscriptionId=0K71XE306HCHA9WYBS02&tag=usamazonfeed-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0032K6MDY' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51ASwySv22L._SL75_.jpg' class='amazonfeed-product-image' alt='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' title='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' /><span class='amazonfeed-product-title'>David Busch's Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating & Promoting Your Photoblog, Softcover Book, 205 Pages</span></a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://knguyentu.com/wordpress/2008/06/wp-adjusting-excerpt-display-count/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WP-Tips: Error 404 Page Not Found Bug!</title>
		<link>http://knguyentu.com/wordpress/2008/06/wp-error-404-page-not-found-bug/</link>
		<comments>http://knguyentu.com/wordpress/2008/06/wp-error-404-page-not-found-bug/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 17:30:36 +0000</pubDate>
		<dc:creator>dikiem</dc:creator>
				<category><![CDATA[WordPress Tips and Hack]]></category>
		<category><![CDATA[Error 404]]></category>
		<category><![CDATA[Page Not Found]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://knguyentu.com/wordpress/?p=116</guid>
		<description><![CDATA[I had spent a whole day on the weekend trying to figure out why my .htaccess setup and error 404 is not working on wordpress. After numerous posts reading and blogs reading, I came across a site that perfectly describe the issue. Turn out it is a bug in version 2.5 and higher. This was [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-error-404-page-not-found-bug%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fwp-error-404-page-not-found-bug%2F" height="61" width="51" /></a></div><p>I had spent a whole day on the weekend trying to figure out why my .htaccess setup and error 404 is not working on wordpress. After numerous posts reading and blogs reading, I came across a site that perfectly describe the issue. Turn out it is a bug in version 2.5 and higher. This was suppose to be resolved in version 2.5.1, but never did.</p>
<p>It has to do with this page of code inside the ./wp-includes/query.php file.</p>
<p><code>if ( ('page' != get_option('show_on_front') ) || <strong><span style="color: #0000ff;">( $reqpage != get_option('page_for_posts')</span></strong> ) ) {<br />
$q['pagename'] = str_replace('%2F', '/', urlencode(urldecode($q['pagename'])));<br />
$page_paths = '/' . trim($q['pagename'], '/');<br />
$q['pagename'] = sanitize_title(basename($page_paths));<br />
$q['name'] = $q['pagename'];<br />
$where .= " AND (ID = '$reqpage')";<br />
$reqpage_obj = get_page($reqpage);<br />
if ( 'attachment' == $reqpage_obj-&gt;post_type ) {<br />
$this-&gt;is_attachment = true;<br />
$this-&gt;is_page = true;<br />
$q['attachment_id'] = $reqpage;<br />
}</code></p>
<p>Notice the part in <strong><span style="color: #0000ff;">BOLD BLUE</span></strong>. The bug is exactly right there. In line 922 of ./wp-includes/query.php file. By adding an additional &#8220;=&#8221; resolved the issue. The end result will look like</p>
<p><code>if ( ('page' != get_option('show_on_front') ) || <strong><span style="color: #0000ff;">( $reqpage !== get_option('page_for_posts')</span></strong> ) ) {<br />
$q['pagename'] = str_replace('%2F', '/', urlencode(urldecode($q['pagename'])));<br />
$page_paths = '/' . trim($q['pagename'], '/');<br />
$q['pagename'] = sanitize_title(basename($page_paths));<br />
$q['name'] = $q['pagename'];<br />
$where .= " AND (ID = '$reqpage')";<br />
$reqpage_obj = get_page($reqpage);<br />
if ( 'attachment' == $reqpage_obj-&gt;post_type ) {<br />
$this-&gt;is_attachment = true;<br />
$this-&gt;is_page = true;<br />
$q['attachment_id'] = $reqpage;<br />
}</code></p>
<p>This will get wordpress to properly recognize improper URL call and redirect the post properly to your 404.php file.</p>
<p>Not sure how to create one? If your theme doesn&#8217;t come with one already, you can easily create a very simple 404 error page. Just create a file and name it 404.php. Place that in the same folder as all the other php file of your theme, including the index.php file.</p>
<p>In the 404.php, you could be as basic as this</p>
<p><CODE><br />
&lt;?php ob_start(); ?&gt;<br />
&lt;?php header(&#8221;HTTP/1.1 404 Not Found&#8221;); ?&gt;<br />
&lt;?php header(&#8221;Status: 404 Not Found&#8221;); ?&gt;<br />
&lt;?php get_header(); ?&gt;</p>
<p>	&lt;div id=&#8221;content&#8221;&gt;<br />
			&lt;h1&gt;Error 404: Doh!&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;</p>
<p>	&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;?php get_footer(); ?&gt;<br />
</CODE></p>
<p>You could read up more about it at Wordpress.org or by clicking on this <a href="http://codex.wordpress.org/Creating_an_Error_404_Page">LINK</a></p>

<div class='amazonfeed'><h2>Hot Items From Amazon!</h2>
<div class='product'><a href='http://www.amazon.com/David-Buschs-Quick-Photoblogging-Wordpress/dp/B0032K6MDY?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0032K6MDY' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51ASwySv22L._SL75_.jpg' class='amazonfeed-product-image' alt='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' title='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' /><span class='amazonfeed-product-title'>David Busch's Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating & Promoting Your Photoblog, Softcover Book, 205 Pages</span></a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://knguyentu.com/wordpress/2008/06/wp-error-404-page-not-found-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP-Plugins: Zenfolio RSS</title>
		<link>http://knguyentu.com/wordpress/2008/06/plugins-zenfolio-rss/</link>
		<comments>http://knguyentu.com/wordpress/2008/06/plugins-zenfolio-rss/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 23:02:07 +0000</pubDate>
		<dc:creator>dikiem</dc:creator>
				<category><![CDATA[WP Plugins]]></category>
		<category><![CDATA[Photogallery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Zenfolio]]></category>

		<guid isPermaLink="false">http://knguyentu.com/wordpress/?p=108</guid>
		<description><![CDATA[In setting up the Photography By Kevin section, I wanted to display random pictures from my photography gallery I had hosted over @ zenfolio. Why Zenfolio? After the previous design of a photogallery website and using a flash photo album, I got tired of maintaining it through PHP. Zenfolio seems to fit the need with [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fplugins-zenfolio-rss%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fknguyentu.com%2Fwordpress%2F2008%2F06%2Fplugins-zenfolio-rss%2F" height="61" width="51" /></a></div><p>In setting up the Photography By Kevin section, I wanted to display random pictures from my photography gallery I had hosted over @ zenfolio. Why Zenfolio? After the previous design of a photogallery website and using a flash photo album, I got tired of maintaining it through PHP. Zenfolio seems to fit the need with standard template layout and easy maintenance. </p>
<p>Instead of spending time writing a PHP plugin, the first came to mind was to try to look for a plugin someone had done. Why reinvent the wheel when someone already did that?</p>
<p>Vibol Hou had used a flickr RSS plugin and modified for zenfolio need. While is perfect what I was looking. </p>
<p>Plugin Homepage: (<a title="Zenfolio RSS Homepage" href="http://vibol.hou.cc/2007/11/01/a-zenfolio-wordpress-plugin/" target="_blank">HERE</a>)<br />
Download Version 0.5:<br />
 <a class="downloadlink dlimg" href="http://knguyentu.com/wordpress/wp-content/plugins/download-monitor/download.php?id=18" title="Version 0.5 downloaded 92 times" ><img src="http://knguyentu.com/wordpress/wp-content/plugins/download-monitor/img/download.gif" alt="Download ZenfolioRSS_Plugin Version 0.5" /></a></p>
<p>You can see an example of it being used in the Photography By Kevin page (tab above). </p>
<p>To use, you can simply download the plugin and place that in the plugins directory. In the Plugin control, you set how many image(s) you will be pulling per tag call. Afterward, a simple tag added to your post, page, or template will pull the photo from the gallery in. </p>
<p><img src="http://vibolhou.com/p9705763/?photo=h3655C5B3#911590835" alt="" /></p>
<p>Using the tag </p>
<p><code>&lt;?php get_ZenfolioRSS(); ?&gt;</code></p>
<p>Will take care of it. </p>
<p>If you want to spice it up a bit, what you could do is set in the plugin setting to only pull one image. With that, you can call the tag &#8220;x&#8221; number of times. Each time it will call on random image. This will give you the flexibility to wrap a table loop around it or add spacer between each image. </p>
<p>Pretty neat stuff. Try it out and let&#8217;s hear how you use it!</p>
<p> </p>

<div class='amazonfeed'><h2>Hot Items From Amazon!</h2>
<div class='product'><a href='http://www.amazon.com/Hasbro-Designers-World-Plug-Game/dp/B000EPFEUM?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000EPFEUM' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51JPsJMnWDL._SL75_.jpg' class='amazonfeed-product-image' alt='Hasbro Designer&#039;s World TV Plug-In Game' title='Hasbro Designer&#039;s World TV Plug-In Game' /><span class='amazonfeed-product-title'>Hasbro Designer's World TV Plug-In Game</span></a>
</div><div class='product'><a href='http://www.amazon.com/Silicone-Skin-Case-Shuffle-Black/dp/B0026O65HU?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0026O65HU' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31pXwebX0-L._SL75_.jpg' class='amazonfeed-product-image' alt='Silicone Skin Case for iPod Gen3 Shuffle, Black' title='Silicone Skin Case for iPod Gen3 Shuffle, Black' /><span class='amazonfeed-product-title'>Silicone Skin Case for iPod Gen3 Shuffle, Black</span></a>
</div><div class='product'><a href='http://www.amazon.com/Myron-Davis-RSS200-Wireless-Backup/dp/B002PHMHX4?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002PHMHX4' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41O0dt4tR9L._SL75_.jpg' class='amazonfeed-product-image' alt='Myron &amp; Davis RSS200 Wireless Rear Backup Safety Sensor' title='Myron &amp; Davis RSS200 Wireless Rear Backup Safety Sensor' /><span class='amazonfeed-product-title'>Myron & Davis RSS200 Wireless Rear Backup Safety Sensor</span></a>
</div><div class='product'><a href='http://www.amazon.com/Dayton-RSS265HF-4-Reference-Subwoofer-Ohm/dp/B000B8XVFM?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000B8XVFM' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31A5SZJG51L._SL75_.jpg' class='amazonfeed-product-image' alt='Dayton RSS265HF-4 10&quot; Reference HF Subwoofer 4 Ohm' title='Dayton RSS265HF-4 10&quot; Reference HF Subwoofer 4 Ohm' /><span class='amazonfeed-product-title'>Dayton RSS265HF-4 10" Reference HF Subwoofer 4 Ohm</span></a>
</div><div class='product'><a href='http://www.amazon.com/Portabrace-PHP-1-Polar-Heat-Packs/dp/B001B0JVD0?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001B0JVD0' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41G7LMHJrdL._SL75_.jpg' class='amazonfeed-product-image' alt='Portabrace PHP-1 Polar Heat Packs' title='Portabrace PHP-1 Polar Heat Packs' /><span class='amazonfeed-product-title'>Portabrace PHP-1 Polar Heat Packs</span></a>
</div><div class='product'><a href='http://www.amazon.com/Maxell-DVD-RSS-4-7-50-Pack-Spindle/dp/B0000DHBHM?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0000DHBHM' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51OwEAPQ7dL._SL75_.jpg' class='amazonfeed-product-image' alt='Maxell DVD-RSS 4.7 GB 8x (50-Pack Spindle)' title='Maxell DVD-RSS 4.7 GB 8x (50-Pack Spindle)' /><span class='amazonfeed-product-title'>Maxell DVD-RSS 4.7 GB 8x (50-Pack Spindle)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Tiffen-DFXAEV2-Digital-Software-Effects/dp/B001F50EIW?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001F50EIW' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21DakhLzCtL._SL75_.jpg' class='amazonfeed-product-image' alt='Tiffen DFXAEV2 Dfx Digital Filter Software V2 Plug-in for Adobe After Effects - Windows XP, VISTA or Macintosh v10.4.6 and higher' title='Tiffen DFXAEV2 Dfx Digital Filter Software V2 Plug-in for Adobe After Effects - Windows XP, VISTA or Macintosh v10.4.6 and higher' /><span class='amazonfeed-product-title'>Tiffen DFXAEV2 Dfx Digital Filter Software V2 Plug-in for Adobe After Effects - Windows XP, VISTA or Macintosh v10.4.6 and higher</span></a>
</div><div class='product'><a href='http://www.amazon.com/Nady-PHP-3-DJ-Phono-Pre-Amplifier/dp/B000U2E4W8?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000U2E4W8' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51gZHqx28eL._SL75_.jpg' class='amazonfeed-product-image' alt='Nady PHP-3 DJ Phono Pre-Amplifier' title='Nady PHP-3 DJ Phono Pre-Amplifier' /><span class='amazonfeed-product-title'>Nady PHP-3 DJ Phono Pre-Amplifier</span></a>
</div><div class='product'><a href='http://www.amazon.com/American-Lighting-ALSENPI-Automatic-300-watts/dp/B000FPDHN2?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000FPDHN2' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/21NB6W0GN5L._SL75_.jpg' class='amazonfeed-product-image' alt='American Lighting ALSENPI Automatic Light Control, Plug-in, 300-watts Maximum, Photocell' title='American Lighting ALSENPI Automatic Light Control, Plug-in, 300-watts Maximum, Photocell' /><span class='amazonfeed-product-title'>American Lighting ALSENPI Automatic Light Control, Plug-in, 300-watts Maximum, Photocell</span></a>
</div><div class='product'><a href='http://www.amazon.com/Definitive-Technology-Referance-Ceiling-Surround/dp/B001A6GAHK?SubscriptionId=0K71XE306HCHA9WYBS02&tag=usamazonfeed-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001A6GAHK' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/31q9tr93BbL._SL75_.jpg' class='amazonfeed-product-image' alt='Definitive Technology In-Wall RSS II Referance Ceiling Surround/Wall Speaker (Single, White)' title='Definitive Technology In-Wall RSS II Referance Ceiling Surround/Wall Speaker (Single, White)' /><span class='amazonfeed-product-title'>Definitive Technology In-Wall RSS II Referance Ceiling Surround/Wall Speaker (Single, White)</span></a>
</div><div class='product'><a href='http://www.amazon.com/Myron-Davis-RSS100-Electronic-Assistance/dp/B000K4YV6A?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B000K4YV6A' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/41PvbefN90L._SL75_.jpg' class='amazonfeed-product-image' alt='Myron &amp; Davis RSS100 Electronic Parking Assistance' title='Myron &amp; Davis RSS100 Electronic Parking Assistance' /><span class='amazonfeed-product-title'>Myron & Davis RSS100 Electronic Parking Assistance</span></a>
</div><div class='product'><a href='http://www.amazon.com/David-Buschs-Quick-Photoblogging-Wordpress/dp/B0032K6MDY?SubscriptionId=0K71XE306HCHA9WYBS02&tag=photographbyk-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B0032K6MDY' target='_blank' rel='nofollow'><img src='http://ecx.images-amazon.com/images/I/51ASwySv22L._SL75_.jpg' class='amazonfeed-product-image' alt='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' title='David Busch&#039;s Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating &amp; Promoting Your Photoblog, Softcover Book, 205 Pages' /><span class='amazonfeed-product-title'>David Busch's Quick Snap Guide to Photoblogging wwith Wordpress: An Instant Start-up Manual for Creating & Promoting Your Photoblog, Softcover Book, 205 Pages</span></a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://knguyentu.com/wordpress/2008/06/plugins-zenfolio-rss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
