<?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>WpFunc &#187; footer.php</title>
	<atom:link href="http://wpfunc.com/tag/footer-php/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Thu, 01 Dec 2011 01:17:01 +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>2 Useful SQL Hacks For WordPress</title>
		<link>http://wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html</link>
		<comments>http://wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html#comments</comments>
		<pubDate>Sun, 26 Jul 2009 11:00:47 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[footer.php]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[queries]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[spam commets]]></category>
		<category><![CDATA[theme edit]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=113</guid>
		<description><![CDATA[I Love Mysql, love WordPress too :) Here i give to you 2 simple and useful sql hacks for WordPress. First one is about spam comments and delete them. Second one is show number of queries on your footer. You can apply from Mysql application. Lets Begin&#8230;
1st one; Delete your 5000 spam comments in 1 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I Love Mysql, love WordPress too :) Here i give to you 2 simple and useful sql hacks for WordPress. First one is about spam comments and delete them. Second one is show number of queries on your footer. You can apply from Mysql application. Lets Begin&#8230;<span id="more-113"></span></p>
<h3>1st one; Delete your 5000 spam comments in 1 second :)</h3>
<p>Yes you read it rightly. You can delete your spam comments from mysql in 1 second. Firstly you have to login to your <strong><em>Mysql Manager</em></strong> and integrate this lines from tab.</p>
<h3>Here is the code:</h3>
<pre class="brush: plain; title: ; notranslate">DELETE from wp_comments WHERE comment_approved = '0';</pre>
<p>That&#8217;s All! You delete your spam comments :)</p>
<h3>2nd one; Show number of queries on your footer</h3>
<p style="text-align: justify;">You can show number of queries and query time on your template&#8217;s footer. That&#8217;s a simple code again and you have to edit your <span style="color: #ff0000;"><em><strong>footer.php</strong></em></span> file. Add this lines to footer.php</p>
<h3>Here is the code;</h3>
<pre class="brush: plain; title: ; notranslate">&lt;?php if (is_user_logged_in()) { ?&gt;
 &lt;?php echo get_num_queries(); ?&gt; queries in &lt;?php timer_stop(1); ?&gt; seconds.
&lt;?php } ?&gt;</pre>
<p>We add<strong><em> if_user_logged_in</em></strong> because we dont want to visitors see this line :)</p>
<p>That&#8217;s All. Have a nice day!</p>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/2-useful-sql-hacks-for-wordpress.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

