<?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"
	>

<channel>
	<title>SEOAdsenseThemes.com</title>
	<atom:link href="http://www.seoadsensethemes.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seoadsensethemes.com</link>
	<description>Search Engine Optimized (SEO), Adsense-Ready Free WordPress Themes</description>
	<pubDate>Thu, 23 Oct 2008 03:47:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>WP Post Thumbnail - WordPress plugin</title>
		<link>http://www.seoadsensethemes.com/wp-post-thumbnail-wordpress-plugin/</link>
		<comments>http://www.seoadsensethemes.com/wp-post-thumbnail-wordpress-plugin/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 06:18:02 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
		
		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[Plugin]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[WP Post Thumbnail]]></category>

		<guid isPermaLink="false">http://www.seoadsensethemes.com/?p=89</guid>
		<description><![CDATA[
Download
WP Post Thumbnail 0.1.8
WP Post Thumbnail plugin adds an image upload, crop and save panel in &#8216;Write Post&#8217; screen. It allows you to easily upload a .jpg image file. Once the image file is uploaded, you can crop it before saving it as your thumbnail. That&#8217;s it.
Spend less time messing around with Photoshop everytime you [...]]]></description>
			<content:encoded><![CDATA[<p style="float:right;margin:0 0 1em 2em;padding:18px 28px;border:3px double #ddd;background:#f8f8f8;"><img class="size-full wp-image-120" title="Download WP Post Thumbnail" src="http://www.seoadsensethemes.com/wp-content/uploads/2008/10/inbox.png" alt="Download WP Post Thumbnail" width="128" height="128" /><br />
<a style="text-decoration:underline;" href="http://wordpress.org/extend/plugins/wp-post-thumbnail/">Download<br />
WP Post Thumbnail 0.1.8</a></p>
<p>WP Post Thumbnail plugin adds an image upload, crop and save panel in &#8216;Write Post&#8217; screen. It allows you to easily upload a <code>.jpg</code> image file. Once the image file is uploaded, you can crop it before saving it as your thumbnail. That&#8217;s it.</p>
<p>Spend less time messing around with Photoshop everytime you need to make a thumbnail (or two) for your post. Also, saves you time and trouble from manually copy-and-pasting uploaded image URLs into custom key value fields.</p>
<p>For theme developers, particularly magazine-style WordPress theme developers, you can configure up to 3 different thumbnails to be used in each post. For instance,</p>
<p>- a big 320px by 180px widescreen thumbnail for leading featured post to be displayed prominently on the front page.</p>
<p>- a square 125px by 125px thumbnail for recent posts.</p>
<p>Dimensions as varied as your theme requires can be easily configured in an XML file. Save the file as &#8216;<code>wppt.xml</code>&#8216; and put it in your theme&#8217;s folder (ideally, the main folder but any folder will do). WP Post Thumbnail will scan your theme folders, look for your theme&#8217;s &#8216;<code>wppt.xml</code>&#8216; file and read your theme&#8217;s thumbnail(s) configuration.</p>
<p><span id="more-89"></span><br />
<h4>Screenshots</h4>
<p>1. WP Post Thumbnail default thumbnail in use<br />
<img class="size-full wp-image-105" style="margin:0 0 2em 2.68em; padding:2px; border:1px solid #ddd;" title="WP Post Thumbnail default thumbnail output" src="http://www.seoadsensethemes.com/wp-content/uploads/2008/10/screenshot-1.jpg" alt="WP Post Thumbnail default thumbnail output" width="500" height="519" /></p>
<p>2. WP Post Thumbnail panel in &#8216;Write Post&#8217; screen<br />
<img class="size-full wp-image-106" style="margin:0 0 2em 2.68em; padding:2px; border:1px solid #ddd;" title="WP Post Thumbnail \'Write Post\' screen" src="http://www.seoadsensethemes.com/wp-content/uploads/2008/10/screenshot-2.jpg" alt="WP Post Thumbnail \'Write Post\' screen" width="500" height="586" /></p>
<p>3. WP Post Thumbnail configured to handle 3 thumbnails with different dimensions in a WordPress theme<br />
<img class="size-full wp-image-112" style="margin:0 0 2em 2.68em; padding:2px; border:1px solid #ddd;" title="WP Post Thumbnail Wordpress Plugin - Using multiple thumbnails with different dimensions in your theme" src="http://www.seoadsensethemes.com/wp-content/uploads/2008/10/wp-post-thumbnail-wordpress-plugin_multiple_thumbnails.jpg" alt="WP Post Thumbnail Wordpress Plugin - Using multiple thumbnails with different dimensions in your theme" width="500" height="353" /></p>
<p style="padding:1em; border:3px double #ddd; background:#f8f8f8;">NOTE: For a video demo, click <a href="http://www.seoadsensethemes.com/wordpress-post-thumbnail-without-custom-field/">here</a>.</p>
<h4>Installation</h4>
<p>1. Copy the `wp-post-thumbnail` folder into your &#8216;wp-content/plugins&#8217; folder.<br />
2. Activate the plugin through the &#8216;Plugins&#8217; menu in WordPress. That&#8217;s it.</p>
<p>Note: <u>This plugin requires your upload folder (default: <code>wp-content/uploads/</code> ) to be writable. Make sure this folder is write access enabled.</u></p>
<p>The default thumbnail is 160px by 90px which floats to the top left corner of the content of your post.</p>
<p>If your WordPress blog uses a theme that comes with pre-configured set of thumbnail(s) to work with this plugin, the theme&#8217;s folder should contain an XML file called &#8216;<code>wppt.xml</code>&#8216; created by the theme developer. In this case, it will override the default thumbnail. For theme developers, more information on how to configure WP Post Thumbnail for your WordPress theme can be found in FAQ.</p>
<h4>Frequently Asked Questions</h4>
<p><strong>Q</strong>: <span style="text-decoration: underline;">I am developing a WordPress theme. How do I configure WP Post Thumbnail to work specifically for my theme?</span></p>
<p style="width:150px; padding:10px; border:3px double #ddd; background:#f8f8f8; float:right; margin:1em 0 1em 2em"><a target="_blank" href="http://www.seoadsensethemes.com/wp-content/uploads/2008/10/wp-post-thumbnail-wordpress-plugin_developer_flow.jpg"><img src="http://www.seoadsensethemes.com/wp-content/uploads/2008/10/wp-post-thumbnail-wordpress-plugin_developer_flow-150x150.jpg" alt="WP Post Thumbnail - WordPress Plugin - Theme Developer Flow" title="WP Post Thumbnail - WordPress Plugin - Theme Developer Flow" width="150" height="150" class="size-thumbnail wp-image-147" /></a><br /><small>Theme developer&#8217;s flow illustration (250Kb).<br />Opens in new window.</small></p>
<p><strong>A</strong>: This is the purpose of which WP Post Thumbnail is written for. The current version of this plugin assumes that you, as theme developer, have basic knowledge of writing a configuration file in XML format and calling/placing the thumbnails&#8217; custom field value within your theme.</p>
<p>For the visually inclined, click the thumbnail on the right to open an image that illustrates basically how theme developers can use WP Post Thumbnail to handle thumbnail(s) in their WordPress themes. </p>
<p>I have included a sample XML configuration file in the plugin&#8217;s main folder called &#8216;<code>wppt.xml</code>&#8216;:</p>
<p><code>wppt.xml</code>:</p>
<pre class="syntax-highlight:html">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;wp-post-thumbnail&gt;

	&lt;pft_widescreen&gt;
		&lt;name&gt;Widescreen&lt;/name&gt;
		&lt;desc&gt;Recent posts&lt;/desc&gt;
		&lt;width&gt;270&lt;/width&gt;
		&lt;height&gt;110&lt;/height&gt;
	&lt;/pft_widescreen&gt;

	&lt;pft_square&gt;
		&lt;name&gt;Square&lt;/name&gt;
		&lt;desc&gt;Category post and more&lt;/desc&gt;
		&lt;width&gt;150&lt;/width&gt;
		&lt;height&gt;150&lt;/height&gt;
	&lt;/pft_square&gt;

	&lt;pft_rectangle&gt;
		&lt;name&gt;Rectangle&lt;/name&gt;
		&lt;desc&gt;Latest featured post&lt;/desc&gt;
		&lt;width&gt;390&lt;/width&gt;
		&lt;height&gt;270&lt;/height&gt;
	&lt;/pft_rectangle&gt;

&lt;/wp-post-thumbnail&gt;</pre>
<p>The above sample XML file configures 3 different thumbnails titled <code>&lt;pft_widescreen&gt;</code>, <code>&lt;pft_square&gt;</code> and <code>&lt;pft_rectangle&gt;</code>. The node titles are also used as custom field keys to call specific thumbnails to appear in your theme. For instance, to get the square thumbnail:</p>
<p>Say, in your WordPress theme&#8217;s <code>single.php</code>:</p>
<pre class="syntax-highlight:php">&lt;img src=&quot;&lt;?php get_post_meta($post-&gt;ID, &#039;pft_square&#039;, true); ?&gt;&quot; /&gt;</pre>
<p>Each thumbnail has four properties:</p>
<p><code>&lt;name&gt;</code> specifies a friendly name to appear in the thumbnail tab in &#8216;Write Post&#8217; area.<br />
<code>&lt;desc&gt;</code> a short description about the thumbnail<br />
<code>&lt;width&gt;</code> thumbnail width in pixels<br />
<code>&lt;height&gt;</code> thumbnail height in pixels</p>
<p>IMPORTANT: All fields are required!</p>
<p>Save your file as &#8216;<code>wppt.xml</code>&#8216; and put it in your theme&#8217;s folder (any folder will do). Blogs that uses your theme, and has WP Post Thumbnail plugin activated, will detect your &#8216;<code>wppt.xml</code>&#8216; configuration file.</p>
<p><strong>Q</strong>: <span style="text-decoration: underline;">Where are all the cropped thumbnails stored?</span></p>
<p><strong>A</strong>: They are stored in &#8216;<code>wp-post-thumbnail</code>&#8216; folder inside your WordPress default upload path. Eg. <code>'/wp-content/uploads/wp-post-thumbnail'</code> by default.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seoadsensethemes.com/wp-post-thumbnail-wordpress-plugin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress post thumbnails without manual custom fields</title>
		<link>http://www.seoadsensethemes.com/wordpress-post-thumbnail-without-custom-field/</link>
		<comments>http://www.seoadsensethemes.com/wordpress-post-thumbnail-without-custom-field/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 09:11:07 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Custom Field]]></category>

		<category><![CDATA[Lead Photo]]></category>

		<category><![CDATA[Post Thumbnail]]></category>

		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://www.seoadsensethemes.com/?p=45</guid>
		<description><![CDATA[Finding a better way of handling post thumbnails/lead photos without manually using custom fields.]]></description>
			<content:encoded><![CDATA[<div style="margin: 5px 0pt 5px 15px; width: 427px; float: right;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="349" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/dOaWlhyitoY&amp;hl=en&amp;fs=1&amp;rel=0&amp;border=1" /><embed type="application/x-shockwave-flash" width="425" height="349" src="http://www.youtube.com/v/dOaWlhyitoY&amp;hl=en&amp;fs=1&amp;rel=0&amp;border=1" allowfullscreen="true"></embed></object></p>
<div style="border: 1px solid #dddddd; padding: 8px 12px; background: #f3f3f3 none repeat scroll 0% 0%; float: right; width: 400px;">Too blurry? <a href="http://www.youtube.com/watch?v=dOaWlhyitoY&amp;fmt=18" target="_blank">Click here</a> to watch this video in High-Definition Youtube.</div>
</div>
<p><span style="text-decoration: underline;">Doing away with manual custom fields</span></p>
<p>I&#8217;m capturing the steps to upload and crop various formats of thumbnails for WordPress entries. It is one of the main features I&#8217;m building for use in my free WordPress theme. Previously, my solution for assigning thumbnails to WordPress entries was via &#8220;<em>custom fields</em>&#8220;. After a while of using custom fields, it began to feel tedious and I looked for a better way to handle thumbnails.</p>
<p>On top of that, one of my themes in development allows the use of up to 3 thumbnail formats (widescreen, square and rectangle) for every WordPress entries. Can you imagine every time you write a post, you have to fire up Photoshop to create three thumbnails. Each of them in different dimensions and aspect ratios. Uploading them to your blog. And finally copy-and-paste their URLs to custom keys. It certainly needs a more streamlined and convenient way of handling thumbnails. Manually doing it the custom field way just won&#8217;t cut it in the long run.</p>
<p><span id="more-45"></span><span style="text-decoration: underline;">On-the-fly upload, resize and crop thumbnails</span></p>
<p>As you can see from the video clip, bloggers can upload a jpg image file, crop it and save it as a thumbnail. Once the blogger clicks &#8216;Save&#8217; thumbnail, the URL is automatically assigned to a designated custom field behind the scene. Hence, the process of entering the thumbnail&#8217;s URL into a custom field has been automated.</p>
<p>On top of that, if you&#8217;re an experienced theme developer, you can configure more than one thumbnail to be used for each post. In the video clip, I&#8217;ve configured up to three thumbnails for each post.</p>
<p><del datetime="2008-10-19T09:56:19+00:00">I hope to wrap up this feature soon and implement it into my WordPress theme. Do drop by again.</del> Instead of building this into my themes, I&#8217;m going to develop it as a WordPress plugin. I&#8217;ll be hosting the plugin at WordPress official plugin directory and the more information can be found in my next post: <a href="http://www.seoadsensethemes.com/wp-post-thumbnail-wordpress-plugin/">WP Post Thumbnail - WordPress Plugin</a></p>
<p>Note: <em>Bear with the lacklustre video clip quality as this is my first time recording and producing an embedded flash video using Camtasia Studio 5. There&#8217;s still a slight learning curve despite it already being very user-friendly. I hope to be able to zoom-and-pan smoother, add narratives and find the best settings to produce Youtube High Definition clips soon.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seoadsensethemes.com/wordpress-post-thumbnail-without-custom-field/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Upgrading all my sites to WordPress 2.6.1</title>
		<link>http://www.seoadsensethemes.com/upgrading-all-my-sites-to-wordpress-261/</link>
		<comments>http://www.seoadsensethemes.com/upgrading-all-my-sites-to-wordpress-261/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 08:44:28 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
		
		<category><![CDATA[News and Updates]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.seoadsensethemes.com/?p=34</guid>
		<description><![CDATA[Upgrading all my sites running WordPress to 2.6.1 and it's about time.]]></description>
			<content:encoded><![CDATA[<p><a title="WordPress 2.6.1 link" href="http://wordpress.org/development/2008/08/wordpress-261/" target="_blank">WordPress 2.6.1 is out</a>. A maintenance release but for many including myself, it&#8217;s the time to move up to 2.6 altogether.</p>
<p>As I look back the past few weeks of testing 2.6 on several blogs, I&#8217;m delighted to say it&#8217;s been a wonderfully smooth experience. Unlike the upgrade to WordPress 2.5, my sites did not experience much trouble when using WordPress 2.6. I deployed 2.6 on several websites and found it was a breeze to work with. It played well with my themes too. Plugins did not break down. Tonight I&#8217;ll be upgrading all my sites running WordPress to 2.6.1 and I hope I won&#8217;t run into any problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seoadsensethemes.com/upgrading-all-my-sites-to-wordpress-261/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress Multi-Level Drop Down menu using jQuery</title>
		<link>http://www.seoadsensethemes.com/wordpress-multi-level-drop-down-menu-using-jquery/</link>
		<comments>http://www.seoadsensethemes.com/wordpress-multi-level-drop-down-menu-using-jquery/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 14:53:28 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
		
		<category><![CDATA[How-To]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[Dropdown Menu]]></category>

		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.seoadsensethemes.com/?p=23</guid>
		<description><![CDATA[As WordPress theme designers, we&#8217;re often faced between the choice of going for purely CSS drop-down menu or javascript drop-down menus in our struggle with cross-browser compatibility.
The aim of this short tutorial is help you build a simple multi-level drop-down menu in your WordPress theme using jQuery&#8217;s JavaScript library to ensure cross-browser compatibility.
When I first [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.seoadsensethemes.com/wp-content/uploads/2008/08/wordpress-jquery-multi-level-drop-down-menu.png"><img class="alignright size-full wp-image-27" title="WordPress jQuery Multi-Level Drop-Down Menu" src="http://www.seoadsensethemes.com/wp-content/uploads/2008/08/wordpress-jquery-multi-level-drop-down-menu.png" alt="WordPress jQuery Multi-Level Drop-Down Menu" width="252" height="117" /></a>As WordPress theme designers, we&#8217;re often faced between the choice of going for purely CSS drop-down menu or javascript drop-down menus in our struggle with cross-browser compatibility.</p>
<p>The aim of this short tutorial is help you build a simple multi-level drop-down menu in your WordPress theme using jQuery&#8217;s JavaScript library to ensure cross-browser compatibility.</p>
<p><span id="more-23"></span>When I first started to design WordPress themes, I went the pure-CSS way. I found a variety of cross-browser CSS-only drop-down menus at Stu Nicholls CSS Play and implemented his solutions into my themes. Some people do not like the way Stu hacked CSS to ensure cross-browser compatibility. It may be ugly but it works. And you can&#8217;t really use WordPress wp_list_pages() tag with Stu Nicholl&#8217;s CSS because the tag&#8217;s parameters could not reproduce the CSS hacks needed to make it work.</p>
<p>Later on, as I started to embrace more JavaScript in my WordPress themes, I decided to built my drop-down menu with a bit of jQuery Javascript help. It saved a lot of effort. No more unnecessary CSS hacks. Plays nice with WordPress <code>wp_list_pages()</code> tag. And WordPress installation already comes with jQuery library included. This is one of the main reasons why I chose jQuery among other Javascript libraries.</p>
<p>Anyway, I&#8217;m not here to convince you to use JavaScript for your WordPress drop-down menus. To those of you who are would like to use jQuery for your multi-level WordPress drop-down menu, I hope you&#8217;ll find the short tutorial below helpful.</p>
<p>Add this bit of JavaScript between the <code>&lt;head&gt;&lt;/head&gt;</code> HTML tags in your WordPress theme&#8217;s  <code>header.php</code> (<em>thanks to <a href="http://www.kriesi.at/archives/create-a-multilevel-dropdown-menu-with-css-and-improve-it-via-jquery">kriesi.at</a></em>):</p>
<pre class="syntax-highlight:javascript">
// enqueue WordPress own jquery library
&lt;?php wp_enqueue_script(&#039;jquery&#039;); ?&gt;

&lt;script type=&#039;text/javascript&#039;&gt;
jQuery(&quot; #dropmenu ul &quot;).css({display: &quot;none&quot;}); // Opera Fix
jQuery(&quot; #dropmenu li&quot;).hover(function(){
		jQuery(this).find(&#039;ul:first&#039;).css({visibility: &quot;visible&quot;,display: &quot;none&quot;}).show(268);
		},function(){
		jQuery(this).find(&#039;ul:first&#039;).css({visibility: &quot;hidden&quot;});
		});
&lt;/script&gt;
</pre>
<p>The HTML. We will list the pages using WordPress default <code>wp_list_pages()</code> tag. I used it in <code>header.php</code>:</p>
<pre class="syntax-highlight:html">
&lt;ul id=&quot;dropmenu&quot;&gt;
&lt;?php wp_list_pages(&#039;sort_column=menu_order&amp;amp;amp;title_li=&#039;); ?&gt;
&lt;/ul&gt;
</pre>
<p>Now here&#8217;s the CSS:</p>
<pre class="syntax-highlight:css">
#dropmenu, #dropmenu ul {margin:0; padding:0; list-style-type:none; list-style-position:outside; position:relative; line-height:1.5em; z-index:300; width:100%; background:#fff; font-weight:bold;}
#dropmenu a {display:block; padding:0.25em 8px; color:#686868; border-right:1px solid #c8c8c8; text-decoration:none; background:#fff;}
#dropmenu a:hover {background:#888; color:#fff;}
#dropmenu li {float:left; position:relative;}
#dropmenu li.logo a {border:none; border-top:4px solid #ffbe10; background:#f85c00; color:#ffbe10; font-size:1.68em; line-height:1.48em; font-weight:bold; padding:0 0.68em 1px 0.68em; margin:-8px 0 0 -1px; -moz-border-radius:0 0 7px 7px; -webkit-border-radius:0 0 7px 7px;}
#dropmenu ul {position:absolute; display:none; width:12em; top:1.9em;}
#dropmenu ul a {border-left:1px solid #c8c8c8;}
#dropmenu li ul {border-top:1px solid #c8c8c8; width:13.7em;}
#dropmenu li ul a {width:12em; height:auto; float:left;  border-bottom:1px solid #c8c8c8;}
#dropmenu ul ul {top:auto;}
#dropmenu li ul ul {left:12em; margin:0px 0 0 10px;}
#dropmenu li:hover ul ul, #dropmenu li:hover ul ul ul, #dropmenu li:hover ul ul ul ul {display:none;}
#dropmenu li:hover ul, #dropmenu li li:hover ul, #dropmenu li li li:hover ul, #dropmenu li li li li:hover ul {display:block;}
</pre>
<p>The CSS styling provided is similar to the demo site. You can view a <a title="WordPress jQuery Multi-Level Drop-Down Menu Demo" href="http://www.hotelsandtravel.org" target="_blank">demo of WordPress jQuery Multi-Level Drop-Down Menu</a> in action here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seoadsensethemes.com/wordpress-multi-level-drop-down-menu-using-jquery/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Putting a &#8216;New Post&#8217; image label next to WordPress entries posted within the last 24 hours</title>
		<link>http://www.seoadsensethemes.com/putting-a-new-post-image-label-next-to-entries-wordpress-posted-last-24-hours/</link>
		<comments>http://www.seoadsensethemes.com/putting-a-new-post-image-label-next-to-entries-wordpress-posted-last-24-hours/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 06:18:06 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
		
		<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://www.seoadsensethemes.com/?p=13</guid>
		<description><![CDATA[
&#8230; or perhaps entries posted in the last 48 hours? Ever wanted to put a small image label next to your post telling readers &#8220;Hey, this post is barely 2 days old. It&#8217;s new!&#8221;
Of course, putting a new post label is nothing new. But again, this tiny feature does not come with default WordPress. Luckily [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-14" title="New Post Label" src="http://www.seoadsensethemes.com/wp-content/uploads/2008/08/new.png" alt="New Post Label" width="286" height="230" /></p>
<p>&#8230; or perhaps entries posted in the last 48 hours? Ever wanted to put a small image label next to your post telling readers &#8220;Hey, this post is barely 2 days old. It&#8217;s new!&#8221;</p>
<p>Of course, putting a new post label is nothing new. But again, this tiny feature does not come with default WordPress. Luckily with just one or two lines of PHP code, you can modify your WordPress theme to label your new entries automatically.</p>
<p>The following code sample shows how you can label your posts with a tiny image &#8216;new.gif&#8217; if your post is less than 2 days old. Within your latest entries Loop, we&#8217;ll put the &#8216;new.gif&#8217; image label right new to your post title:<br />
<span id="more-13"></span>
<pre class="syntax-highlight:php">
...
...
&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;?php if ( (time()-get_the_time(&#039;U&#039;)) &lt;= (2*86400) ) { ?&gt;
&lt;img class=&quot;new_entry_label&quot; src=&quot;&lt;?php bloginfo(&#039;template_directory&#039;); ?&gt;/images/new.gif&quot; alt=&quot;(New Entry)&quot; title=&quot;(New Entry)&quot; /&gt;
&lt;?php } ?&gt;
...
...
</pre>
<p>That&#8217;s it. Click <a href="http://www.hotelsandtravel.org">here</a> to see it in action on one of my WordPress theme demos. Notice how the newer posts&#8217; title are labelled with a new.gif image.</p>
<p>Now for some explanation on the code used &#8230;</p>
<p>PHP <code>time()</code> function returns the current time in <em>Unix Epoch format</em> which looks like this:</p>
<pre><code>12217984786</code></pre>
<p>The function <code>get_the_time('U')</code> returns the entry posted time in <em>Unix Epoch format</em>. Now that both current time ( time() ) and entry posted time ( get_the_time(&#8217;U') ) is in <em>Unix Epoch format</em>, we can easily calculate the time difference by substracting current time with entry posted time;</p>
<pre><code>time()-get_the_time('U')</code></pre>
<p>Finally, we evaluate if the difference is less than 2 days (again converted to <em>Unix Epoch format</em> by multiplying with 86400 ), the condition is true and the <code><img alt="" /></code> tag is executed which puts &#8220;new.gif&#8221; image label next to your post title.</p>
<pre><code>
&lt;?php if ( (time()-get_the_time('U')) &lt;= (2*86400) ) { ?&gt;
	&lt;img class="new_entry_label" src="&lt;?php bloginfo('template_directory'); ?&gt;/images/new.gif" alt="(New Entry)" title="(New Entry)" /&gt;
&lt;?php } ?&gt;
</code></pre>
<p>If you want to label 7-day old posts as new instead, just change <code>(2*86400)</code> to <code>(7*86400)</code>. That&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seoadsensethemes.com/putting-a-new-post-image-label-next-to-entries-wordpress-posted-last-24-hours/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress 2.6 releasing today?</title>
		<link>http://www.seoadsensethemes.com/wordpress-26-releasing-today/</link>
		<comments>http://www.seoadsensethemes.com/wordpress-26-releasing-today/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 02:14:17 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
		
		<category><![CDATA[News and Updates]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.seoadsensethemes.com/?p=8</guid>
		<description><![CDATA[Having missed July 7th release date, will WordPress 2.6 make it for release a week later?]]></description>
			<content:encoded><![CDATA[<p>WordPress has given the first planned release date of 7th July 2008 the miss and aiming for the next which is 14th July 2008. There&#8217;s a couple of hours left to see if it manage to keep its deadline <a href="http://technosailor.com/2008/07/14/wordpress-26-launching-tonight/">if WordPress gets released tonight</a>.</p>
<p>WordPress Release Candidate 1 has just been released two days ago so I really doubt they&#8217;ll make it today. Of course, I&#8217;d be glad to be proven wrong this time.</p>
<p><span id="more-8"></span>I&#8217;ve got 4 blogs currently using WordPress 2.5.1 and I&#8217;ve yet to test any beta releases or RC1 of WordPress 2.6 on any of my blogs. When 2.6 hit the mirrors, be it tonight or at a later date, I&#8217;ll try it out in one of my blogs to see if I should upgrade the rest to 2.6.</p>
<p>For me, the new features in WordPress 2.6 worth checking out is image captioning, theme preview and an improved media uploader.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seoadsensethemes.com/wordpress-26-releasing-today/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to list latest posts and subcategories of each top level categories in WordPress</title>
		<link>http://www.seoadsensethemes.com/wordpress-latest-posts-subcategories-each-top-level-categories/</link>
		<comments>http://www.seoadsensethemes.com/wordpress-latest-posts-subcategories-each-top-level-categories/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 15:47:31 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
		
		<category><![CDATA[Categories]]></category>

		<category><![CDATA[CSS]]></category>

		<category><![CDATA[get_categories]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[wp_list_categories]]></category>

		<guid isPermaLink="false">http://www.seoadsensethemes.com/?p=4</guid>
		<description><![CDATA[For every top level categories, we'll list the category title, category description, a couple of latest posts in that category and finally list all subcategories.]]></description>
			<content:encoded><![CDATA[<p>Sorry for the long and confusing title. Do allow me to illustrate and describe what I have in mind.</p>
<p>What we&#8217;re going to do here is <span style="text-decoration: underline;">for every top-level categories</span>, we will:</p>
<p><a href="http://www.seoadsensethemes.com/wp-content/uploads/2008/07/custom_wordpress_category_style_06.png"><img class="alignright size-full wp-image-7" title="Sample - Styling and customizing WordPress categories in news and magazine style" src="http://www.seoadsensethemes.com/wp-content/uploads/2008/07/custom_wordpress_category_style_06.png" alt="Sample custom WordPress categories style - Just CSS" width="325" height="443" /></a></p>
<ol>
<li>display the <span style="text-decoration: underline;">category title</span> in bold and the <span style="text-decoration: underline;">category description</span>.</li>
<li>list the <span style="text-decoration: underline;">latest post title</span> prominently displayed as the first entry and <span style="text-decoration: underline;">short excerpt</span>.</li>
<li>list is <span style="text-decoration: underline;">followed by four or five post titles sorted by date</span>.</li>
<li>finally <span style="text-decoration: underline;">all children/subcategories of the category listed at the bottom</span>.</li>
</ol>
<p>Something like what we have here on the right illustration. Using WordPress, I&#8217;ve always wanted to replicate the myriad of ways most news and magazine-style websites present its contents.</p>
<p>If you are familiar with <code>wp_list_categories()</code>, which is the one of main category tags that handles how categories are formatted and displayed, you&#8217;ll realise <code>wp_list_categories()</code> alone is not enough. We&#8217;ll also use <code>get_categories()</code>, <code>get_cat_ID()</code>and a wpdb query direct into WordPress&#8217;s database.</p>
<p>Also, I think the coding in this article is more suited for WordPress themers who prefer to hard-code it into their themes. The solution is a very straightforward sequential code where you can just copy and paste it into your sidebar.php (or wherever you wish) for instance.</p>
<p>Let&#8217;s get down to the source codes &#8230;</p>
<p><span id="more-4"></span><strong>CSS stylesheet</strong></p>
<pre class="syntax-highlight:css">ul.category_list {width:300px; list-style:none; padding:0; margin:0;}
.category_title {background:#333; color:#fff; padding:0.2em 0.5em; font-size:1em; margin:0; text-transform:uppercase;}
.category_box {background:#f8f8f8; border:1px solid #333; border-width:0 1px 1px 1px; margin:0 0 2em 0;}
.category_description {background:#aaa; border-bottom:3px solid #ccc; color:#eee; font-style:italic; display:block; padding:0.5em; font-size:0.9em; font-weight:bold;}
ul.category_posts {list-style:none; margin:0 1em; padding:0; font-size:0.8em;}
ul.category_posts li {border-bottom:1px dotted #bbb; padding:0.75em 0;}
ul.category_posts li.last {border:none; padding:0.5em 0; margin:0 0 1em 0;}
ul.category_posts li a {color:#333;}
ul.category_posts li a.more_articles {text-decoration:underline; font-weight:bold;}
ul.subcategory_list {color:#aaa; padding:1em; margin:0; background:#eee; border-top:1px solid #ccc; font-size:0.8em; font-weight:bold;}
ul.subcategory_list li {display:inline; margin:0 0 0 0.75em;}
ul.subcategory_list li a {color:#333;}
.first_post {font-size:1.2em; font-weight:bold;}
.first_post_excerpt {color:#888; font-weight:normal; font-style:italic;}</pre>
<p><strong>PHP and HTML markup</strong></p>
<pre class="syntax-highlight:php">&lt;?php // get category IDs of Featured, Uncategorized and Personal for exclusion
$categories_to_exclude = get_cat_ID(&#039;featured&#039;).&#039;,&#039;.get_cat_ID(&#039;uncategorized&#039;).&#039;,&#039;.get_cat_ID(&#039;personal&#039;);

// get category IDs for all subcategories (categories where parent is not 0) for exclusion
$subcats = $wpdb-&gt;get_results(&quot;SELECT term_id FROM $wpdb-&gt;term_taxonomy WHERE taxonomy=&#039;Category&#039; AND parent&gt;0&quot;);
foreach ((array)$subcats as $subcat) { $categories_to_exclude .= &#039;,&#039;.$subcat-&gt;term_id; }

// get all categories minus excluded categories
$cats = get_categories(&#039;exclude=&#039;.$categories_to_exclude.&#039;&amp;amp;orderyby=name&amp;amp;hide_empty=0&#039;); ?&gt;

&lt;h3&gt;CATEGORIES&lt;/h3&gt;

&lt;ul class=&quot;category_list&quot;&gt;

&lt;?php foreach ((array)$categories as $category) { ?&gt;
	&lt;li class=&quot;category_box&quot;&gt;&lt;h5 class=&quot;category_title&quot;&gt;• &lt;?php echo $category-&gt;cat_name; ?&gt;&lt;/h5&gt;
			&lt;div class=&quot;category_description&quot;&gt;“&lt;?php echo $category-&gt;category_description; ?&gt;” &lt;/div&gt;

			&lt;?php $the_query = new WP_Query(&#039;cat=&#039;.$category-&gt;cat_ID.&#039;&amp;amp;showposts=5&amp;amp;orderby=post_date&#039;);
			$first = true; ?&gt;

			&lt;ul class=&quot;category_posts&quot;&gt;
			&lt;?php while ($the_query-&gt;have_posts()) : $the_query-&gt;the_post(); ?&gt;

				&lt;?php if ($first) { ?&gt;
					&lt;li class=&quot;first_post&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot; &gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;br /&gt;
					&lt;small class=&quot;first_post_excerpt&quot;&gt;&lt;?php echo strip_tags(get_the_excerpt(), &#039;&lt;a&gt;&lt;strong&gt;&#039;); ?&gt;&lt;/small&gt;
				&lt;?php $first = false;
				} else { ?&gt;
					&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot; &gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
				&lt;?php } ?&gt;
				&lt;/li&gt;
			&lt;?php endwhile; ?&gt;
			&lt;li class=&quot;last&quot;&gt;&lt;a class=&quot;more_articles&quot; href=&quot;&lt;?php the_permalink() ?&gt;&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot; &gt;More articles in &lt;?php echo $category-&gt;cat_name; ?&gt; »&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;

		&lt;?php $sub_categories =  wp_list_categories(&#039;echo=0&amp;amp;orderby=name&amp;amp;title_li=&amp;amp;hierarchical=0&amp;amp;child_of=&#039;.$category-&gt;cat_ID);
		if ($sub_categories != &quot;&lt;li&gt;No categories&lt;/li&gt;&quot;) { ?&gt;
			&lt;ul class=&quot;subcategory_list&quot;&gt;See Also: &lt;?php echo $sub_categories; ?&gt;&lt;/ul&gt;
		&lt;?php } ?&gt;
	&lt;/li&gt;
&lt;?php } ?&gt;
&lt;/ul&gt;</pre>
<p>I hope you find this short tutorial useful. Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seoadsensethemes.com/wordpress-latest-posts-subcategories-each-top-level-categories/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
