<?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>WP WordPress &#187; Advance</title>
	<atom:link href="http://www.wpwordpress.com/tag/advance/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwordpress.com</link>
	<description>Online WordPress Tips, Tutorials, and Resources for WordPress Users</description>
	<lastBuildDate>Thu, 05 Nov 2009 15:48:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to Backup and Restore WordPress Database</title>
		<link>http://www.wpwordpress.com/how-to-backup-and-restore-wordpress-database</link>
		<comments>http://www.wpwordpress.com/how-to-backup-and-restore-wordpress-database#comments</comments>
		<pubDate>Thu, 08 Oct 2009 03:56:03 +0000</pubDate>
		<dc:creator>Lego Lee</dc:creator>
				<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Advance]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.wpwordpress.com/?p=256</guid>
		<description><![CDATA[<p>Please keep in mind that you need to backup your wordpress database periodically to prevent your... <a href="http://www.wpwordpress.com/how-to-backup-and-restore-wordpress-database">Read more</a></p>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wpwordpress.com%2Fhow-to-backup-and-restore-wordpress-database"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wpwordpress.com%2Fhow-to-backup-and-restore-wordpress-database&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Please keep in mind that you need to <strong>backup your wordpress database periodically</strong> to prevent your data lose in case of bad plugin installation or an attack by hacker. So do you know <strong>how to backup and restore your wordpress database</strong>? If you don&#8217;t, let me show you how.</p>
<p><span style="color: #ff0000;">DISCLAIMER</span>: I will not going to hold responsible in any way should you encounter problems like loss of database and entire blog/website along the way. It worked excellently well for me.</p>
<h3>How to Backup Your WordPress Database</h3>
<p>1. Download and install <a href=http://www.ilfilosofo.com/blog/wp-db-backup>WordPress Database Plugin</a> and active this plugin.</p>
<p>2. In your wordpress dashboard, go to <strong>Tools > Backup</strong></p>
<p>3. Under Backup Options, select “Download to your computer” and click on “Backup Now” button.<br />
<img src=http://www.wpwordpress.com/wp-content/uploads/2009/10/backupoptions.jpg border=0></p>
<h3>How to Restore Your WordPress Database</h3>
<p>1. Log into your FTP account and delete everything in the <strong>/wp-content/cache</strong> directory.</p>
<p>2. Log into <strong>PHP MyAdmin</strong> and select your wordpress database.<br />
<img src=http://www.wpwordpress.com/wp-content/uploads/2009/10/selectdatabase.jpg border=0></p>
<p>3. A list of all of the tables contained in the database will be shown. Select all the tables and select the <strong>Drop option to delete</strong> them permanently.<br />
<img src=http://www.wpwordpress.com/wp-content/uploads/2009/10/drop-database.jpg border=0></p>
<p>4. After wordpress database is empty, it is time to upload your database by clicking <strong>Import</strong> tab.<br />
<img src=http://www.wpwordpress.com/wp-content/uploads/2009/10/import-database.jpg border=0></p>
<p>5. <strong>Locate of the text file</strong> and then click &#8220;Go&#8221; button to import your wordpress database.<br />
<img src=http://www.wpwordpress.com/wp-content/uploads/2009/10/importdatabase2.jpg border=0></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpwordpress.com/how-to-backup-and-restore-wordpress-database/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Display Google Adsense After The First Post</title>
		<link>http://www.wpwordpress.com/how-to-display-google-adsense-after-the-first-post</link>
		<comments>http://www.wpwordpress.com/how-to-display-google-adsense-after-the-first-post#comments</comments>
		<pubDate>Wed, 30 Sep 2009 22:03:39 +0000</pubDate>
		<dc:creator>Lego Lee</dc:creator>
				<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Advance]]></category>
		<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://www.wpwordpress.com/?p=203</guid>
		<description><![CDATA[<p>If you want to display Google Adsense After the first post, then you can refer to the following... <a href="http://www.wpwordpress.com/how-to-display-google-adsense-after-the-first-post">Read more</a></p>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wpwordpress.com%2Fhow-to-display-google-adsense-after-the-first-post"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wpwordpress.com%2Fhow-to-display-google-adsense-after-the-first-post&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>If you want to <strong>display Google Adsense After the first post</strong>, then you can refer to the following code and see how it works. Honestly, this is a wonderful code that I have been looking for so long.</p>
<pre><code>&lt;?php if (have_posts()) : ?&gt;
&lt;?php while (have_posts()) : the_post(); $loopcounter++; ?&gt;

// the loop stuffs

&lt;?php if ($loopcounter &lt;= 1) { include (TEMPLATEPATH . '/ad.php'); } ?&gt;

&lt;?php endwhile; ?&gt;
&lt;?php else : ?&gt;
&lt;?php endif; ?&gt;</code></pre>
<p>Thanks <a href="http://www.webdesignerwall.com/tutorials/wordpress-theme-hacks">Web Designer Wall</a> for this awesome code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpwordpress.com/how-to-display-google-adsense-after-the-first-post/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Seperate Comments and Trackbacks</title>
		<link>http://www.wpwordpress.com/how-to-seperate-comments-and-trackbacks</link>
		<comments>http://www.wpwordpress.com/how-to-seperate-comments-and-trackbacks#comments</comments>
		<pubDate>Fri, 18 Sep 2009 10:04:05 +0000</pubDate>
		<dc:creator>Lego Lee</dc:creator>
				<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Advance]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.wpwordpress.com/?p=170</guid>
		<description><![CDATA[<p>Most wordpress themes combine comments with trackbacks, if you want to separate comments and... <a href="http://www.wpwordpress.com/how-to-seperate-comments-and-trackbacks">Read more</a></p>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wpwordpress.com%2Fhow-to-seperate-comments-and-trackbacks"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wpwordpress.com%2Fhow-to-seperate-comments-and-trackbacks&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Most wordpress themes combine comments with trackbacks, if you want to <strong>separate comments and trackbacks</strong> so that it will looks more organized, then you can follow the below step by step guide.</p>
<h3>Step 1</h3>
<p>Open <em>comments.php</em> and look for</p>
<pre><code>&lt;?php foreach ($comments as $comment) : ?&gt;</code></pre>
<p>Paste after</p>
<pre><code>&lt;?php $comment_type = get_comment_type(); ?&gt;
&lt;?php if($comment_type == 'comment') { ?&gt;</code></pre>
<h3>Step 2</h3>
<p>Scroll down a bit and look for</p>
<pre><code>&lt;?php endforeach; /* end for each comment */ ?&gt;</code></pre>
<p>Paste before</p>
<pre><code>&lt;?php } else { $trackback = true; } /* End of is_comment statement */ ?&gt;</code></pre>
<h3>Step 3</h3>
<p>Look for</p>
<pre><code>&lt;?php else : // this is displayed if there are no comments so far ?&gt;</code></pre>
<p>Paste before</p>
<pre><code>&lt;?php if ($trackback == true) { ?&gt;
&lt;h3&gt;Trackbacks&lt;/h3&gt;
&lt;ol&gt;
&lt;?php foreach ($comments as $comment) : ?&gt;
&lt;?php $comment_type = get_comment_type(); ?&gt;
&lt;?php if($comment_type != 'comment') { ?&gt;
&lt;li&gt;&lt;?php comment_author_link() ?&gt;&lt;/li&gt;
&lt;?php } ?&gt;
&lt;?php endforeach; ?&gt;
&lt;/ol&gt;
&lt;?php } ?&gt;</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.wpwordpress.com/how-to-seperate-comments-and-trackbacks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Display Most Popular Posts Without a WordPress Plugin</title>
		<link>http://www.wpwordpress.com/how-to-display-most-popular-posts-without-a-wordpress-plugin</link>
		<comments>http://www.wpwordpress.com/how-to-display-most-popular-posts-without-a-wordpress-plugin#comments</comments>
		<pubDate>Sun, 13 Sep 2009 15:58:08 +0000</pubDate>
		<dc:creator>Lego Lee</dc:creator>
				<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[Advance]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.wpwordpress.com/?p=93</guid>
		<description><![CDATA[<p>Many blogs have display most popular posts on their blog to make visitors stay longer on their... <a href="http://www.wpwordpress.com/how-to-display-most-popular-posts-without-a-wordpress-plugin">Read more</a></p>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.wpwordpress.com%2Fhow-to-display-most-popular-posts-without-a-wordpress-plugin"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.wpwordpress.com%2Fhow-to-display-most-popular-posts-without-a-wordpress-plugin&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Many blogs have <strong>display most popular posts on their blog</strong> to make visitors stay longer on their posts, this is one of the way to attract more visitors to your blog. We actually can install a <a href="http://wordpress.org/extend/plugins/wordpress-popular-posts"></a>wordpress popular posts plugin to display our most popular posts, but if you don’t want to use plugin, you can simply hack your wordpress theme to do it manually.</p>
<p>Copy and paste the following code to the <em>sidebar.php</em> file, if you want to change the number of displayed posts, simply change the &#8220;5&#8243; to your desired number.</p>
<pre><code>&lt;h2&gt;Popular Posts&lt;/h2&gt;
&lt;ul&gt;
&lt;?php $result = $wpdb-&gt;get_results("SELECT comment_count,ID,post_title FROM $wpdb-&gt;posts ORDER BY comment_count DESC LIMIT 0 , 5");
foreach ($result as $post) {
setup_postdata($post);
$postid = $post-&gt;ID;
$title = $post-&gt;post_title;
$commentcount = $post-&gt;comment_count;
if ($commentcount != 0) { ?&gt;
&lt;li&gt;&lt;a href="&lt;?php echo get_permalink($postid); ?&gt;" title="&lt;?php echo $title ?&gt;"&gt;
&lt;?php echo $title ?&gt;&lt;/a&gt; {&lt;?php echo $commentcount ?&gt;}&lt;/li&gt;
&lt;?php } } ?&gt;
&lt;/ul&gt;</code></pre>
<p>Please note that the 5 most popular posts displayed is basing on the 5 most commented posts .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpwordpress.com/how-to-display-most-popular-posts-without-a-wordpress-plugin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
