<?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>Jeffikus &#187; Development</title>
	<atom:link href="http://www.jeffikus.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeffikus.com</link>
	<description>A Voice Crying in the WordPress Wilderness</description>
	<lastBuildDate>Thu, 26 Jan 2012 08:37:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>WooCommerce</title>
		<link>http://www.jeffikus.com/2012/01/10/woocommerce/</link>
		<comments>http://www.jeffikus.com/2012/01/10/woocommerce/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 21:33:26 +0000</pubDate>
		<dc:creator>jeffikus</dc:creator>
				<category><![CDATA[Freebie]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Woothemes]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[Shop]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.jeffikus.com/?p=546</guid>
		<description><![CDATA[So after having done a customization for African Cartel recently using WooCommerce and a WooTheme, I thought I&#8217;d spend some more time with it for a personal project of mine. And (even though I&#8217;m slightly biased*) I gotta say that I love it It&#8217;s really easy to use and to extend. I&#8217;m using it as [...]]]></description>
			<content:encoded><![CDATA[<p>So after having done a <a title="African Cartel WooCommerce" href="http://www.jeffikus.com/2011/11/16/african-cartel-woocommerce/">customization for African Cartel</a> recently using WooCommerce and a <a title="WooThemes Premium WordPress Themes" href="http://woothemes.com">WooTheme</a>, I thought I&#8217;d spend some more time with it for a personal project of mine. And (even though I&#8217;m slightly biased*) I gotta say that I love it <img src='http://www.jeffikus.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  It&#8217;s really easy to use and to extend. I&#8217;m using it as an engine for a manual payment system and it is really powerful.</p>
<p><strong>Check it out</strong> &#8211; you wont be disappointed - <a title="Download WooCommerce" href="http://wordpress.org/extend/plugins/woocommerce/">http://wordpress.org/extend/plugins/woocommerce/</a> and it&#8217;s a <strong>FREE plugin.</strong></p>
<p><em>* Disclaimer: in the interest of full disclosure, I work for <a title="WooThemes Premium WordPress Themes" href="http://woothemes.com">WooThemes</a> who built the <a title="Download the WooCommerce plugin" href="http://wordpress.org/extend/plugins/woocommerce/">WooCommerce plugin</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffikus.com/2012/01/10/woocommerce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If This Then That</title>
		<link>http://www.jeffikus.com/2012/01/04/if-this-then-that/</link>
		<comments>http://www.jeffikus.com/2012/01/04/if-this-then-that/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 08:00:55 +0000</pubDate>
		<dc:creator>jeffikus</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Freebie]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[ifttt]]></category>
		<category><![CDATA[social]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.jeffikus.com/?p=544</guid>
		<description><![CDATA[I started using the If This Then That service today, after Matty recommended it. Quite a neat service to create social actions, and its free This could be useful for development projects that need automated social elements. For example - I created a task that posts to my twitter everytime my blog feed has a new [...]]]></description>
			<content:encoded><![CDATA[<p>I started using the <a title="If This Then That" href="http://ifttt.com/">If This Then That</a> service today, after <a title="Matt Cohen" href="http://matty.co.za/">Matty</a> recommended it. Quite a neat service to create social actions, and its free <img src='http://www.jeffikus.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  This could be useful for development projects that need automated social elements.</p>
<p><em>For example -</em> I created a task that posts to my twitter everytime my blog feed has a new article.</p>
<p>There are many more tasks that you can create as well as some preset &#8216;recipes&#8217;. Check it out here: <a title="If This Then That" href="http://ifttt.com/">http://ifttt.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffikus.com/2012/01/04/if-this-then-that/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get to know me</title>
		<link>http://www.jeffikus.com/2011/12/02/get-to-know-me/</link>
		<comments>http://www.jeffikus.com/2011/12/02/get-to-know-me/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 17:16:19 +0000</pubDate>
		<dc:creator>jeffikus</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Woothemes]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.jeffikus.com/?p=536</guid>
		<description><![CDATA[I was interviewed at work recently as part of a &#8220;Getting to know the Team&#8221; series. Check it out on the WooThemes site.]]></description>
			<content:encoded><![CDATA[<p>I was <a title="Get to know me" href="http://www.woothemes.com/2011/12/get-to-know-jeff/">interviewed at work</a> recently as part of a &#8220;Getting to know the Team&#8221; series. Check it out on the <a title="Get to know me" href="http://www.woothemes.com/2011/12/get-to-know-jeff/">WooThemes site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffikus.com/2011/12/02/get-to-know-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>African Cartel WooCommerce</title>
		<link>http://www.jeffikus.com/2011/11/16/african-cartel-woocommerce/</link>
		<comments>http://www.jeffikus.com/2011/11/16/african-cartel-woocommerce/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 15:07:15 +0000</pubDate>
		<dc:creator>jeffikus</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Woothemes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[African Cartel]]></category>

		<guid isPermaLink="false">http://www.jeffikus.com/?p=518</guid>
		<description><![CDATA[I recently did some work for African Cartel (I previously worked on the original site) to move them over to using the WooCommerce plugin instead of some of the other WordPress e-commerce plugins out there. I also wrote a content schema plugin so that they didn&#8217;t lose their content when moving from theme to theme, [...]]]></description>
			<content:encoded><![CDATA[<p>I recently did some work for <a title="African Cartel" href="http://www.africancartel.com">African Cartel</a> (<a title="African Cartel Customization" href="http://www.jeffikus.com/portfolio/african-cartel-customization/">I previously worked on the original site</a>) to move them over to using the <a title="WooCommerce Plugin for WordPress" href="http://wordpress.org/extend/plugins/woocommerce/">WooCommerce plugin</a> instead of some of the other WordPress e-commerce plugins out there. I also wrote a content schema plugin so that they didn&#8217;t lose their content when moving from theme to theme, and created another plugin that allows them to link 2 different post types together.</p>
<p>Click the title to read the case study on the <a title="WooThemes Case Study on African Cartel" href="http://www.woothemes.com/2011/11/case-study-african-cartel-and-woocommerce/">WooThemes</a> site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffikus.com/2011/11/16/african-cartel-woocommerce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coding at WooThemes</title>
		<link>http://www.jeffikus.com/2011/11/03/coding-at-woothemes/</link>
		<comments>http://www.jeffikus.com/2011/11/03/coding-at-woothemes/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 08:55:18 +0000</pubDate>
		<dc:creator>jeffikus</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Woothemes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Timelapse]]></category>

		<guid isPermaLink="false">http://www.jeffikus.com/?p=508</guid>
		<description><![CDATA[This week I upgraded our Listings directory theme at WooThemes from the Google Maps API V2 to V3 and I thought it would be pretty cool to show you what I actually do when I code. The upgrade process took about an hour and a half of coding, testing, and deploying. And for those wondering, [...]]]></description>
			<content:encoded><![CDATA[<script src="https://apis.google.com/js/plusone.js" type="text/javascript">
</script>
<script type="text/javascript">gapi.plusone.go();</script>
<p>This week I upgraded our <a title="Listings WordPress Theme" href="http://www.woothemes.com/2010/12/listings/">Listings directory theme</a> at <a title="WooThemes Premium WordPress Themes" href="http://www.woothemes.com">WooThemes</a> from the Google Maps API V2 to V3 and I thought it would be pretty cool to show you what I actually do when I code.</p>
<p>The upgrade process took about an hour and a half of coding, testing, and deploying. And for those wondering, I&#8217;m coding in <a title="Coda IDE" href="http://panic.com/coda/">Coda</a>, and the video was created using <a title="Screenflow" href="http://itunes.apple.com/us/app/screenflow/id422025166?mt=12">Screenflow</a>.</p>
<p>And for those wondering about the music, it&#8217;s one of my favorite pieces recorded by <a title="JerryC" href="http://en.wikipedia.org/wiki/JerryC">JerryC</a> called <a title="Canon Rock" href="http://en.wikipedia.org/wiki/Canon_Rock_(music)">Canon Rock</a>.</p>
<p>Update: <a title="WPCandy Feature" href="http://wpcandy.com/watches/time-lapse-watch-jeffrey-pearce-of-woothemes-update-a-wordpress-theme">the video was featured on WPCandy</a>.</p>
<p>
<div class="woo-fblike fl">
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.jeffikus.com/2011/11/03/coding-at-woothemes/&amp;layout=standard&amp;show_faces=false&amp;width=260&amp;action=like&amp;colorscheme=light&amp;font=arial" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:260px; height:25px;"></iframe>
</div>
	 <div class="woo-sc-twitter left"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.jeffikus.com/2011/11/03/coding-at-woothemes/" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div> <div class="shortcode-google-plusone fl"><div class="g-plusone"  data-size="standard" data-annotation="none"></div></div><!--/.shortcode-google-plusone-->

</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffikus.com/2011/11/03/coding-at-woothemes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordCamp Cape Town Video</title>
		<link>http://www.jeffikus.com/2011/10/03/wordcamp-cape-town-video/</link>
		<comments>http://www.jeffikus.com/2011/10/03/wordcamp-cape-town-video/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 06:36:55 +0000</pubDate>
		<dc:creator>jeffikus</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Woothemes]]></category>
		<category><![CDATA[WordCamp]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordcamp]]></category>

		<guid isPermaLink="false">http://www.jeffikus.com/?p=494</guid>
		<description><![CDATA[I posted earlier about speaking at WordCamp Cape Town about using WordPress as a Development Framework, here is the video for your viewing pleasure!]]></description>
			<content:encoded><![CDATA[<script src="https://apis.google.com/js/plusone.js" type="text/javascript">
</script>
<script type="text/javascript">gapi.plusone.go();</script>
<p>I <a title="WordPress as a Development Framework" href="http://www.jeffikus.com/2011/09/16/wordpress-as-a-development-framework/">posted earlier about speaking at WordCamp Cape Town</a> about using WordPress as a Development Framework, here is the video for your viewing pleasure!</p>
<p>
<div class="woo-fblike fl">
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.jeffikus.com/2011/10/03/wordcamp-cape-town-video/&amp;layout=standard&amp;show_faces=false&amp;width=260&amp;action=like&amp;colorscheme=light&amp;font=arial" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:260px; height:25px;"></iframe>
</div>
	 <div class="woo-sc-twitter left"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.jeffikus.com/2011/10/03/wordcamp-cape-town-video/" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div> <div class="shortcode-google-plusone fl"><div class="g-plusone"  data-size="standard" data-annotation="none"></div></div><!--/.shortcode-google-plusone-->

</p>
<div class="fix"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffikus.com/2011/10/03/wordcamp-cape-town-video/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress as a Development Framework</title>
		<link>http://www.jeffikus.com/2011/09/16/wordpress-as-a-development-framework/</link>
		<comments>http://www.jeffikus.com/2011/09/16/wordpress-as-a-development-framework/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 14:24:29 +0000</pubDate>
		<dc:creator>jeffikus</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Slides]]></category>
		<category><![CDATA[Woothemes]]></category>
		<category><![CDATA[WordCamp]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordcamp]]></category>

		<guid isPermaLink="false">http://www.jeffikus.com/?p=489</guid>
		<description><![CDATA[I gave a talk at WordCamp Cape Town yesterday about using WordPress as a Development Framework for building web applications. Here&#8217;s my slides, I&#8217;ll update this post shortly with a bit more information &#8211; like the links to the video clip and code snippets. WordPress as a Development Framework View more presentations from Jeffrey Pearce]]></description>
			<content:encoded><![CDATA[<p>I gave a talk at <a href="http://2011.capetown.wordcamp.org" title="WordCamp Cape Town 2011">WordCamp Cape Town</a> yesterday about using WordPress as a Development Framework for building web applications.  Here&#8217;s my slides, I&#8217;ll update this post shortly with a bit more information &#8211; like the links to the video clip and code snippets.</p>
<div style="width:425px" id="__ss_9284180"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/jeffikus/wordpress-as-a-development-framework" title="WordPress as a Development Framework" target="_blank">WordPress as a Development Framework</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/9284180" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/jeffikus" target="_blank">Jeffrey Pearce</a> </div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffikus.com/2011/09/16/wordpress-as-a-development-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordCamp Cape Town</title>
		<link>http://www.jeffikus.com/2011/08/26/wordcamp-cape-town/</link>
		<comments>http://www.jeffikus.com/2011/08/26/wordcamp-cape-town/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 14:02:44 +0000</pubDate>
		<dc:creator>jeffikus</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Woothemes]]></category>
		<category><![CDATA[WordCamp]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Cape Town]]></category>
		<category><![CDATA[wordcamp]]></category>

		<guid isPermaLink="false">http://www.jeffikus.com/?p=477</guid>
		<description><![CDATA[I will be speaking at WordCamp Cape Town this year, and I&#8217;m pretty excited It will be my second WordCamp presentation after last years WordCamp Spain in Barcelona. I&#8217;ll be showing off some of the more advanced concepts of WordPress and trying to get rid of a mindset that WordPress is just a blogging engine [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://2011.capetown.wordcamp.org/"><img class="alignleft" title="I’m speaking at WordCamp Cape Town 2011!" src="http://2011.capetown.wordcamp.org/files/2011/07/wordcamp_speaking.png" alt="I’m speaking at WordCamp Cape Town 2011!" width="150" height="150" /></a>I will be speaking at WordCamp Cape Town this year, and I&#8217;m pretty excited <img src='http://www.jeffikus.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  It will be my second WordCamp presentation after last years <a href="http://www.jeffikus.com/2010/12/11/wootumblog-post-formats-express-app-wordcamp-spain-2010-slides/" title="WooTumblog, Post Formats, Express App – WordCamp Spain 2010 Slides">WordCamp Spain in Barcelona</a>. I&#8217;ll be showing off some of the more advanced concepts of WordPress and trying to get rid of a mindset that WordPress is just a blogging engine &#8211; I believe that it&#8217;s good enough to be used as a fully fledged development framework for everything from a basic website to a full on web application. &nbsp;I&#8217;ll post my slides and the code that I use in the talk here as always <img src='http://www.jeffikus.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffikus.com/2011/08/26/wordcamp-cape-town/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Taxonomy Archive Parent Items Filter</title>
		<link>http://www.jeffikus.com/2011/07/05/wordpress-taxonomy-archive-parent-items-filter/</link>
		<comments>http://www.jeffikus.com/2011/07/05/wordpress-taxonomy-archive-parent-items-filter/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 09:24:36 +0000</pubDate>
		<dc:creator>jeffikus</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Archive]]></category>
		<category><![CDATA[Filters]]></category>
		<category><![CDATA[Taxonomy]]></category>

		<guid isPermaLink="false">http://www.jeffikus.com/?p=465</guid>
		<description><![CDATA[If you&#8217;ve ever delved into the WP core you&#8217;ll find some little items that are quite unknown. Take tax_query for example; most developers are aware of the standard options: &#8216;taxonomy&#8217; &#8216;field&#8217; and &#8216;terms&#8217; but did you know there is an &#8216;include_children&#8217; option? This returns only direct parent matches for the taxonomy terms specified &#8211; in [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever delved into the WP core you&#8217;ll find some little items that are quite unknown. Take tax_query for example; most developers are aware of the standard options: &#8216;taxonomy&#8217; &#8216;field&#8217; and &#8216;terms&#8217; but did you know there is an &#8216;include_children&#8217; option? This returns only direct parent matches for the taxonomy terms specified &#8211; in other words, no child terms if you are using hierarchies. This is pretty straightforward for custom queries, but what about archive pages? Here&#8217;s a filter for that:<br />
<code><br />
// Custom Taxonomy Page Filter<br />
add_action('pre_get_posts', 'my_taxonomy_children_filter' );<br />
function my_taxonomy_children_filter( $query ) {</p>
<p>  global $wp_query;</p>
<p>  if ($query->is_tax) {</p>
<p>  	$modded_tax_query = $query->tax_query;</p>
<p>  	$filter_tax = $modded_tax_query->queries[0]['taxonomy'];<br />
  	$filter_terms = $modded_tax_query->queries[0]['terms'];<br />
  	$filter_field = $modded_tax_query->queries[0]['field'];</p>
<p>  	$query->set('tax_query', array(array(<br />
										'taxonomy' => $filter_tax,<br />
										'field' => $filter_field,<br />
										'terms' => $filter_terms,<br />
										'include_children' => false<br />
									))<br />
								);</p>
<p>  	$query->parse_query();<br />
  }</p>
<p>  return $query;</p>
<p>}<br />
</code></p>
<p>Works pretty well for me. Pop that into your functions.php and it should do the trick <img src='http://www.jeffikus.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Let me know if it doesn&#8217;t for you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffikus.com/2011/07/05/wordpress-taxonomy-archive-parent-items-filter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging WordPress</title>
		<link>http://www.jeffikus.com/2011/06/28/debugging-wordpress/</link>
		<comments>http://www.jeffikus.com/2011/06/28/debugging-wordpress/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 07:17:30 +0000</pubDate>
		<dc:creator>jeffikus</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Woothemes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.jeffikus.com/?p=446</guid>
		<description><![CDATA[I&#8217;ve been working on a performance issue with a for loop in a theme in WordPress for the past week, in particular trying to get the number of queries down. The homepage was executing around 10000 queries to the DB, which while it executed each query quickly due to the SQL being optimized, was ultimately [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a performance issue with a for loop in a theme in WordPress for the past week, in particular trying to <a title="Some thoughts on DB Queries" href="http://www.jeffikus.com/2011/06/28/some-thoughts-on-db-queries/">get the number of queries down</a>. The homepage was executing around 10000 queries to the DB, which while it executed each query quickly due to the SQL being optimized, was ultimately slowing the site down. So after several pointers from various people, I spend some time with the code and managed to get it down to 290 queries after optimizing the loop structure. To do this I used 2 plugins that were a MASSIVE help:<br />
<a title="WP Debug Bar" href="http://wordpress.org/extend/plugins/debug-bar/" target="_blank">Debug Bar</a> and <a title="WP Debug Bar Console" href="http://wordpress.org/extend/plugins/debug-bar-console/" target="_blank">Debug bar Console</a><br />
If you are a WordPress developer, I highly recommend using these as they really make the debugging process far easier due to their comprehensive info panels that you can switch on and off.</p>
<p>Sidenote: If you are using foreach to loop through an array and you only want a cross section of the results, try using the <a title="PHP array_slice function" href="http://theserverpages.com/php/manual/en/function.array-slice.php" target="_blank">array_slice function</a> instead of using a counter variable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffikus.com/2011/06/28/debugging-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 807/963 objects using disk: basic

Served from: www.jeffikus.com @ 2012-02-04 15:03:20 -->
