<?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>Web Server Hacks Blog - Hacks for Dedicated/VPS Servers, SSH, and Plesk &#187; wordpress hack</title>
	<atom:link href="http://webserverhacks.com/tag/wordpress-hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://webserverhacks.com</link>
	<description>Hacks for Dedicated/VPS Servers, SSH, and Plesk</description>
	<lastBuildDate>Tue, 01 Nov 2011 23:56:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WordPress Hack – How to Upgrade WordPress in 15 seconds using SSH/Wget!</title>
		<link>http://webserverhacks.com/wordpress-hacks/wordpress-hack-%e2%80%93-how-to-upgrade-wordpress-in-15-seconds-using-sshwget/</link>
		<comments>http://webserverhacks.com/wordpress-hacks/wordpress-hack-%e2%80%93-how-to-upgrade-wordpress-in-15-seconds-using-sshwget/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 00:55:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Hacks]]></category>
		<category><![CDATA[15 seconds]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wget]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress hack]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=83</guid>
		<description><![CDATA[I&#8217;ve been upgrading WordPress for almost 4 years now and since I manage about 20 blogs, I have learned to figure out how to upgrade your WordPress faster than ever using SSH and wget command. For one, you will need a dedicated server/VPS that supports SSH. Otherwise you won&#8217;t be able to do it. Here&#8217;s exactly how I do it. 1) I go to my WordPress directory using the command cd. ~ 2 seconds 2) I use wget to pull the latest wordpress files, &#8220;wget http://wordpress.org/latest.tar.gz&#8221; ~ 3 seconds 3) Then I unzip the tar file using &#8220;tar xvf latest.tar.gz&#8221; ~ 5 seconds (see tar command howto here) 4) Then I remove the wp-admin and wp-includes directories by doing &#8220;rm wp-admin -rf&#8221; and &#8220;rm wp-includes -rf&#8220;. ~ 3 seconds 5) Next I will copy over the old WordPress files with the new ones using commands, &#8220;cp wordress/* . -rf &#8211;reply=yes&#8221; ~ 2 seconds. 6) I am done, that&#8217;s 2+3+5+3+2=15 seconds. If you are on at least a quad-core CPU server, downloading and unzipping should be rather fast but for those of you on slower servers, give it couple more seconds as download/unzip will take longer. This is lightening fast compared &#8230; <a href="http://webserverhacks.com/wordpress-hacks/wordpress-hack-%e2%80%93-how-to-upgrade-wordpress-in-15-seconds-using-sshwget/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been upgrading WordPress for almost 4 years now and since I manage about 20 blogs, I have learned to figure out how to upgrade your WordPress faster than ever using SSH and wget command.</p>
<p>For one, you will need a dedicated server/VPS that supports SSH.  Otherwise you won&#8217;t be able to do it.</p>
<p>Here&#8217;s exactly how I do it.</p>
<p>1) I go to my WordPress directory using the command <a target="_blank" href="http://www.computerhope.com/unix/ucd.htm" >cd</a>. ~ 2 seconds</p>
<p>2) I use <a target="_blank" href="http://linux.about.com/od/commands/l/blcmdl1_wget.htm" >wget</a> to pull the latest wordpress files, &#8220;<strong>wget http://wordpress.org/latest.tar.gz</strong>&#8221; ~ 3 seconds</p>
<p>3) Then I unzip the tar file using &#8220;<strong>tar xvf latest.tar.gz</strong>&#8221; ~ 5 seconds (<a target="_blank" href="http://www.computerhope.com/unix/utar.htm" >see tar command howto here</a>)</p>
<p>4) Then I remove the wp-admin and wp-includes directories by doing &#8220;<strong>rm wp-admin -rf</strong>&#8221; and &#8220;<strong>rm wp-includes -rf</strong>&#8220;. ~ 3 seconds</p>
<p>5) Next I will copy over the old WordPress files with the new ones using commands, &#8220;<strong>cp wordress/* . -rf &#8211;reply=yes</strong>&#8221; ~ 2 seconds.</p>
<p>6) I am done, that&#8217;s 2+3+5+3+2=15 seconds.  If you are on at least a quad-core CPU server, downloading and unzipping should be rather fast but for those of you on slower servers, give it couple more seconds as download/unzip will take longer.</p>
<p>This is lightening fast compared to downloading WordPress files to your computer, unzipping it then uploading them to your website via FTP.  And if you are on shared hosting, sometimes uploading FTP can take forever.</p>
<p>Even if you use built-in upgrade functions in WordPress, you are not going to beat SSH, not even a chance.</p>
<p>Of course, even better than this is to write a simple bash shell script that will do all the above for you.  Then you could probably do it in just about 5 seconds.  I will try to write a script soon and let you know on that btw.  (I just realize it!)</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/wordpress-hacks/wordpress-hack-%e2%80%93-how-to-upgrade-wordpress-in-15-seconds-using-sshwget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Hack – WordPress the_post_thumbnail() Feature!</title>
		<link>http://webserverhacks.com/wordpress-hacks/wordpress-hack-%e2%80%93-wordpress-the_post_thumbnail-feature/</link>
		<comments>http://webserverhacks.com/wordpress-hacks/wordpress-hack-%e2%80%93-wordpress-the_post_thumbnail-feature/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 00:52:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Hacks]]></category>
		<category><![CDATA[new feature]]></category>
		<category><![CDATA[the_post_thumbnail]]></category>
		<category><![CDATA[wordpress hack]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=77</guid>
		<description><![CDATA[The new WordPress 2.9 released today features a new functionality for WordPress theme designers/coders to add post thumbnails by using the command the_post_thumnail(). Of course, don&#8217;t forget that the fact that in order to use this feature, you need to select an image under WordPress admin area and click on &#8220;Use as thumbnail&#8221;. I have tried using on older images but seems like it won&#8217;t work on the older images. I am sure there&#8217;s a way to hack it so the first image of any post will be used as default thumbnail. But I think I will stick with my custom-hack job, it&#8217;s already working, why fix it? For those of you who want to try out the new features without breaking your old post thumbnail code, you can read this blog post, which details on how you can do that. And also this one for more resources on the_post_thumbnail() function features.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-91" title="thumbnail" src="http://webserverhacks.com/wp-content/uploads/2009/12/thumbnail.JPG" alt="thumbnail" width="257" height="114" /> </p>
<p>The new WordPress 2.9 released today features a new functionality for WordPress theme designers/coders to add post thumbnails by using the command <strong>the_post_thumnail()</strong>.</p>
<p>Of course, don&#8217;t forget that the fact that in order to use this feature, you need to select an image under WordPress admin area and click on &#8220;Use as thumbnail&#8221;.</p>
<p>I have tried using on older images but seems like it won&#8217;t work on the older images.  I am sure there&#8217;s a way to hack it so the first image of any post will be used as default thumbnail.  But I think I will stick with my custom-hack job, it&#8217;s already working, why fix it?</p>
<p>For those of you who want to try out the new features without breaking your old post thumbnail code, you can read <a target="_blank" href="http://www.kremalicious.com/2009/12/wordpress-post-thumbnails/" >this blog pos</a>t, which details on how you can do that.</p>
<p>And also <a target="_blank" href="http://wpengineer.com/the-ultimative-guide-for-the_post_thumbnail-in-wordpress-2-9/" >this one</a> for more resources on the_post_thumbnail() function features.</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/wordpress-hacks/wordpress-hack-%e2%80%93-wordpress-the_post_thumbnail-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Hack – How to Get Simple Tags Plugin Working with WordPress 2.9!</title>
		<link>http://webserverhacks.com/wordpress-hacks/wordpress-hack-%e2%80%93-how-to-get-simple-tags-plugin-working-with-wordpress-2-9/</link>
		<comments>http://webserverhacks.com/wordpress-hacks/wordpress-hack-%e2%80%93-how-to-get-simple-tags-plugin-working-with-wordpress-2-9/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 00:51:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Hacks]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[simple tags]]></category>
		<category><![CDATA[wordpress hack]]></category>
		<category><![CDATA[working with wordpress 2.9]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=75</guid>
		<description><![CDATA[For those of you who are getting errors with Simple Tags plugin when upgrading to WordPress 2.9, there&#8217;s a simple hack to make it work: Edit the file simple-tags.php and change the following from this: if ( strpos($wp_version, &#8216;2.7&#8242;) !== false &#124;&#124; strpos($wp_version, &#8216;2.8&#8242;) !== false ) to this: if ( strpos($wp_version, &#8216;2.7&#8242;) !== false &#124;&#124; strpos($wp_version, &#8216;2.8&#8242;) !== false &#124;&#124; strpos($wp_version, &#8216;2.9&#8242;) !== false ) I guess it&#8217;s because the version numbers were hard-coded, not because the plug-in isn&#8217;t compatible with 2.9.]]></description>
			<content:encoded><![CDATA[<p>For those of you who are getting errors with Simple Tags plugin when upgrading to WordPress 2.9, there&#8217;s a simple hack to make it work:</p>
<p>Edit the file simple-tags.php and change the following from this:</p>
<blockquote><p>if ( strpos($wp_version, &#8216;2.7&#8242;) !== false || strpos($wp_version, &#8216;2.8&#8242;) !== false )</p></blockquote>
<p>to this:</p>
<blockquote><p>if ( strpos($wp_version, &#8216;2.7&#8242;) !== false || strpos($wp_version, &#8216;2.8&#8242;) !== false || strpos($wp_version, &#8216;2.9&#8242;) !== false )</p></blockquote>
<p>I guess it&#8217;s because the <a target="_blank" href="http://wordpress.org/support/topic/342645" >version numbers were hard-coded</a>, not because the plug-in isn&#8217;t compatible with 2.9.</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/wordpress-hacks/wordpress-hack-%e2%80%93-how-to-get-simple-tags-plugin-working-with-wordpress-2-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

