<?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>Onlinevortex &#187; wp_query</title>
	<atom:link href="http://onlinevortex.com/tag/wp_query/feed/" rel="self" type="application/rss+xml" />
	<link>http://onlinevortex.com</link>
	<description></description>
	<lastBuildDate>Tue, 03 Jan 2012 21:23:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Query Debug Info plugin</title>
		<link>http://onlinevortex.com/2009/11/query-debug-info-plugin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=query-debug-info-plugin</link>
		<comments>http://onlinevortex.com/2009/11/query-debug-info-plugin/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 01:50:45 +0000</pubDate>
		<dc:creator>cmr778</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp_query]]></category>

		<guid isPermaLink="false">http://onlinevortex.local/?p=400</guid>
		<description><![CDATA[I wanted to have this plugin when I was beginning with WordPress and I did have to use multiple loops in one template. This simple plugin adds some overlay tabs in the left side of the screen with information about &#8230; <a href="http://onlinevortex.com/2009/11/query-debug-info-plugin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-412" title="query_debug_info_query" src="http://onlinevortex.com/wp-content/uploads/2009/11/query_debug_info_query11-300x159.jpg" alt="query_debug_info_query" width="300" height="159" /></p>
<p>I wanted to have this plugin when I was beginning with WordPress and I did have to use multiple loops in one template.</p>
<p>This simple plugin adds some overlay tabs in the left side of the screen with information about the constants of the theme like (WP_CONTENT_DIR, WP_PLUGIN_DIR, TEMPLATEPATH, STYLESHEETPATH, etc..) and infomation useful to debug your loops like the of type you are currently viewing, the query results (post_count, found_posts), the query vars used and the query used (the raw SQL generated by WordPress.</p>
<h3>How to use this plugin</h3>
<p>After activating the plugin you can add the function call in your template to display information about the main query:</p>
<p class="code">&lt;?php if (function_exists(&#8216;debuginfo&#8217;)) { debuginfo(&#8220;Main&#8221;); }?&gt;</p>
<p>Add additional calls after creating a new WP_Query object, if you want to track a specific variable you can pass it to the function, example:</p>
<p class="code">&lt;?php $my_query = new WP_Query(&#8220;showposts=3&amp;category_name=Featured&amp;order=DESC&#8221;); ?&gt;<br />
&lt;?php if (function_exists(&#8216;debuginfo&#8217;)) { debuginfo(&#8220;Secondary&#8221;,2,$my_query); }?&gt;</p>
<p>The information is only displayed if you are logged in as an administrator.</p>
<p>More screenshots of this plugin and the download link in the <a href="http://onlinevortex.com/projects/query-debug-info/">Query debug info</a> page or you can download it from the <a href="http://wordpress.org/extend/plugins/query-debug-info/">Query debug info page</a> in wordpress.org</p>
]]></content:encoded>
			<wfw:commentRss>http://onlinevortex.com/2009/11/query-debug-info-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

