<?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>bavotasan.com &#187; New Features</title>
	<atom:link href="http://bavotasan.com/tag/new-features/feed/" rel="self" type="application/rss+xml" />
	<link>http://bavotasan.com</link>
	<description>by c.bavota</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:42:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Feed Me, Seymour 1.2</title>
		<link>http://bavotasan.com/2010/feed-me-seymour-free-wordpress-theme/</link>
		<comments>http://bavotasan.com/2010/feed-me-seymour-free-wordpress-theme/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 13:05:24 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[Admin Interface]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[Click]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[engine v2]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[info]]></category>
		<category><![CDATA[Interface]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[lot]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Whole Lot]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=279</guid>
		<description><![CDATA[I have just updated Feed Me, Seymour for WordPress 3.0 and many of its new features. I have also cleaned up the code and added the Arturo Theme Engine v2.0 so that the admin interface works a whole lot better. Version 1.2 is currently only available on this site. Just click the download button below. [...]]]></description>
			<content:encoded><![CDATA[<p>I have just updated Feed Me, Seymour for WordPress 3.0 and many of its new features. I have also cleaned up the code and added the Arturo Theme Engine v2.0 so that the admin interface works a whole lot better. Version 1.2 is currently only available on this site. Just click the download button below.<br />
<span id="more-279"></span><br />
<em>Here are some examples of different layout options.</em></p>
<p><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2009/02/feedmeseymour.jpg"><img src="http://bavotasan.com/wp-content/uploads/2009/02/feedmeseymour-200x167.jpg" alt="feedmeseymour" title="feedmeseymour" width="160" class="alignleft size-thumbnail wp-image-280" /></a><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2009/02/feedme2.jpg"><img src="http://bavotasan.com/wp-content/uploads/2009/02/feedme2-200x175.jpg" alt="feedme2" title="feedme2" width="160" class="alignleft size-thumbnail wp-image-702" /></a><a class="highslide" href="http://bavotasan.com/wp-content/uploads/2009/02/feedme3.jpg"><img src="http://bavotasan.com/wp-content/uploads/2009/02/feedme3-200x151.jpg" alt="feedme3" title="feedme3" width="160" class="alignleft size-thumbnail wp-image-703" /></a></p>
<hr style="clear:both;border:0;">
<p>For more info go to <a href="http://themes.bavotasan.com/our-themes/basic-themes/feed-me-seymour">Themes by bavotasan.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/feed-me-seymour-free-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>92</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0 &#8220;Thelonious&#8221; Officially Released</title>
		<link>http://bavotasan.com/2010/wordpress-30-thelonious-officially-released/</link>
		<comments>http://bavotasan.com/2010/wordpress-30-thelonious-officially-released/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 19:56:49 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[advantage]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[look]]></category>
		<category><![CDATA[magazine]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[org]]></category>
		<category><![CDATA[premium]]></category>
		<category><![CDATA[thing]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=2212</guid>
		<description><![CDATA[It is finally here. Good thing I just released an update to Magazine Premium to take advantage of all the cool new features in WP 3.0. What features, you say? Take a look at some of my recent posts to read about a few of them. You can even test some of them out for [...]]]></description>
			<content:encoded><![CDATA[<p>It is finally here. Good thing I just released an update to <a href="http://themes.bavotasan.com/our-themes/premium-themes/magazine-premium/">Magazine Premium</a> to take advantage of all the cool new features in WP 3.0. What features, you say? Take a look at some of my recent posts to read about a few of them. You can even test some of them out for FREE in <a href="http://themes.bavotasan.com/our-themes/basic-themes/magazine-basic/">Magazine Basic</a>, which has also just recently been updated for WP 3.0.<br />
<span id="more-2212"></span><br />
Check out this video from WordPress.org showing off some of the new hotness:</p>
<p><embed  src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21"  type="application/x-shockwave-flash" width="570" height="320" wmode="transparent" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true" flashvars="guid=BQtfIEY1&amp;width=570&amp;height=320&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M"  title="Introducing WordPress 3.0 &quot;Thelonious&quot;"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/wordpress-30-thelonious-officially-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magazine Basic v2.6 WordPress Theme</title>
		<link>http://bavotasan.com/2010/magazine-basic-free-wordpress-theme/</link>
		<comments>http://bavotasan.com/2010/magazine-basic-free-wordpress-theme/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 13:05:03 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Background]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[engine v2]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[magazine]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[menu system]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[org]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=1488</guid>
		<description><![CDATA[Since I have been doing all this talking about WordPress 3.0, I thought it only fitting to start incorporating some if its features into my themes. The first theme to get the upgrade is Magazine Basic. Version 2.6 also has the Arturo Theme Engine v2.0 installed to give a smoother experience while configuring the theme [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://bavotasan.com/wp-content/uploads/2009/11/magabasi.png" alt="magabasi" title="magabasi" width="300" height="225" class="alignright size-full wp-image-1489" />Since I have been doing all this talking about WordPress 3.0, I thought it only fitting to start incorporating some if its features into my themes. The first theme to get the upgrade is <a href="http://themes.bavotasan.com/our-themes/basic-themes/magazine-basic">Magazine Basic</a>. Version 2.6 also has the Arturo Theme Engine v2.0 installed to give a smoother experience while configuring the theme options. The new MB is currently available for download off of <a href="http://wordpress.org/extend/themes/magazine-basic">WordPress.org</a>.<span id="more-1488"></span> </p>
<p>Here are a few of the new features:</p>
<ul>
<li>WordPress 3.0 menu system</li>
<li>WordPress 3.0 background editor</li>
<li>Arturo Theme Engine v2.0</li>
<li>Ajax save function</li>
<li>Cleaner code</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/magazine-basic-free-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>114</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0: Checking out the New Menu System</title>
		<link>http://bavotasan.com/2010/wordpress-3-checking-out-the-new-menu-system/</link>
		<comments>http://bavotasan.com/2010/wordpress-3-checking-out-the-new-menu-system/#comments</comments>
		<pubDate>Fri, 21 May 2010 16:43:20 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Default Theme]]></category>
		<category><![CDATA[discussion]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[idea]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Location]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[menu system]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[order]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[php tags]]></category>
		<category><![CDATA[Second Image]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=2027</guid>
		<description><![CDATA[The release of WordPress 3.0 is almost here, so I thought it would be a good idea to start an in-depth discussion on some of the new features. One that I am really looking forward to, and that has been getting a lot of buzz, is the new menu system. Inspired by a similar system [...]]]></description>
			<content:encoded><![CDATA[<p>The release of WordPress 3.0 is almost here, so I thought it would be a good idea to start an in-depth discussion on some of the new features. One that I am really looking forward to, and that has been getting a lot of buzz, is the new menu system. Inspired by a similar system created by WooThemes, WP 3.0 allows the user to create multiple menus that can include any category, page or link they choose. <span id="more-2027"></span>I have been testing the latest build (3.0-beta2-14769) and so far, the menu system interface is looking pretty good.</p>
<p>Here are a couple of screen shots to show you what it looks like:<br />
<div id="attachment_2028" class="wp-caption aligncenter" style="width: 560px"><img src="http://bavotasan.com/wp-content/uploads/2010/05/menu1.jpg" alt="" title="menu1" width="550" class="size-full wp-image-2028" /><p class="wp-caption-text">WordPress 3.0's new menu system.</p></div> <div id="attachment_2029" class="wp-caption aligncenter" style="width: 560px"><img src="http://bavotasan.com/wp-content/uploads/2010/05/menu2.jpg" alt="" title="menu2" width="550" class="size-full wp-image-2029" /><p class="wp-caption-text">This is what you will see once you have created a menu.</p></div></p>
<p>Taking a look behind the scenes of TwentyTen, the new default theme for WP 3.0, gives a little insight as to how it all works and what needs to be in place to make sure that the theme you are using will take advantage of this new feature. </p>
<p>First, you need to include the following in your <code>functions.php</code> file:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;">add_theme_support<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'nav-menus'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div>

<p>Make sure it is placed within the PHP tags. That is all you really need to activate the menu system. A link to the Menus admin page will appear in the Appearance panel. If you really want your theme to stand out, you can even register menu locations so that the user can assign menus to specific areas of your theme templates. This is similar to the sidebar functionality.</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;">register_nav_menu<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'main'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Main Navigation Menu'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></td></tr></table></div>

<p>This will register a menu with the ID &#8220;main&#8221; and the description &#8220;Main Navigation Menu&#8221;. Including this snippet will make a new panel appear on the Menus admin page (see the second image above). Now users can select which of their menus will appear in that registered location.</p>
<p>Next comes the function to actually display these menus in your theme. This is how TwentyTen uses the function in <code>header.php</code>:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'sort_column'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu_order'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'container_class'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu-header'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></td></tr></table></div>

<p>The above code displays the first menu you created, ordered how you have set it, within a div container with the classname &#8220;menu-header&#8221;. </p>
<p>Here is a list of all the arguments that the function can take (so far):</p>
<ul>
<li>menu &#8211; The menu that is desired.  Accepts (matching in order) id, slug, name. Defaults to blank.</li>
<li>menu_class &#8211; CSS class to use for the ul container of the menu list. Defaults to &#8216;menu&#8217;.</li>
<li>container &#8211; Whether to wrap the ul, and what to wrap it with. Defaults to &#8216;div&#8217;.</li>
<li>container_class &#8211; the class that is applied to the container. Defaults to blank.</li>
<li>fallback_cb &#8211; If the menu doesn&#8217;t exists, a callback function will fire. Defaults to &#8216;wp_page_menu&#8217;.</li>
<li>before &#8211; Text before the link text.</li>
<li>after &#8211; Text after the link text.</li>
<li>link_before &#8211; Text before the link.</li>
<li>link_after &#8211; Text after the link.</li>
<li>echo &#8211; Whether to echo the menu or return it. Defaults to echo.</li>
<li>depth &#8211; how many levels of the hierarchy are to be included.  0 means all.  Defaults to 0.</li>
<li>walker &#8211; allows a custom walker to be specified.</li>
<li>context &#8211; the context the menu is used in.</li>
<li>theme_location &#8211; the location in the theme to be used.  Must be registered with register_nav_menu() in order to be selectable by the user.</li>
</ul>
<p>You need to use the <code>theme_location</code> argument to call a registered menu:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'theme_location'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'main'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'sort_column'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu_order'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fallback_cb'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'display_home'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></td></tr></table></div>

<p>I have also added the <code>fallback_cb</code> argument to show how to control the default callback if no menu is created. If you don&#8217;t include a callback it will default to <code>wp_page_menu()</code> which will just list your pages. I have assigned a function called <code>display_home()</code> as my callback.</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> display_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;navigation&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
	wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&amp;depth=1&amp;number=5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/ul&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></td></tr></table></div>

<p>By default, that will display a home link and 5 categories.</p>
<p>There still seem to be a few bugs in the new menu system, but that is to be expected in a beta version. All in all, it is a great addition to WordPress, and theme developers should rejoice that they can now easily offer more control to their users by taking advantage of one of the many core features that will be included in WP 3.0.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/wordpress-3-checking-out-the-new-menu-system/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Force WordPress to use the Latest Version of jQuery</title>
		<link>http://bavotasan.com/2010/force-wordpress-use-latest-version-jquery/</link>
		<comments>http://bavotasan.com/2010/force-wordpress-use-latest-version-jquery/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 15:20:43 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[action]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[Change]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[head]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[piece]]></category>
		<category><![CDATA[Place]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=1875</guid>
		<description><![CDATA[If you&#8217;re using WordPress 2.9.x, then the latest version of jQuery included is 1.3.2. What if you want to take advantage of new features in version 1.4, like delaying an animation queue or binding multiple event handlers? You can easily add a link in your header to the latest version, but that might end up [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using WordPress 2.9.x, then the latest version of <a href="http://jquery.com/">jQuery</a> included is 1.3.2. What if you want to take advantage of new features in version 1.4, like delaying an animation queue or binding multiple event handlers? You can easily add a link in your header to the latest version, but that might end up conflicting with some plugins or themes.<br />
<span id="more-1875"></span><br />
The best approach would be to use the following piece of code to let WordPress know that you want to load the current version instead.</p>
<p>Place this into your theme&#8217;s <code>functions.php</code> file:</p>

<div class="wp_syntax"><table border='0' cellpadding='0' cellspacing='0'><tr><td><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> current_jquery<span style="color: #009900;">&#40;</span><span style="color: #000088;">$version</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_scripts</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">version_compare</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$version</span><span style="color: #339933;">,</span> <span style="color: #000088;">$wp_scripts</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">registered</span><span style="color: #009900;">&#91;</span>jquery<span style="color: #009900;">&#93;</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">ver</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>is_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                wp_deregister_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
                wp_register_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #339933;">,</span>
                        <span style="color: #0000ff;">'http://ajax.googleapis.com/ajax/libs/jquery/'</span><span style="color: #339933;">.</span><span style="color: #000088;">$version</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/jquery.min.js'</span><span style="color: #339933;">,</span>
                        <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$version</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> current_jquery<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'1.4.2'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// change number to latest version</span></pre></div></td></tr></table></div>

<p>If jQuery is updated, all you have to do is change the version number when calling the function.</p>
<p><strong>Reference</strong>: <a href="http://binarybonsai.com/2010/02/14/how-to-load-the-latest-jquery-in-wordpress/">Binary Bonsai</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/force-wordpress-use-latest-version-jquery/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>New Video Demonstrations in the Support Forum</title>
		<link>http://bavotasan.com/2010/new-video-demonstrations-in-the-support-forum/</link>
		<comments>http://bavotasan.com/2010/new-video-demonstrations-in-the-support-forum/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 22:22:31 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css editor]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[custom css]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[engine v2]]></category>
		<category><![CDATA[Forum]]></category>
		<category><![CDATA[Interface]]></category>
		<category><![CDATA[Logo]]></category>
		<category><![CDATA[magazine]]></category>
		<category><![CDATA[New]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[Pages]]></category>
		<category><![CDATA[premium]]></category>
		<category><![CDATA[Support Forum]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=1682</guid>
		<description><![CDATA[I put together some video demonstrations in the Support Forum to get people ready for the release of Magazine Premium. If all goes as planned, MP will be out tomorrow (fingers crossed). I&#8217;m going to do my best to release new video demos as often as possible to help users adapt to the new features [...]]]></description>
			<content:encoded><![CDATA[<p>I put together some video demonstrations in the <a href="http://support.bavotasan.com">Support Forum</a> to get people ready for the release of Magazine Premium. If all goes as planned, MP will be out tomorrow (fingers crossed). I&#8217;m going to do my best to release new video demos as often as possible to help users adapt to the new features available in MP.<br />
<span id="more-1682"></span><br />
After all the kinks are ironed out of the new UI I will update every theme developed by <a href="http://themes.bavotasan.com">Themes by bavotasan.com</a> to include the <a href="http://themes.bavotasan.com/features">Arturo Theme Engine v2.0</a> admin interface.</p>
<p>Here are the latest video demos:</p>
<ul>
<li><a href="http://support.bavotasan.com/topic/setting-up-the-custom-css-editor">Setting Up the Custom CSS Editor</a></li>
<li><a href="http://support.bavotasan.com/topic/adding-a-logo-to-the-header">Adding a Logo to the Header</a></li>
<li><a href="http://support.bavotasan.com/topic/how-to-add-categories-pages-and-links-to-the-nav-menu">How to add Categories, Pages and Links to the Nav Menu</a></li>
<p></uL></p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2010/new-video-demonstrations-in-the-support-forum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.9 is Out!</title>
		<link>http://bavotasan.com/2009/wordpress-2-9-is-out/</link>
		<comments>http://bavotasan.com/2009/wordpress-2-9-is-out/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 16:32:49 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[bunch]]></category>
		<category><![CDATA[chance]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[org]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=1597</guid>
		<description><![CDATA[I haven&#8217;t had a chance to go through WordPress 2.9 and figure out all the improvements just yet, but I am excited to do so. A few items they have been boasting about are a global undo/”trash” feature, a built-in image editor, a batch plugin update/compatibility checking and easier video embeds. Here is a little [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t had a chance to go through WordPress 2.9 and figure out all the improvements just yet, but I am excited to do so. A few items they have been boasting about are a global undo/”trash” feature, a built-in image editor, a batch plugin update/compatibility checking and easier video embeds.<br />
<span id="more-1597"></span><br />
Here is a little video from WordPress.org that goes through a bunch of the new features in 2.9.</p>
<p><embed src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.11" type="application/x-shockwave-flash" width="580" height="326" allowscriptaccess="always" allowfullscreen="true" flashvars="guid=NBZ853Xn&amp;width=580&amp;height=326" title="Introducing WordPress 2.9 Carmen"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/wordpress-2-9-is-out/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Add Nested Comments to Your WordPress Theme</title>
		<link>http://bavotasan.com/2009/how-to-add-nested-comments-to-your-wordpress-theme/</link>
		<comments>http://bavotasan.com/2009/how-to-add-nested-comments-to-your-wordpress-theme/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 16:53:55 +0000</pubDate>
		<dc:creator>c.bavota</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[alignright]]></category>
		<category><![CDATA[Amp]]></category>
		<category><![CDATA[bunch]]></category>
		<category><![CDATA[Click]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[custom theme]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[img]]></category>
		<category><![CDATA[lot]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[magazine]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[Padding]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[request]]></category>
		<category><![CDATA[someone]]></category>
		<category><![CDATA[Style]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[threaded comments]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[Url]]></category>
		<category><![CDATA[way]]></category>
		<category><![CDATA[web programming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress hack]]></category>
		<category><![CDATA[Wp]]></category>

		<guid isPermaLink="false">http://bavotasan.com/?p=333</guid>
		<description><![CDATA[When WordPress 2.7 came out, there were a lot of new features, most of which probably passed by under your radar. I know I missed a bunch and thankfully, I am starting to notice how much more powerful WordPress has become. I had someone request making my Magazine Basic theme function with nested comments and [...]]]></description>
			<content:encoded><![CDATA[<p>When WordPress 2.7 came out, there were a lot of new features, most of which probably passed by under your radar. I know I missed a bunch and thankfully, I am starting to notice how much more powerful WordPress has become. I had someone request making my <a href="http://bavotasan.com/wordpress/free-wordpress-themes/magazine-basic-free-wordpress-theme/">Magazine Basic theme</a> function with nested comments and that started me on researching just how this new WP feature worked. It ended up being a harder nut to crack than I first thought, but crack it I did (though I probably spend way too much time on it).<br />
<span id="more-333"></span><br />
There are quite a few steps to making your theme work with nested comments but the easiest thing to do to start off is open up your theme&#8217;s comments.php file and replace it with this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Do not delete these lines</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SCRIPT_FILENAME'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #0000ff;">'comments.php'</span> <span style="color: #339933;">==</span> <span style="color: #990000;">basename</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SCRIPT_FILENAME'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Please do not load this page directly. Thanks!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> post_password_required<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;p class=&quot;nocomments&quot;&gt;This post is password protected. Enter the password to view comments.&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;!-- You can start editing here. --&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_comments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;h3 id=&quot;comments&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_number<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Responses'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'One Response'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Responses'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> to &amp;#8220;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&amp;#8221;&lt;/h3&gt;
&nbsp;
&lt;div class=&quot;navigation&quot;&gt;
&lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
&lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
&lt;/div&gt;
&nbsp;
&lt;ol class=&quot;commentlist&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ol&gt;
&nbsp;
&lt;div class=&quot;navigation&quot;&gt;
&lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
&lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_comments_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// this is displayed if there are no comments so far ?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'open'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_status</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;!-- If comments are open, but there are no comments. --&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// comments are closed ?&gt;</span>
<span style="color: #339933;">&lt;!--</span> <span style="color: #b1b100;">If</span> comments are closed<span style="color: #339933;">.</span> <span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nocomments&quot;</span><span style="color: #339933;">&gt;</span>Comments are closed<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'open'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_status</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;div id=&quot;respond&quot;&gt;
&nbsp;
&lt;h3&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_form_title<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Leave a Reply'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Leave a Reply to %s'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h3&gt;
&nbsp;
&lt;div class=&quot;cancel-comment-reply&quot;&gt;
&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> cancel_comment_reply_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/small&gt;
&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_registration'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$user_ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;p&gt;You must be &lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/wp-login.php?redirect_to=<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span>get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;logged in&lt;/a&gt; to post a comment.&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;form action=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/wp-comments-post.php&quot; method=&quot;post&quot; id=&quot;commentform&quot;&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;p&gt;Logged in as &lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/wp-admin/profile.php&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$user_identity</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;. &lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wp_logout_url<span style="color: #009900;">&#40;</span>get_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; title=&quot;Log out of this account&quot;&gt;Log out &amp;raquo;&lt;/a&gt;&lt;/p&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;author&quot; id=&quot;author&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$comment_author</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; size=&quot;22&quot; tabindex=&quot;1&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;aria-required='true'&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> /&gt;
&lt;label for=&quot;author&quot;&gt;&lt;small&gt;Name <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;(required)&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;
&nbsp;
&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$comment_author_email</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; size=&quot;22&quot; tabindex=&quot;2&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;aria-required='true'&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> /&gt;
&lt;label for=&quot;email&quot;&gt;&lt;small&gt;Mail (will not be published) <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;(required)&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;
&nbsp;
&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;url&quot; id=&quot;url&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$comment_author_url</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; size=&quot;22&quot; tabindex=&quot;3&quot; /&gt;
&lt;label for=&quot;url&quot;&gt;&lt;small&gt;Website&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;!--&lt;p&gt;&lt;small&gt;&lt;strong&gt;XHTML:&lt;/strong&gt; You can use these tags: &lt;code&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> allowed_tags<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/code&gt;&lt;/small&gt;&lt;/p&gt;--&gt;
&nbsp;
&lt;p&gt;&lt;textarea name=&quot;comment&quot; id=&quot;comment&quot; cols=&quot;100%&quot; rows=&quot;10&quot; tabindex=&quot;4&quot;&gt;&lt;/textarea&gt;&lt;/p&gt;
&nbsp;
&lt;p&gt;&lt;input name=&quot;submit&quot; type=&quot;submit&quot; id=&quot;submit&quot; tabindex=&quot;5&quot; value=&quot;Submit Comment&quot; /&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_id_fields<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> do_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_form'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;/form&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// If registration required and not logged in ?&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// if you delete this the sky will fall on your head ?&gt;</span></pre></td></tr></table></div>

<p>Now, you need to make sure that nested comments are activated on your WordPress install by going to your admin panel =&gt; Settings =&gt; Discussion and checking &#8220;Enable threaded (nested) comments&#8221; Set the level to whatever you want. I like using 2 levels.</p>
<p>If you return to a post page on your site, you should now see reply buttons after each post. And if you click reply, you will noticed that not much happens other than &#8220;Click here to cancel reply.&#8221; appearing above your reply window. It is a little too subtle for me, so luckily there is a great Javascript hook already installed that you can call by just adding this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_singular<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> wp_enqueue_script<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'comment-reply'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>to you header.php file above <code>&lt;?php wp_head(); ?&gt;</code>.</p>
<p>Now when you click reply, the reply box appears directly below the comment you want to reply to. This is a great little feature and it makes your comments section more intuitive for your user.</p>
<p>The only thing left, really, is styling your comments. With WordPress 2.7, one hook creates the whole comment loop, as opposed to before when you had to call the avatar, the comment text, the date and all that jazz. There is a lot happening with <code>&lt;?php wp_list_comments(); ?&gt;</code> and though some might find it awesome that you don&#8217;t have to worry about adding tons of code, others might not like the fact that you can&#8217;t edit what appears in your comments and where. There is a solution to this that I will show you below, but for now lets talk about CSS.</p>
<p>WP 2.7 nested comments introduce some new classes and ids for you to style as you wish. It is a pretty long list though.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">ol<span style="color: #6666ff;">.commentlist</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.alt</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.bypostauthor</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.byuser</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment-author-admin</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.comment-author</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.vcard</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.vcard</span> cite<span style="color: #6666ff;">.fn</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.vcard</span> cite<span style="color: #6666ff;">.fn</span> a.<span style="color: #993333;">url</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.vcard</span> img<span style="color: #6666ff;">.avatar</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.vcard</span> img<span style="color: #6666ff;">.avatar-32</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.vcard</span> img<span style="color: #6666ff;">.photo</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.vcard</span> span<span style="color: #6666ff;">.says</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.commentmetadata</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.comment-meta</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.comment-meta</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> <span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> - <span style="color: #00AA00;">&#40;</span>p<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> strong<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> etc.<span style="color: #00AA00;">&#41;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.reply</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> div<span style="color: #6666ff;">.reply</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.alt</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.bypostauthor</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.byuser</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.comment</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.comment-author-admin</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-2</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-3</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-4</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-5</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.comment</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.odd</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.even</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.odd</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.parent</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.comment-author</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.vcard</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.vcard</span> cite<span style="color: #6666ff;">.fn</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.vcard</span> cite<span style="color: #6666ff;">.fn</span> a.<span style="color: #993333;">url</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.vcard</span> span<span style="color: #6666ff;">.says</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.commentmetadata</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.comment-meta</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.comment-meta</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> <span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span> - <span style="color: #00AA00;">&#40;</span>p<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> strong<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> etc.<span style="color: #00AA00;">&#41;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.reply</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.reply</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.alt</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.bypostauthor</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.byuser</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.comment</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.comment-author-admin</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-2</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-3</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-4</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-5</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.odd</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.thread-alt</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.thread-even</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.thread-odd</span> <span style="color: #00AA00;">&#123;</span><span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>The depth actually goes down to level 10 but I stopped at level 5 above. Hopefully you get the idea. There are a lot of elements to style but of course, you don&#8217;t have to style them all. For my <a href="http://bavotasan.com/wordpress/free-wordpress-themes/magazine-basic-free-wordpress-theme/">Magazine Basic theme</a>, I used only the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">ol<span style="color: #6666ff;">.commentlist</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#d5d5d5</span><span style="color: #00AA00;">;</span> border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> -moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> -webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #933;">7px</span> <span style="color: #933;">5px</span> <span style="color: #933;">64px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> comment-author <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">170px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li div<span style="color: #6666ff;">.vcard</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">14px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> helvetica<span style="color: #00AA00;">,</span>arial<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li div<span style="color: #6666ff;">.vcard</span> cite<span style="color: #6666ff;">.fn</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li div<span style="color: #6666ff;">.vcard</span> cite<span style="color: #6666ff;">.fn</span> a.<span style="color: #993333;">url</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#cc0000</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li div<span style="color: #6666ff;">.vcard</span> cite<span style="color: #6666ff;">.fn</span> a.<span style="color: #993333;">url</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li div<span style="color: #6666ff;">.vcard</span> img<span style="color: #6666ff;">.avatar</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#aaa</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li div<span style="color: #6666ff;">.comment-meta</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> helvetica<span style="color: #00AA00;">,</span>arial<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li div<span style="color: #6666ff;">.comment-meta</span> a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#205B87</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li p <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> helvetica<span style="color: #00AA00;">,</span>arial<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li ul <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> helvetica<span style="color: #00AA00;">,</span>arial<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">square</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li div<span style="color: #6666ff;">.reply</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#666</span><span style="color: #00AA00;">;</span> border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span> -moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span> -webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">2px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span> <span style="color: #933;">9px</span>/<span style="color: #cc66cc;">1</span> helvetica<span style="color: #00AA00;">,</span>arial<span style="color: #00AA00;">,</span><span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">6px</span> <span style="color: #933;">5px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>  <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">36px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li div<span style="color: #6666ff;">.reply</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#cc0000</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#cc0000</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li div<span style="color: #6666ff;">.reply</span> a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span><span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li ul<span style="color: #6666ff;">.children</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-2</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-3</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-4</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.depth-5</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.odd</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> ul<span style="color: #6666ff;">.children</span> li<span style="color: #6666ff;">.even</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f6f6f6</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
ol<span style="color: #6666ff;">.commentlist</span> li<span style="color: #6666ff;">.pingback</span> div<span style="color: #6666ff;">.vcard</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">170px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>If you have your nested comment level set to 3 you should now have something that looks like this:</p>
<p><img src="http://bavotasan.com/wp-content/uploads/2009/03/threaded.png" alt="threaded" title="threaded" width="580" height="343" class="aligncenter size-full wp-image-357" /></p>
<p>It all works great but there are a few things that I wanted to change. They don&#8217;t make it that easy to manipulate things but I figured it out and added a few touches of my own to get it to perform how I wanted it to.</p>
<p>To change the size of the avatar you can change line 25 in comments.php to this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'avatar_size=48'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>The default avatar size is 32 and you can change it to anything you want.</p>
<p>If you don&#8217;t want your comments to be displayed as the default unordered list (ul), you can change the style to divs or an ordered list (ol) by using the following;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'style=div'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Replace div with ol or ul but be sure to also change line 24 and 26 which currently is set for ordered lists so that you have something like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;commentlist&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'style=div'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;</pre></td></tr></table></div>

<p>If you want to only display comments, trackbacks, pingbacks (trackbacks and pings) or pings, you can use the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type=comment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Now for those people who want total control over their code. This is not recommended to those who are inexperienced with coding. This actually bypasses all of the internal WordPress functionality in regards to comments and lets you customize everything that the wp_list_comments hook spits out. This is a two step process.</p>
<p>First add:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'callback=mytheme_comment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Then go to your functions.php file (or create a functions.php file if you don&#8217;t already have one) and add this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> mytheme_comment<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">,</span> <span style="color: #000088;">$args</span><span style="color: #339933;">,</span> <span style="color: #000088;">$depth</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li <span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_class<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> id=&quot;li-comment-<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
&lt;div id=&quot;comment-<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
&lt;div class=&quot;comment-author vcard&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_avatar<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">,</span><span style="color: #000088;">$size</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'36'</span><span style="color: #339933;">,</span><span style="color: #000088;">$default</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'&lt;path_to_url&gt;'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;cite class=&quot;fn&quot;&gt;%s&lt;/cite&gt;  &lt;span class=&quot;says&quot;&gt;says:&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_comment_author_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_approved</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;em&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Your comment is awaiting moderation.'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/em&gt;
&lt;br /&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;div class=&quot;comment-meta commentmetadata&quot;&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span>get_comment_link<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_ID</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%1$s at %2$s'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_comment_date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>get_comment_time<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_comment_link<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'(Edit)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'  '</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_text<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'max_depth'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #000088;">$depth</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;reply&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_reply_link<span style="color: #009900;">&#40;</span><span style="color: #990000;">array_merge</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'depth'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$depth</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'max_depth'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'max_depth'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Here there is a lot that you can do. You can set your avatar size, change your classes and ids, change you awaiting moderation text or pretty much just rearrange the entire layout. I even added a little if statement at the end to only display the reply button if your comments can go down another level (this took a long time to figure out but is totally worth it in my books).</p>
<p>With everything above in place, your WordPress theme should now be fit to work with nested comments and you should be able to control how they are displayed to your hearts content.</p>
]]></content:encoded>
			<wfw:commentRss>http://bavotasan.com/2009/how-to-add-nested-comments-to-your-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>120</slash:comments>
		</item>
	</channel>
</rss>

