<?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>The English Guy Web Design</title>
	<atom:link href="http://www.theenglishguy.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theenglishguy.co.uk</link>
	<description>Web Design, WordPress/Drupal blog design &#38; theming, SEO, css. xhtml, php, coldfusion, jquery and more...</description>
	<lastBuildDate>Tue, 31 Jan 2012 23:47:35 +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>Local Database vs Cloud Database</title>
		<link>http://www.theenglishguy.co.uk/2012/01/31/local-database-vs-cloud-database/</link>
		<comments>http://www.theenglishguy.co.uk/2012/01/31/local-database-vs-cloud-database/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 23:47:35 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=2031</guid>
		<description><![CDATA[Approximately two years ago I set up a wordpress blog for a client, nothing out of the ordinary there, but [...]]]></description>
			<content:encoded><![CDATA[<p>Approximately two years ago I set up a wordpress blog for a client, nothing out of the ordinary there, but the problem was that there was no access to a database. Particularly, there was no mysql database available.</p>
<p>So I thought, wouldn&#8217;t it be nice to have an easily accessible <a href="http://xeround.com/">cloud database</a>. In other words, mysql databases that could be accessed by any site, a mysql db for the cloud.</p>
<p>One of the most important, especially to me as someone who works with packages that use databases, is that the service run 24 hours a day without interruption. I cannot have a client complain that their site is giving errors because of not being able to access the mysql database. The solution is a cloud database that has good network connections, and not just from a few major carriers.</p>
<p>Another factor that clients will probably ask you for is scalability. What if their blog suddenly gets a link from a famous site and wham, 100,000 hits/day, can the cloud database handle it? Will the traffic overwhelm it or will there be nothing more than a blip on a graph?</p>
<p>Before I sign off, another thought. If you have a cloud database and install a wordpress site (for example), what happens if you move the site? If the database is in the cloud, it&#8217;s far far simpler to move the site, all you&#8217;d need to do is alter the settings in the config file. If the database were local, you&#8217;d have to zip up the database, move it, and so on, which would take a lot more time.</p>
<p>This has been a sponsored post, but what I&#8217;ve written has been taken from my own experiences with databases.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2012/01/31/local-database-vs-cloud-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is the Fax Dead? Or is Fax Exchange the Way to Go?</title>
		<link>http://www.theenglishguy.co.uk/2012/01/31/is-the-fax-dead-or-is-fax-exchange-the-way-to-go/</link>
		<comments>http://www.theenglishguy.co.uk/2012/01/31/is-the-fax-dead-or-is-fax-exchange-the-way-to-go/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 23:25:53 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=2030</guid>
		<description><![CDATA[A long, very long, time ago, I was told that the fax was dead. I suppose that was a bit [...]]]></description>
			<content:encoded><![CDATA[<p>A long, very long, time ago, I was told that the fax was dead. I suppose that was a bit optimistic, especially when you consider snail mail was also supposed to be dead and today still is as popular as ever, and email hasn&#8217;t taken over.</p>
<p>So what do you know about faxing? You take a piece of paper, transcode it into digital format, send it over a phone line to another fax machine to reverse the process. Not exactly rocket science I suppose, but when it was first introduced, it was groundbreaking. Now another method of faxing, the <a href="http://www.interfax.net/en/solutions/fax-exchange">fax exchange</a> is poised to add to the longevity of the fax.</p>
<p>I can remember several years ago trying to find a method of faxing via email, this was before anything like this existed, and was from a unix machine, so we&#8217;re talking about over a decade ago now. Nothing happened from it, and the project died out to be replaced by another.</p>
<p>What is a fax exchange exactly then? Ok so you can send an email to a fax number; the online fax exchange servers get that email and then send it to the fax number. This is all done over the cloud, the online service that runs the fax sending. You can be assured of many multiples of lines to handle incoming emails to send faxes out.</p>
<p>I think if I were to use this, I would have an important question, what about security? Can I be assured that my fax is sent then gone, no trace of it? Interestingly, yes, you can set an option todelete the fax when it&#8217;s sent! You can also set all sorts of options using fax exchange, encrypting the faxes and even authenticating senders to make sure only you use your account.</p>
<p>And another interesting feature of this fax exchange service, you can defer sending up to 30 days, specifying date and time as well as how many times you want to try to send the fax.</p>
<p>One final thing I wanted to cover. You only pay for what you send, and in this day and age, one of the most important.</p>
<p>This has been a sponsored post, but my opinions and thoughts are totally my own.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2012/01/31/is-the-fax-dead-or-is-fax-exchange-the-way-to-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JMeter Cloud Testing, The Reality</title>
		<link>http://www.theenglishguy.co.uk/2012/01/16/jmeter-cloud-testing-the-reality/</link>
		<comments>http://www.theenglishguy.co.uk/2012/01/16/jmeter-cloud-testing-the-reality/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 22:55:57 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=2028</guid>
		<description><![CDATA[Isn&#8217;t it an interesting fact that we must test, to destruction, anything we put online? Sometimes things do slip through [...]]]></description>
			<content:encoded><![CDATA[<p>Isn&#8217;t it an interesting fact that we must test, to destruction, anything we put online? Sometimes things do slip through the cracks but there are ways to fix this, or at least to mitigate the problems that may arise.</p>
<p>JMeter, the Apache desktop application, is used for load testing simulation (specifically heavy load testing) and has extended it&#8217;s original design to encompass files, servlets, Perl, Java, Databases and more. Instead of having this on the desktop though, maybe a better way is to use <a href="http://blazemeter.com/">Jmeter</a> cloud testing.</p>
<p>Ok knowing a little bit about development work I know that there are many applications that could use Jmeter testing, lots of different server types that can be tested out: web, SOAP, LDAP etc.,</p>
<p>What would someone get from utilizing a cloud-based Jmeter testing platform? Well right off the top of my head I could think of one &#8211; you wouldn&#8217;t have to install the product and have it running on your own hardware, using your resources that you might want at that time. You could access the configuration via your browser, and set it all going, using the resources in the cloud, not in your office. You would only pay for what you use, simple enough. You save money by not having set it all up in the first place and let&#8217;s be honest, we all like saving money right?</p>
<p>Can I think of anything that might make you want to consider not using cloud testing? Not really. JMeter, like anything else, offers you something you would need especially when you&#8217;re in an development arena. Cloud testing is just another form of that.</p>
<p>Perhaps something else that jumps to mind when I&#8217;m thinking about this: assume you have a fairly large development team, and you want to test lots of different projects, you&#8217;d save a fair amount of money by not having a large team just testing when you can log onto a browser and configure it all to go. Concentrate on your projects, and spend the minimum of time using JMeter cloud testing to make sure it&#8217;s going to withstand the stress you hope it&#8217;ll take.</p>
<p>Do you get just a bit of text saying what the results are? A &#8216;yes&#8217; or &#8216;no&#8217; answer. Err no, the results are going to be comprehensive, telling you a lot of what you couldn&#8217;t even imagine.</p>
<p>This is a sponsored post, I hope that I have helped you with my honest opinion.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2012/01/16/jmeter-cloud-testing-the-reality/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple WordPress Security Precaution</title>
		<link>http://www.theenglishguy.co.uk/2011/12/08/simple-wordpress-security-precaution/</link>
		<comments>http://www.theenglishguy.co.uk/2011/12/08/simple-wordpress-security-precaution/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 11:39:20 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=2026</guid>
		<description><![CDATA[One of the simplest security precautions that I have seen so far (and used ever since I first read about [...]]]></description>
			<content:encoded><![CDATA[<p>One of the simplest security precautions that I have seen so far (and used ever since I first read about it) is changing the $table_prefix in the config.php file.</p>
<p>Normally it&#8217;s like this in the config.php file:</p>
<blockquote><p>
$table_prefix = &#8216;wp_&#8217;;
</p></blockquote>
<p>Just change it to something more complicated, a random set of letters and/or numbers if possible like so:</p>
<blockquote><p>
$table_prefix = &#8216;e998thF1_&#8217;;
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2011/12/08/simple-wordpress-security-precaution/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Released Author Feeds Plugin/Widget</title>
		<link>http://www.theenglishguy.co.uk/2011/11/24/released-author-feeds-pluginwidget/</link>
		<comments>http://www.theenglishguy.co.uk/2011/11/24/released-author-feeds-pluginwidget/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 13:48:33 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=2023</guid>
		<description><![CDATA[Today I wrote and released a new plugin/widget that shows up on a blog&#8217;s sidebar, allow the user to click [...]]]></description>
			<content:encoded><![CDATA[<p>Today I wrote and released a new plugin/widget that shows up on a blog&#8217;s sidebar, allow the user to click on and view any author&#8217;s RSS feed.</p>
<p>It&#8217;s free to use, and called the <a href="http://www.theenglishguy.co.uk/author-feeds-widget" title="Author Feed Widget" rel="tag">Author Feeds Widget</a>. There is an option in the Widgets administration section to show/not show the admin feed, and another option to set the title of the widget in the sidebar, but other than that it&#8217;s as simple as can be!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2011/11/24/released-author-feeds-pluginwidget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing &#8216;Sticky&#8217; Options from Post Page</title>
		<link>http://www.theenglishguy.co.uk/2011/11/20/removing-sticky-options-from-post-page/</link>
		<comments>http://www.theenglishguy.co.uk/2011/11/20/removing-sticky-options-from-post-page/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 11:37:26 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress theme]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=2020</guid>
		<description><![CDATA[This is useful if you are running a site where you don&#8217;t want users to set the &#8216;sticky&#8217; option on [...]]]></description>
			<content:encoded><![CDATA[<p>This is useful if you are running a site where you don&#8217;t want users to set the &#8216;sticky&#8217; option on posts they write. Firstly you add this line to your functions.php file:</p>
<blockquote><p>
add_action(&#8216;admin_print_styles&#8217;, &#8216;my_admin_styles&#8217;);
</p></blockquote>
<p>This then calls a function my_admin_styles() that you&#8217;ll add to functions.php file, as follows:</p>
<blockquote><p>
function my_admin_styles() {<br />
  global $post_type, $pagenow;<br />
  if ((&#8216;post.php&#8217; != $pagenow &#038;&#038; &#8216;post-new.php&#8217; != $pagenow) || current_user_can(&#8216;administrator&#8217;))<br />
    return;<br />
?&gt;<br />
  &lt;style type=&#8221;text/css&#8221;&gt;#sticky-span { display:none!important; }&lt;/style&gt;<br />
&lt;?php<br />
}
</p></blockquote>
<p>There it is, as simple as that! This has a check to make sure that the user who is writing the post isn&#8217;t an administrator (after all, administrators shouldn&#8217;t be barred from doing anything, right?).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2011/11/20/removing-sticky-options-from-post-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing Category Meta Box from Post/Page</title>
		<link>http://www.theenglishguy.co.uk/2011/11/19/removing-category-meta-box-from-postpage/</link>
		<comments>http://www.theenglishguy.co.uk/2011/11/19/removing-category-meta-box-from-postpage/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 09:14:14 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=2019</guid>
		<description><![CDATA[Another little code snippet that you might find useful. This removes the &#8216;category&#8217; meta box on post/page editing pages. First [...]]]></description>
			<content:encoded><![CDATA[<p>Another little code snippet that you might find useful. This removes the &#8216;category&#8217; meta box on post/page editing pages.</p>
<p>First of all you need to use an add_action() to hook into admin_head:</p>
<blockquote><p>
add_action(&#8216;admin_head&#8217;, &#8216;theme_page_head&#8217;);
</p></blockquote>
<p>This then calls your defined function in the <strong>functions.php</strong> file, &#8216;theme_page_head&#8217; like so:</p>
<blockquote><p>
function theme_page_head() {<br />
&nbsp;if (!current_user_can(&#8216;administrator&#8217;)) {<br />
&nbsp;&nbsp;remove_meta_box(&#8216;categorydiv&#8217;, &#8216;post&#8217;, &#8216;side&#8217;);<br />
&nbsp;}<br />
}
</p></blockquote>
<p>Here we call the <em>remove_meta_box()</em> function, with the &#8216;categorydiv&#8217; as first argument, the type of page we&#8217;re targeting (post/page/link, or registered custom post type) as the second argument, and then the context (normal/advanced/side) where it would normally appear. Voila the category box has gone.</p>
<p>To get more information on this you should see WordPress&#8217; <a href="http://codex.wordpress.org/Function_Reference/remove_meta_box">remove_meta_box()</a> Codex entry, as there is more information on there as well as a list of some of the possible meta boxes available to target.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2011/11/19/removing-category-meta-box-from-postpage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding User-Named Category on Login in WordPress</title>
		<link>http://www.theenglishguy.co.uk/2011/11/18/adding-user-named-category-on-login-in-wordpress/</link>
		<comments>http://www.theenglishguy.co.uk/2011/11/18/adding-user-named-category-on-login-in-wordpress/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 07:49:03 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=2018</guid>
		<description><![CDATA[An interesting little snippet here, especially if you have a lot of users. Perhaps you want each user to post [...]]]></description>
			<content:encoded><![CDATA[<p>An interesting little snippet here, especially if you have a lot of users. Perhaps you want each user to post into their own category, one named after them? This will help you get that functionality into your WordPress Theme:</p>
<blockquote><p>
add_action(&#8216;wp_login&#8217;,'market_wp_login&#8217;);<br />
function market_wp_login() {<br />
&nbsp;global $current_user;<br />
&nbsp;get_currentuserinfo();<br />
&nbsp;if (!get_cat_ID($current_user-&gt;user_login)) {<br />
&nbsp;&nbsp;$arg = array(&#8216;description&#8217; =&gt; &#8220;Category for &#8220;. $current_user-&gt;user_login .&#8221; to post into&#8221;, &#8216;parent&#8217; =&gt; 0);<br />
&nbsp;&nbsp;$new_cat_id = wp_insert_term($current_user-&gt;user_login, &#8220;category&#8221;, $arg);<br />
&nbsp;}<br />
}
</p></blockquote>
<p>First this function gets all the user info ready using <em>get_currentuserinfo()</em>. Then the function looks to see if there is a category named after the user with this line:</p>
<blockquote><p>
if (!get_cat_ID($current_user-&gt;user_login)) {
</p></blockquote>
<p>Then if not, we create an array of arguments then use that array with the function <a href="http://codex.wordpress.org/Function_Reference/wp_insert_term">wp_insert_term()</a> to add a new category:</p>
<blockquote><p>
$arg = array(&#8216;description&#8217; =&gt; &#8220;Category for &#8220;. $current_user-&gt;user_login .&#8221; to post into&#8221;, &#8216;parent&#8217; =&gt; 0);<br />
$new_cat_id = wp_insert_term($current_user-&gt;user_login, &#8220;category&#8221;, $arg);
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2011/11/18/adding-user-named-category-on-login-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Modifying User Role from WordPress Functions File</title>
		<link>http://www.theenglishguy.co.uk/2011/11/17/modifying-user-role-from-wordpress-functions-file/</link>
		<comments>http://www.theenglishguy.co.uk/2011/11/17/modifying-user-role-from-wordpress-functions-file/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 13:11:18 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=2017</guid>
		<description><![CDATA[A small project I&#8217;ve been working on demanded some specific functionality, namely that the user role of any member on [...]]]></description>
			<content:encoded><![CDATA[<p>A small project I&#8217;ve been working on demanded some specific functionality, namely that the user role of any member on the site be upgraded to at least &#8216;contributor&#8217; level. When most users register they get added at a &#8216;subscriber&#8217; level, and there is no need to change this but here is the code how to alter that from your theme&#8217;s <em>functions.php</em> file:</p>
<blockquote><p>
add_filter(&#8216;authenticate&#8217;,'check_login&#8217;,10,3);<br />
function check_login($user, $username, $password) {<br />
&nbsp;$user = get_userdatabylogin($username);<br />
&nbsp;$user_role = new WP_User($user-&gt;ID);</p>
<p>&nbsp;$level = (int)$user-&gt;user_level;<br />
&nbsp;if ($level &lt; 1) {<br />
&nbsp;&nbsp;$user_role-&gt;remove_role(&#8216;subscriber&#8217;);<br />
&nbsp;&nbsp;$user_role-&gt;add_role(&#8216;contributor&#8217;);<br />
&nbsp;}</p>
<p>&nbsp;return $user;<br />
}
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2011/11/17/modifying-user-role-from-wordpress-functions-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Comment Counts to Theme Files</title>
		<link>http://www.theenglishguy.co.uk/2011/11/13/adding-comment-counts-to-theme-files/</link>
		<comments>http://www.theenglishguy.co.uk/2011/11/13/adding-comment-counts-to-theme-files/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 14:16:58 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.theenglishguy.co.uk/?p=2015</guid>
		<description><![CDATA[Another useful little gem that I had to find out how to do, thought I&#8217;d share it. This details how [...]]]></description>
			<content:encoded><![CDATA[<p>Another useful little gem that I had to find out how to do, thought I&#8217;d share it. This details how to add the simple function of adding comment counts to a theme file; so if someone adds a comment, it&#8217;ll total up the amount of comments that user has added.</p>
<p>The first part is the call to the functions.php file (where we&#8217;ll put all the comments code), from the comments.php file. This uses the wp_list_comments() function like so:</p>
<blockquote><p>
&lt;?php wp_list_comments(array(&#8216;callback&#8217; =&gt; &#8216;np_comment&#8217;)); ?&gt;
</p></blockquote>
<p>Here I&#8217;m only using the callback parameter of the wp_list_comments() so we can define the function np_comment() in our functions.php file. You may use other parameters but for the purposes of this, I&#8217;m only showing the callback parameter.</p>
<p>So now we need to look at the np_comment function. I won&#8217;t go into it, since most of them are quite long, but I&#8217;ll provide a couple of links here for you to look at:</p>
<ul>
<li><a href="http://www.scriptygoddess.com/archives/2009/01/15/wordpress-wp_list_comments/">Scriptgoddess</a> has a good write-up of how to use <em>wp_list_comments()</em> with <em>callback</em>;
<li><a href="http://www.studiograsshopper.ch/code-snippets/customising-wp_list_comments/">Studiograsshopper</a> has a more elaborate write-up detailing some customisation of others parts of the callback function;
</ul>
<p>Ok so the part I want to show you is inside the callback function, adding a bit that displays the total amount of comments by a commenter. So in my comment function I have this bit of code:</p>
<blockquote><p>
&lt;p&gt;<br />
&nbsp;Comment from &lt;a href=&#8221;&lt;?php echo htmlspecialchars(get_comment_link($comment-&gt;comment_ID)) ?&gt;&#8221;&gt;&lt;?php printf(__(&#8216;%1$s&#8217;), get_comment_author_link()) ?&gt;&lt;/a&gt; &lt;?php np_comment_count($comment-&gt;comment_ID, get_comment_author()); ?&gt;<br />
&lt;/p&gt;
</p></blockquote>
<p>So here there is a link to display the name of the commenter, then there is a call to the np_comment_count() function, which is my own defined function, as shown below:</p>
<blockquote><p>
function np_comment_count($commentid, $commentauthor) {<br />
&nbsp;global $wpdb;<br />
&nbsp;$count = $wpdb-&gt;get_var(&#8216;SELECT COUNT(&#8216;. $commentid .&#8217;) FROM &#8216;. $wpdb-&gt;comments .&#8217; WHERE comment_author = &#8220;&#8216;. $commentauthor .&#8217;&#8221;&#8216;);<br />
&nbsp;echo &#8216;(&#8216;. $count .&#8217; comment&#8217;. ($count &gt; 1 ? &#8216;s&#8217; : &#8221;) .&#8217;)';<br />
}
</p></blockquote>
<p>And there you have it. Now you&#8217;ll get a display like this:</p>
<blockquote><p>
Comment from Joe Bloggs (2 comments)
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.theenglishguy.co.uk/2011/11/13/adding-comment-counts-to-theme-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

