<?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>scriptygoddess &#187; WordPress my-hacks additions</title>
	<atom:link href="http://www.scriptygoddess.com/archives/category/wordpress/wordpress-my-hacks-additions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com</link>
	<description></description>
	<lastBuildDate>Thu, 08 Dec 2011 18:23:44 +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>Force Valid Email Addresses</title>
		<link>http://www.scriptygoddess.com/archives/2004/07/02/force-valid-email-addresses/</link>
		<comments>http://www.scriptygoddess.com/archives/2004/07/02/force-valid-email-addresses/#comments</comments>
		<pubDate>Fri, 02 Jul 2004 23:47:39 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[WordPress my-hacks additions]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/07/02/force-valid-email-addresses/</guid>
		<description><![CDATA[Guest authored by<br />
Mark Jaquith -  <a href="http://www.txfx.net/">txfx.net</a>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In WordPress, you can enable an option that requires commenters to supply a name and an email address, but oddly enough, it doesn&#039;t validate the email address submitted. This is simple enough to add, as WordPress already has a function for validating email addresses, and because it can be done via a REALLY simple plugin.<br />
<span id="more-1298"></span><br />
Just save this plugin in your (enabled) <a href="http://wiki.wordpress.org/my-hacks.php">my-hacks.php</a> file or as its own file (your choice&#8230; it all depends on how cluttered your plugin screen is getting).<br />
<h3>&lt;?php<br />
/*<br />
Plugin Name: Force Valid Email in Comments<br />
Version: 1.0<br />
Plugin URI:<br />
Description: This simple function is run when comments are being submitted, and uses a built-in WordPress function to ensure that commenters&#039; e-mail addresses are at lead validly formed.  It only does this check if you have WordPress set to require name and e-mail.<br />
Author: Mark Jaquith<br />
Author URI: http://www.txfx.net/<br />
*/<br />
function force_valid_comment_email($comment){<br />
global $email;<br />
if ( get_settings(&#039;require_name_email&#039;) &#038;&#038; !is_email($email))<br />
die( __(&#039;The email address you entered was invalid.&#039;) );<br />
return $comment;<br />
}<br />
add_action(&#039;post_comment_text&#039;, &#039;force_valid_comment_email&#039;, 1);<br />
?&gt;</h3>
<p>One thing to note: it only performs the check if you have WordPress set to require name and email.  If you don&#039;t require an email address, what do you care if it is validated?  Then again, if you do want it to check regardless, just change the conditional statement to this:</p>
<h3>if (!is_email($email))</h3>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2004/07/02/force-valid-email-addresses/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Forget User Info</title>
		<link>http://www.scriptygoddess.com/archives/2004/06/29/forget-user-info/</link>
		<comments>http://www.scriptygoddess.com/archives/2004/06/29/forget-user-info/#comments</comments>
		<pubDate>Wed, 30 Jun 2004 01:04:38 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[WordPress my-hacks additions]]></category>
		<category><![CDATA[WordPress scripts]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/06/29/forget-user-info/</guid>
		<description><![CDATA[Guest authored by<br />
Mark Jaquith - <a href="http://www.txfx.net/">txfx.net</a>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>When someone leaves a comment on a WordPress blog, a cookie is saved to their computer with the name, e-mail, and URI that they entered.  This is quite handy for most people, but it may bother those who use public or shared computers.  WordPress does not by default have a way for commenters to specify that they don&#039;t want their info saved to a cookie, so here&#039;s a way to do that.</p>
<p>Warning: This is not just a plugin.  You are going to add a few lines to a core WordPress file.  Just so you know.<br />
<span id="more-1293"></span><br />
2 files need to be modified: <b>wp-comments.php</b> (to put in the checkbox for &#034;don&#039;t remember my info&#034; and the &#034;delete my cookie&#034; link), and <b>wp-comments-post.php</b> (to ensure that the cookie isn&#039;t saved if the user requests that it not be), and you need to install a plugin to handle manual &#034;delete my cookie&#034; requests. (Just a side note, and this applies to anytime you need to modify an existing page, you should make backups of the wp-comments.php, and wp-comments-post.php page before you make your changes)</p>
<p><b>Step 1</b></p>
<p>Open up <b>wp-comments-post.php</b> and find these lines (89, 90 and 91):<br />
<h3>setcookie(&#039;comment_author_&#039; . $cookiehash, $author, time() + 30000000, COOKIEPATH);<br />
setcookie(&#039;comment_author_email_&#039; . $cookiehash, $email, time() + 30000000, COOKIEPATH);<br />
setcookie(&#039;comment_author_url_&#039; . $cookiehash, $url, time() + 30000000, COOKIEPATH);</h3>
<p>Change those lines to the following:</p>
<h3>if($_POST['forget_cookie'] == &#039;forget&#039;){<br />
setcookie(&#039;comment_author_&#039; . $cookiehash, &#034;, time()-60000, COOKIEPATH);<br />
setcookie(&#039;comment_author_email_&#039; . $cookiehash, &#034;, time()-60000, COOKIEPATH);<br />
setcookie(&#039;comment_author_url_&#039; . $cookiehash, &#034;, time()-60000, COOKIEPATH);<br />
} else {<br />
setcookie(&#039;comment_author_&#039; . $cookiehash, $author, time() + 30000000, COOKIEPATH);<br />
setcookie(&#039;comment_author_email_&#039; . $cookiehash, $email, time() + 30000000, COOKIEPATH);<br />
setcookie(&#039;comment_author_url_&#039; . $cookiehash, $url, time() + 30000000, COOKIEPATH);<br />
}</h3>
<p>Save <b>wp-comments-post.php</b> and upload the new version.</p>
<p><b>Step 2</b></p>
<p>Add the following code to your <a href="http://wiki.wordpress.org/my-hacks.php">my-hacks.php</a>.</p>
<h3>/*<br />
Code Reference Name: Forget User Info<br />
URI: http://www.scriptygoddess.com/archives/2004/06/29/forget-user-info/<br />
Description: Deletes the comment cookie when ?forget_user_info=1 is passed to the URL<br />
Version: 1.0<br />
Author: Mark Jaquith<br />
Author URI: http://www.txfx.net/<br />
*/<br />
if($_GET['forget_user_info']) { // User has manually requested that their cookie be deleted.<br />
setcookie(&#039;comment_author_&#039; . $cookiehash, &#034;, time()-60000, COOKIEPATH); setcookie(&#039;comment_author_email_&#039; . $cookiehash, &#034;, time()-60000, COOKIEPATH); setcookie(&#039;comment_author_url_&#039; . $cookiehash, &#034;, time()-60000, COOKIEPATH);<br />
unset($comment_author, $comment_author_email, $comment_author_url);<br />
header(&#039;Expires: Mon, 26 Jul 1997 05:00:00 GMT&#039;);<br />
header(&#039;Last-Modified: &#039; . gmdate(&#039;D, d M Y H:i:s&#039;) . &#039; GMT&#039;);<br />
header(&#039;Cache-Control: no-cache, must-revalidate&#039;);<br />
header(&#039;Pragma: no-cache&#039;);<br />
$location = $_SERVER["HTTP_REFERER"];<br />
if ($is_IIS) {<br />
header(&#034;Refresh: 0;url=$location&#034;);<br />
} else {<br />
header(&#034;Location: $location&#034;);<br />
}<br />
}</h3>
<p><b>Step 3</b></p>
<p>Open up <b>wp-comments.php</b>.</p>
<p>Add this line, somewhere in the form section:<br />
(You should also probably give the input a tabindex, and reorder any other input tabindexes that follow, so that your users don&#039;t become human pinballs when they press TAB to go to the next form element.)</p>
<h3>&lt;p&gt;<br />
&lt;input type=&#034;checkbox&#034; name=&#034;forget_cookie&#034; id=&#034;forget_cookie&#034; value=&#034;forget&#034; /&gt;<br />
&lt;label for=&#034;forget_cookie&#034;&gt;Do not save my info&lt;/label&gt;<br />
&lt;/p&gt;</h3>
<p>Add this line where you think it would be appropriate:</p>
<h3>&lt;?php if (strlen($comment_author) != 0 || strlen($comment_author_email) != 0 || strlen($comment_author_url) != 0) { echo &#039;&lt;p&gt;Your info has been saved, but you may &lt;a href=&#034;&#039; . $_SERVER['REQUEST_URI'] . &#039;?forget_user_info=1&#034;&gt;delete your cookie&lt;/a&gt; if you wish.&lt;/p&gt;&#039;; } ?&gt;</h3>
<p>Save your changes to <b>wp-comments.php</b>, upload the new version, and you&#039;re done!</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2004/06/29/forget-user-info/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Show recently edited/updated posts</title>
		<link>http://www.scriptygoddess.com/archives/2004/06/22/show-recently-editedupdated-posts/</link>
		<comments>http://www.scriptygoddess.com/archives/2004/06/22/show-recently-editedupdated-posts/#comments</comments>
		<pubDate>Wed, 23 Jun 2004 02:25:36 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[WordPress my-hacks additions]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/06/22/show-recently-editedupdated-posts/</guid>
		<description><![CDATA[I&#039;ve been going back in and modifying some existing posts &#8211; and I thought it would be useful to see a list of posts that were recently edited. This function would go in your my-hacks.php file. I created it quickly for my own uses &#8211; wanted to keep it here for &#034;code storage&#034; &#8211; but [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I&#039;ve been going back in and modifying some existing posts &#8211; and I thought it would be useful to see a list of posts that were recently edited.</p>
<p>This function would go in your <a href="http://wiki.wordpress.org/my-hacks.php">my-hacks.php</a> file. I created it quickly for my own uses &#8211; wanted to keep it here for &#034;code storage&#034; &#8211; but you will probably want to customize the code so that it does what you want it to.<br />
<span id="more-1283"></span></p>
<h3>function displayRecentlyUpdatedPosts () {<br />
global $wpdb, $tableposts;<br />
$now = current_time(&#039;mysql&#039;);<br />
$arcresults = $wpdb-&gt;get_results(&#034;SELECT ID, post_date, post_title, post_modified FROM $tableposts WHERE  post_modified &lt; &#039;$now&#039; AND post_status = &#039;publish&#039; AND post_modified != post_date ORDER BY post_modified DESC LIMIT 20&#034;);<br />
if ($arcresults) {<br />
foreach ($arcresults as $arcresult) {<br />
if ($arcresult-&gt;post_date != &#039;0000-00-00 00:00:00&#039;) {<br />
$url  = get_permalink($arcresult-&gt;ID);<br />
$arc_title = stripslashes($arcresult-&gt;post_title);<br />
if ($arc_title) {<br />
$text = strip_tags($arc_title);<br />
} else {<br />
$text = $arcresult-&gt;ID;<br />
}<br />
$post_date = substr($arcresult-&gt;post_modified, 0, 10);<br />
$post_day = substr($arcresult-&gt;post_modified, 8, 2);<br />
$post_year = substr($arcresult-&gt;post_modified, 0, 4);<br />
$post_month = substr($arcresult-&gt;post_modified, 5, 2);<br />
$post_hour = substr($arcresult-&gt;post_modified, 11, 2);<br />
$post_min = substr($arcresult-&gt;post_modified, 14, 2);<br />
$post_sec = substr($arcresult-&gt;post_modified, 17, 2);<br />
$amPm = &#034;am&#034;;<br />
if ($post_hour &gt; 12) {<br />
$post_hour = $post_hour &#8211; 12;<br />
$amPm = &#034;pm&#034;;<br />
}<br />
echo &#034;&lt;p&gt;&#034;.$post_month.&#034;.&#034;.$post_day.&#034;.&#034;.$post_year.&#034; &#034;.$post_hour.&#034;:&#034;.$post_min.&#034; &#034;.$amPm.&#034;&lt;br /&gt;&lt;a href=&#034;".$url.&#034;"&gt;&#034;.$text.&#034;&lt;/a&gt;&lt;/p&gt;&#034;;<br />
}<br />
}<br />
}<br />
}</h3>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2004/06/22/show-recently-editedupdated-posts/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Display all posts grouped by date</title>
		<link>http://www.scriptygoddess.com/archives/2004/06/21/display-all-posts-grouped-by-date/</link>
		<comments>http://www.scriptygoddess.com/archives/2004/06/21/display-all-posts-grouped-by-date/#comments</comments>
		<pubDate>Tue, 22 Jun 2004 01:42:01 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[WordPress my-hacks additions]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/06/21/display-all-posts-grouped-by-date/</guid>
		<description><![CDATA[This function will list all posts, and group them by day. If you want to use it &#8211; add it to your my-hacks.php file. (See more information on how to use my-hacks.php here &#8211; link via Carthik) Again &#8211; I made this function specifically for a personal use &#8211; so there&#039;s not a lot of [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This function will list all posts, and group them by day. If you want to use it &#8211; add it to your my-hacks.php file. (<a href="http://wiki.wordpress.org/my-hacks.php">See more information on how to use my-hacks.php here</a> &#8211; link via <a href="http://blog.carthik.net/">Carthik</a>)</p>
<p>Again &#8211; I made this function specifically for a personal use &#8211; so there&#039;s not a lot of &#039;easy customization&#039; without specifically editing the code, so I apologize for the lack of ease-of-use &#8211; but I wanted to post this for my own &#034;code storage&#034;.<br />
<span id="more-1281"></span><br />
Here&#039;s the function:<br />
<h3>function displayAllPostsGrouped () {<br />
global $wpdb, $tableposts;<br />
$now = current_time(&#039;mysql&#039;);<br />
$previousPostDate = &#034;;<br />
$firstrun = true;<br />
$arcresults = $wpdb-&gt;get_results(&#034;SELECT ID, post_date, post_title FROM $tableposts WHERE post_date &lt; &#039;$now&#039; AND post_status = &#039;publish&#039; ORDER BY post_date DESC&#034;);<br />
if ($arcresults) {<br />
foreach ($arcresults as $arcresult) {<br />
if ($arcresult-&gt;post_date != &#039;0000-00-00 00:00:00&#039;) {<br />
$url  = get_permalink($arcresult-&gt;ID);<br />
$arc_title = stripslashes($arcresult-&gt;post_title);<br />
if ($arc_title) {<br />
$text = strip_tags($arc_title);<br />
} else {<br />
$text = $arcresult-&gt;ID;<br />
}<br />
$post_date = substr($arcresult-&gt;post_date, 0, 10);<br />
$post_day = substr($arcresult-&gt;post_date, 8, 2);<br />
$post_year = substr($arcresult-&gt;post_date, 0, 4);<br />
$post_month = substr($arcresult-&gt;post_date, 5, 2);<br />
if ($previousPostDate != $post_date) {<br />
if (!$firstrun) {<br />
echo &#034;&lt;/p&gt;&#034;;<br />
}<br />
echo &#034;&lt;p&gt;&lt;b&gt;&#034;.$post_month.&#034;.&#034;.$post_day.&#034;.&#034;.$post_year.&#034;&lt;/b&gt;&lt;br /&gt;&#034;;<br />
}<br />
echo &#034;&lt;a href=&#039;&#034;.$url.&#034;&#039;&gt;&#034;.$text.&#034;&lt;/a&gt;&lt;br /&gt;&#034;;<br />
$previousPostDate = $post_date;<br />
}<br />
}<br />
}<br />
}</h3>
<p><b>Post last updated: 6/22/04 9:18pm</b></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2004/06/21/display-all-posts-grouped-by-date/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Separating Comments and Trackbacks</title>
		<link>http://www.scriptygoddess.com/archives/2004/06/21/separating-comments-and-trackbacks/</link>
		<comments>http://www.scriptygoddess.com/archives/2004/06/21/separating-comments-and-trackbacks/#comments</comments>
		<pubDate>Tue, 22 Jun 2004 01:26:21 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[WordPress my-hacks additions]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2004/06/21/separating-comments-and-trackbacks/</guid>
		<description><![CDATA[Some habits are hard to break. In the MT world &#8211; comments and trackbacks are different animals. Maybe just because I&#039;m used to it that way &#8211; but that&#039;s the way I prefer it. A trackback/pingback isn&#039;t a complete thought. Comments (usually) are. When reading the comments section, I find it disrupting to see a [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Some habits are hard to break. In the MT world &#8211; comments and trackbacks are different animals. Maybe just because I&#039;m used to it that way &#8211; but that&#039;s the way I prefer it. A trackback/pingback isn&#039;t a complete thought. Comments (usually) are. When reading the comments section, I find it disrupting to see a trackback in the middle of the discussion. When I&#039;m ready to leave the site and read another opinion, I will. </p>
<p>Ok, I&#039;ll get off the soapbox now. <a href="http://www.playswellwithothers.net">Greg</a> <a href="http://www.scriptygoddess.com/archives/2004/06/06/showhide-comments-in-wordpress-ii/#comment-11751">asked</a> me how I separated the comments and trackbacks on this site. Here&#039;s how:<br />
<span id="more-1280"></span><br />
Add the following function to your my-hacks.php file (<a href="http://wiki.wordpress.org/my-hacks.php">See more information on how to use my-hacks.php here</a> &#8211; link via <a href="http://blog.carthik.net/">Carthik</a>) :<br />
<h3>function return_comment_type($commenttxt = &#039;Comment&#039;, $trackbacktxt = &#039;Trackback&#039;, $pingbacktxt = &#039;Pingback&#039;) {<br />
global $comment;<br />
if (preg_match(&#039;|&lt;trackback /&gt;|&#039;, $comment-&gt;comment_content))<br />
return $trackbacktxt;<br />
elseif (preg_match(&#039;|&lt;pingback /&gt;|&#039;, $comment-&gt;comment_content))<br />
return $pingbacktxt;<br />
else<br />
return $commenttxt;<br />
}</h3>
<p>And here&#039;s how you&#039;ll use it&#8230;</p>
<p>In wp-comments.php &#8211; this is what I have (edit for your own use as neccessary)</p>
<h3>&lt;?php if ($comments) { ?&gt;<br />
&lt;?php<br />
$cmts = 0;<br />
$trkbks = 0;<br />
?&gt;<br />
&lt;p&gt;&lt;b&gt;:: Trackbacks/Pingbacks :: &lt;/b&gt;&lt;/p&gt;<br />
&lt;ol&gt;<br />
&lt;?php foreach ($comments as $comment) { ?&gt;<br />
&lt;?php if (return_comment_type() != &#034;Comment&#034;) { ?&gt;<br />
&lt;?php $trkbks++; ?&gt;<br />
&lt;a name=&#034;comment-&lt;?php comment_ID() ?&gt;&#034;&gt;&lt;/a&gt;<br />
&lt;li&gt;&lt;?php comment_text() ?&gt;<br />
&lt;p&gt;&lt;?php comment_type(); ?&gt; &lt;?php _e(&#034;by&#034;); ?&gt; &lt;?php comment_author_link() ?&gt; &#8212; &lt;?php comment_date() ?&gt; &lt;?php comment_time() ?&gt; | &lt;a href=&#034;#comment-&lt;?php comment_ID() ?&gt;&#034;&gt;permalink&lt;/a&gt;&lt;/cite&gt; &lt;?php edit_comment_link(__(&#034;Edit This&#034;), &#039; |&#039;); ?&gt;&lt;/p&gt;<br />
&lt;br /&gt;<br />
&lt;/li&gt;<br />
&lt;?php } ?&gt;<br />
&lt;?php } // end for each comment ?&gt;<br />
&lt;/ol&gt;<br />
&lt;?php if($trkbks &lt;= 0) { ?&gt;<br />
&lt;p&gt;No Trackbacks/Pingbacks&lt;/p&gt;<br />
&lt;?php } ?&gt;<br />
&lt;p&gt;&lt;b&gt;:: Comments :: &lt;/b&gt;&lt;/p&gt;<br />
&lt;ol&gt;<br />
&lt;?php foreach ($comments as $comment) { ?&gt;<br />
&lt;?php if (return_comment_type() == &#034;Comment&#034;) { ?&gt;<br />
&lt;?php $cmts++;	?&gt;<br />
&lt;a name=&#034;comment-&lt;?php comment_ID() ?&gt;&#034;&gt;&lt;/a&gt;<br />
&lt;?php<br />
// this is actually the &#034;important&#034; comment highlightling<br />
$isImportant = false;<br />
if (stristr($comment-&gt;comment_content, &#034;&lt;!&#8211;important&#8211;&gt;&#034;)) {<br />
$isImportant = true;<br />
} ?&gt;<br />
&lt;li&gt;<br />
&lt;?php if($isImportant) { echo &#039;&lt;div class=&#034;importantcomment&#034;&gt;&#039;;} ?&gt;<br />
&lt;?php comment_text() ?&gt;<br />
&lt;p&gt;&lt;?php comment_type(); ?&gt; &lt;?php _e(&#034;by&#034;); ?&gt; &lt;?php comment_author_link() ?&gt; &#8212; &lt;?php comment_date() ?&gt; &lt;?php comment_time() ?&gt; | &lt;a href=&#034;#comment-&lt;?php comment_ID() ?&gt;&#034;&gt;permalink&lt;/a&gt; &lt;?php edit_comment_link(__(&#034;Edit This&#034;), &#039; |&#039;); ?&gt;&lt;/p&gt;<br />
&lt;?php if($isImportant) { echo &#039;&lt;/div&gt;&#039;;} ?&gt;<br />
&lt;br /&gt;<br />
&lt;/li&gt;<br />
&lt;?php } ?&gt;<br />
&lt;?php } // end for each comment ?&gt;<br />
&lt;/ol&gt;<br />
&lt;?php if($cmts &lt;= 0) { ?&gt;<br />
&lt;p&gt;No comments&lt;/p&gt;<br />
&lt;?php } ?&gt;<br />
&lt;?php } else { // this is displayed if there are no comments so far ?&gt;<br />
&lt;p&gt;&lt;?php _e(&#034;No comments yet.&#034;); ?&gt;&lt;/p&gt;<br />
&lt;?php } ?&gt;</h3>
<p>I should add that I&#039;m not making any guarantees that this code will validate &#8211;  feel free to edit for your own purpose.</p>
<p>(<strong>Updated to add: </strong>I&#039;ll probably want to combine this with <a href="http://www.meyerweb.com/eric/tools/wordpress/mw_comments_trackbacks.html">this plugin</a> I just found (via <a href="http://blog.wxgalsworld.com/archives/000704.php">WxGal</a>) which will give you a separate count for trackbacks and comments)</p>
<p><b>Post last updated: 6/22/04 9:27pm</b></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2004/06/21/separating-comments-and-trackbacks/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>

