<?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>labs &#187; Wordpress</title>
	<atom:link href="http://earthpeople.se/labs/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://earthpeople.se/labs</link>
	<description>earth people labs</description>
	<lastBuildDate>Tue, 15 May 2012 07:58:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha</generator>
		<item>
		<title>EP Social Widget now with shortcode</title>
		<link>http://earthpeople.se/labs/2012/05/ep-social-widget-now-with-shortcode/</link>
		<comments>http://earthpeople.se/labs/2012/05/ep-social-widget-now-with-shortcode/#comments</comments>
		<pubDate>Tue, 15 May 2012 07:50:23 +0000</pubDate>
		<dc:creator>Mattias Hedman</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[instagram]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress.org]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[wp plugin]]></category>

		<guid isPermaLink="false">http://earthpeople.se/labs/?p=377</guid>
		<description><![CDATA[Our very popular social widget plugin has been updated with shortcode support so that you with ease can display your social links in posts and pages. Here is a short how to. [ep-social-widget facebook="https://facebook.com" gplus="https://plus.google.com" rss="1"] Available networks are facebook gplus twitter flickr youtube rss Just use the one you want to display in your [...]]]></description>
			<content:encoded><![CDATA[<p>Our very popular social widget plugin has been updated with shortcode support so that you with ease can display your social links in posts and pages. Here is a short how to.</p>
<pre>[ep-social-widget facebook="https://facebook.com" gplus="https://plus.google.com" rss="1"]</pre>
<p>Available networks are</p>
<ul>
<li>facebook</li>
<li>gplus</li>
<li>twitter</li>
<li>flickr</li>
<li>youtube</li>
<li>rss</li>
</ul>
<p>Just use the one you want to display in your post/page and give it a link. The RSS option only need a 1 as value if you want that displayed. Remove any network completely to remove it from the post/page.</p>
<p>Download it from the <a href="http://wordpress.org/extend/plugins/ep-social-widget/">WordPress Plugin Directory</a>.</p>
<fb:like 
		href="http://earthpeople.se/labs/2012/05/ep-social-widget-now-with-shortcode/" 
		layout="standard" 
		show_faces="false" 
		width="450" 
		
		action="like" 
		colorscheme="light" 
		style="margin-top:5px;"
		class="fb_edge_widget_with_comment fb_iframe_widget"></fb:like>]]></content:encoded>
			<wfw:commentRss>http://earthpeople.se/labs/2012/05/ep-social-widget-now-with-shortcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Base64-encoding media assets in WordPress</title>
		<link>http://earthpeople.se/labs/2012/05/base64-encoding-media-assets-in-wordpress/</link>
		<comments>http://earthpeople.se/labs/2012/05/base64-encoding-media-assets-in-wordpress/#comments</comments>
		<pubDate>Mon, 14 May 2012 13:02:45 +0000</pubDate>
		<dc:creator>peder fjällström</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[base24 encode]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[wp plugin]]></category>

		<guid isPermaLink="false">http://earthpeople.se/labs/?p=368</guid>
		<description><![CDATA[I needed to serve some WordPress posts as web views to some mobile apps. But the app guys wanted the all the images inside the_content to be encoded into base64-strings, for offline caching. This was made into a tiny little plugin which you can download and use as you see fit. When enabled, this plugin [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to serve some WordPress posts as web views to some mobile apps. But the app guys wanted the all the images inside the_content to be encoded into base64-strings, for offline caching. This was made into a tiny little plugin which you can download and use as you see fit.</p>
<p><img class="alignnone size-medium wp-image-369" title="Skärmavbild 2012-05-14 kl. 14.59.45" src="http://earthpeople.se/labs/wp-content/uploads/2012/05/Skärmavbild-2012-05-14-kl.-14.59.45-585x178.png" alt="" width="585" height="178" /></p>
<p>When enabled, this plugin will encode all images sitewide on your website. This is generally a bad idea. Should you need help tweaking the plugin further, just <a href="mailto:peder@earthpeople.se">drop me an email</a>. <del>Download the plugin here.</del></p>
<p><strong>UPDATE:</strong> This plugin is now released at the WordPress Plugin Directory. Download the plugin <a href="https://wordpress.org/extend/plugins/ep-image-base64-encode/">here</a>.</p>
<fb:like 
		href="http://earthpeople.se/labs/2012/05/base64-encoding-media-assets-in-wordpress/" 
		layout="standard" 
		show_faces="false" 
		width="450" 
		
		action="like" 
		colorscheme="light" 
		style="margin-top:5px;"
		class="fb_edge_widget_with_comment fb_iframe_widget"></fb:like>]]></content:encoded>
			<wfw:commentRss>http://earthpeople.se/labs/2012/05/base64-encoding-media-assets-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hashimage updated with async loading</title>
		<link>http://earthpeople.se/labs/2012/05/hashimage-updated-with-async-loading/</link>
		<comments>http://earthpeople.se/labs/2012/05/hashimage-updated-with-async-loading/#comments</comments>
		<pubDate>Fri, 11 May 2012 08:27:09 +0000</pubDate>
		<dc:creator>Mattias Hedman</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[async]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[hashimage]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[instagram]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[plixi]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[twitpic]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress.org]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[wp plugin]]></category>
		<category><![CDATA[yfrog]]></category>

		<guid isPermaLink="false">http://earthpeople.se/labs/?p=365</guid>
		<description><![CDATA[From the start we always felt that we needed to do something about the slow loading of the hashimage plugin. Today we have updated it with the option to use async loading, letting all the heavy work to be done after initial page load. See the settings page for this new option. In this update [...]]]></description>
			<content:encoded><![CDATA[<p>From the start we always felt that we needed to do something about the slow loading of the <a title="WordPress plugin for fetching hashtag images" href="http://earthpeople.se/labs/2011/07/wordpress-plugin-for-fetching-hashtag-images/">hashimage plugin</a>. Today we have updated it with the option to use async loading, letting all the heavy work to be done after initial page load. See the settings page for this new option.</p>
<p>In this update we have also integrated support for pic.twitter.com and images in the lightbox are no longer cropper and cut, say hallo to the whole image scaled down.</p>
<p>As usual, you find this amazing plugin in the <a title="EP Hashimage - WordPress Plugin Directory" href="https://wordpress.org/extend/plugins/ep-hashimage/">WordPress Plugin Directory</a> and please leave a comment if you have any suggestions or just like the plugin.</p>
<p>The new latest version is 2.3.0.</p>
<fb:like 
		href="http://earthpeople.se/labs/2012/05/hashimage-updated-with-async-loading/" 
		layout="standard" 
		show_faces="false" 
		width="450" 
		
		action="like" 
		colorscheme="light" 
		style="margin-top:5px;"
		class="fb_edge_widget_with_comment fb_iframe_widget"></fb:like>]]></content:encoded>
			<wfw:commentRss>http://earthpeople.se/labs/2012/05/hashimage-updated-with-async-loading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hashimage plugin now with widget</title>
		<link>http://earthpeople.se/labs/2012/02/hashimage-plugin-now-with-widget/</link>
		<comments>http://earthpeople.se/labs/2012/02/hashimage-plugin-now-with-widget/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 10:52:15 +0000</pubDate>
		<dc:creator>Mattias Hedman</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[hashtag]]></category>
		<category><![CDATA[instagram]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[twitpic]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[wp plugin]]></category>
		<category><![CDATA[wp-admin]]></category>

		<guid isPermaLink="false">http://earthpeople.se/labs/?p=343</guid>
		<description><![CDATA[Today, our WordPress plugin EP Hashimage has been updated to version 2.2.0. The news is that we added the ability to display images in a widget. You can download the latest version of the plugin over at wordpress.org]]></description>
			<content:encoded><![CDATA[<p>Today, our WordPress plugin <a title="WordPress plugin for fetching hashtag images" href="http://earthpeople.se/labs/2011/07/wordpress-plugin-for-fetching-hashtag-images/">EP Hashimage</a> has been updated to version 2.2.0. The news is that we added the ability to display images in a widget.</p>
<p>You can download the latest version of the plugin over at <a href="http://wordpress.org/extend/plugins/ep-hashimage/">wordpress.org</a></p>
<fb:like 
		href="http://earthpeople.se/labs/2012/02/hashimage-plugin-now-with-widget/" 
		layout="standard" 
		show_faces="false" 
		width="450" 
		
		action="like" 
		colorscheme="light" 
		style="margin-top:5px;"
		class="fb_edge_widget_with_comment fb_iframe_widget"></fb:like>]]></content:encoded>
			<wfw:commentRss>http://earthpeople.se/labs/2012/02/hashimage-plugin-now-with-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hashimage WordPress plugin updated</title>
		<link>http://earthpeople.se/labs/2012/01/hashimage-wordpress-plugin-updated/</link>
		<comments>http://earthpeople.se/labs/2012/01/hashimage-wordpress-plugin-updated/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 08:54:50 +0000</pubDate>
		<dc:creator>Mattias Hedman</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[hashimage]]></category>
		<category><![CDATA[hashtag]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[timthumb]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wp plugin]]></category>
		<category><![CDATA[wp-admin]]></category>

		<guid isPermaLink="false">http://earthpeople.se/labs/?p=321</guid>
		<description><![CDATA[During summer last year we published a dirty site for displaying images from a certain Twitter hashtag. In august the same year we got the question to make it a WordPress plugin. Said and done, we made a plugin a few hours later. Now, it&#8217;s updated with some new features and released at WordPress plugin [...]]]></description>
			<content:encoded><![CDATA[<p>During summer last year we published a <a href="http://hashimage.com/">dirty site for displaying images from a certain Twitter hashtag</a>. In august the same year we got the question to make it a WordPress plugin. <a title="WordPress plugin for fetching hashtag images" href="http://earthpeople.se/labs/2011/07/wordpress-plugin-for-fetching-hashtag-images/" target="_blank">Said and done, we made a plugin a few hours later</a>. Now, it&#8217;s updated with some new features and released at <a href="http://wordpress.org/extend/plugins/ep-hashimage/" target="_blank">WordPress plugin directory</a>.</p>
<p>The news in the code are:</p>
<ul>
<li>Shortcode for easy use directly in your post or page content.</li>
<li>Timthumb resizing, so you don&#8217;t have to load large images every time.</li>
<li>Displaying clicked images in a lightbox with Slimbox 2.</li>
<li>Admin settings page for thumbnails and lightbox image sizes.</li>
</ul>
<p>We hope you enjoy this plugin.</p>
<fb:like 
		href="http://earthpeople.se/labs/2012/01/hashimage-wordpress-plugin-updated/" 
		layout="standard" 
		show_faces="false" 
		width="450" 
		
		action="like" 
		colorscheme="light" 
		style="margin-top:5px;"
		class="fb_edge_widget_with_comment fb_iframe_widget"></fb:like>]]></content:encoded>
			<wfw:commentRss>http://earthpeople.se/labs/2012/01/hashimage-wordpress-plugin-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EP Social Widget &#8211; Tiny social widget for wordpress</title>
		<link>http://earthpeople.se/labs/2012/01/ep-social-widget-tiny-social-widget-for-wordpress/</link>
		<comments>http://earthpeople.se/labs/2012/01/ep-social-widget-tiny-social-widget-for-wordpress/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 12:29:17 +0000</pubDate>
		<dc:creator>Mattias Hedman</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google plus]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[social]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[wp plugin]]></category>
		<category><![CDATA[wp widget]]></category>

		<guid isPermaLink="false">http://earthpeople.se/labs/?p=310</guid>
		<description><![CDATA[When started, it is so much easier to continue. Today we have released our very tiny social wordpress widget. It is simple, this plugin will add and widget on your site in witch you can choose to display a RSS, Twitter, Facebook or Flickr icon, linked to you profiles or thoes sites and your sites [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://earthpeople.se/labs/wp-content/uploads/2012/01/screenshot-1.png"><img class="size-full wp-image-311 alignright" title="screenshot-1" src="http://earthpeople.se/labs/wp-content/uploads/2012/01/screenshot-1.png" alt="" width="264" height="73" /></a></p>
<p>When started, it is so much easier to continue. Today we have released our very tiny social wordpress widget. It is simple, this plugin will add and widget on your site in witch you can choose to display a RSS, Twitter, Facebook or Flickr icon, linked to you profiles or thoes sites and your sites RSS feed.</p>
<p>More information at the <a href="http://wordpress.org/extend/plugins/ep-social-widget/" target="_blank">WordPress plugin directory</a>.</p>
<p><strong>Update Jan 13: </strong>Added Google Plus<br />
<strong>Updated Jan 30: </strong>Added Youtube &amp; rewriten CSS</p>
<fb:like 
		href="http://earthpeople.se/labs/2012/01/ep-social-widget-tiny-social-widget-for-wordpress/" 
		layout="standard" 
		show_faces="false" 
		width="450" 
		
		action="like" 
		colorscheme="light" 
		style="margin-top:5px;"
		class="fb_edge_widget_with_comment fb_iframe_widget"></fb:like>]]></content:encoded>
			<wfw:commentRss>http://earthpeople.se/labs/2012/01/ep-social-widget-tiny-social-widget-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Our first released WP plugin &#8211; EP Comments Export</title>
		<link>http://earthpeople.se/labs/2012/01/our-first-released-wp-plugin-ep-comments-export/</link>
		<comments>http://earthpeople.se/labs/2012/01/our-first-released-wp-plugin-ep-comments-export/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 09:46:17 +0000</pubDate>
		<dc:creator>Mattias Hedman</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[export comments]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress.org]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[wp plugin]]></category>

		<guid isPermaLink="false">http://earthpeople.se/labs/?p=302</guid>
		<description><![CDATA[WordPress is a system we have been using a lot , since years back. Today, for the first time, we release a plugin to the WordPress plugin directory. The plugin, with the name EP Comments Export, lets you easily export all comments and comment meta data from a specific post, page or custom post type. [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress is a system we have been using a lot , since years back. Today, for the first time, we release a plugin to the WordPress plugin directory.</p>
<p>The plugin, with the name EP Comments Export, lets you easily export all comments and comment meta data from a specific post, page or custom post type. The export will be saved as a .csv file for you to download. To download the .csv file, just click the new icon added in the all posts/page list.</p>
<p>Today you can only export comments. There are plans on making it possible to import an exported .csv file to a post.</p>
<p>You find more information and the plugin at <a href="http://wordpress.org/extend/plugins/ep-comments-export/" target="_blank">wordpress.org plugin directory</a>.</p>
<fb:like 
		href="http://earthpeople.se/labs/2012/01/our-first-released-wp-plugin-ep-comments-export/" 
		layout="standard" 
		show_faces="false" 
		width="450" 
		
		action="like" 
		colorscheme="light" 
		style="margin-top:5px;"
		class="fb_edge_widget_with_comment fb_iframe_widget"></fb:like>]]></content:encoded>
			<wfw:commentRss>http://earthpeople.se/labs/2012/01/our-first-released-wp-plugin-ep-comments-export/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress plugin for fetching hashtag images</title>
		<link>http://earthpeople.se/labs/2011/07/wordpress-plugin-for-fetching-hashtag-images/</link>
		<comments>http://earthpeople.se/labs/2011/07/wordpress-plugin-for-fetching-hashtag-images/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 22:54:27 +0000</pubDate>
		<dc:creator>peder fjällström</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[hashtag]]></category>
		<category><![CDATA[instagram]]></category>
		<category><![CDATA[plixi]]></category>
		<category><![CDATA[twitpic]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wp plugin]]></category>

		<guid isPermaLink="false">http://earthpeople.se/labs/?p=255</guid>
		<description><![CDATA[Some time ago i made a quick and dirty site for displaying images from a certain Twitter hashtag. Some hours ago i was asked to tweak this into a WordPress plugin, and here we go. This is just tested on my environment, but should be alright on any WordPress 3+ installation on PHP5 with libcurl. [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago i made a quick and <a href="http://hashimage.com">dirty site for displaying images from a certain Twitter hashtag</a>. Some hours ago i was asked to tweak this into a WordPress plugin, and here we go. This is just tested on my environment, but should be alright on any WordPress 3+ installation on PHP5 with libcurl.</p>
<p>It currently works with twitpic, instagram, yfrog, plixi, flickr. Adding more services is quite easy and can be done on request. URL&#8217;s are being curled and cached for 10-12 minutes using the built-in WP_Cache.</p>
<p>The plugin, when enabled, exposes a template tag which you can add to your theme:</p>
<pre>&lt;?php
if(function_exists('hashimage')){
 echo '&lt;ul&gt;';
 echo hashimage('hashtag=unicorn&amp;limit=5');
 echo '&lt;/ul&gt;';
}
?&gt;</pre>
<p>I can&#8217;t be bothered add this to the official WordPress repo, but please download it (or fork it!):<br />
<a href="https://github.com/EarthPeople/Hashimage-WP">https://github.com/EarthPeople/Hashimage-WP</a></p>
<p>Some notes:<br />
- The Twitter API only returns the latest results when searching on hashtag, so the result set is limited due to this.<br />
- CSS is up to you. Really. I can&#8217;t do CSS. It&#8217;s magic to me.</p>
<fb:like 
		href="http://earthpeople.se/labs/2011/07/wordpress-plugin-for-fetching-hashtag-images/" 
		layout="standard" 
		show_faces="false" 
		width="450" 
		
		action="like" 
		colorscheme="light" 
		style="margin-top:5px;"
		class="fb_edge_widget_with_comment fb_iframe_widget"></fb:like>]]></content:encoded>
			<wfw:commentRss>http://earthpeople.se/labs/2011/07/wordpress-plugin-for-fetching-hashtag-images/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>setting up a wp dev environment on a live site</title>
		<link>http://earthpeople.se/labs/2010/05/setting-up-a-wp-dev-environment-on-a-live-site/</link>
		<comments>http://earthpeople.se/labs/2010/05/setting-up-a-wp-dev-environment-on-a-live-site/#comments</comments>
		<pubDate>Fri, 07 May 2010 14:42:04 +0000</pubDate>
		<dc:creator>peder fjällström</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://earthpeople.se/labs/?p=134</guid>
		<description><![CDATA[developing a wordpress site on the domain it eventually will live on has plenty of advantages (and ok, a few obvious disadvantages not covered in this post&#8230;). no need to fiddle around in the db looking for hardcoded urls to the development domain name and when it&#8217;s time to launch &#8211; you don&#8217;t need to [...]]]></description>
			<content:encoded><![CDATA[<p>developing a wordpress site on the domain it eventually will live on has plenty of advantages (and ok, a few obvious disadvantages not covered in this post&#8230;). no need to fiddle around in the db looking for hardcoded urls to the development domain name and when it&#8217;s time to launch &#8211; you don&#8217;t need to bother with db export/imports and stuff.</p>
<p>but &#8211; how to do this when there&#8217;s already an existing site live on this domain? actually it&#8217;s accomplished pretty easily.</p>
<p>make a folder on your live site, call it something like &#8220;dev&#8221;, put this into the index.php file within this folder:</p>
<pre>if(isset($_GET["mode"])&amp;&amp;$_GET["mode"]=="dev"){
	setcookie("dev","true", time()+3600*24*7, "/");
	header("Location: /dev");
}else if(isset($_GET["mode"])&amp;&amp;$_GET["mode"]=="live"){
	setcookie("dev", "", time()-1000, "/");
	header("Location: /dev");
}
if(isset($_COOKIE["dev"])){
	echo "DEVELOPMENT MODE IN YOUR BROWSER: ON | <a href="?mode=live">SWITCH</a>";
}else{
	echo "DEVELOPMENT MODE IN YOUR BROWSER: OFF | <a href="?mode=dev">SWITCH</a>";
}
</pre>
<p>when a user enters /dev on your live site and clicks ON, a cookie will be set. this cookie can then be checked for, and the server can make a decision wether to show the old site or the development site.</p>
<p>next upload wordpress the usual way to the docroot of the site, and install. make sure you don&#8217;t overwrite any existing files on the server when uploading.</p>
<p>lastly &#8211; let&#8217;s make that cookie work for us. open the file wp-blog-header.php, located in the docroot, and replace the contents with this:</p>
<pre>if(isset($_COOKIE["dev"])){ # does the user have the dev cookie?
	if ( !isset($wp_did_header) ) {
		$wp_did_header = true;
		require_once( dirname(__FILE__) . '/wp-load.php' );
		wp();
		require_once( ABSPATH . WPINC . '/template-loader.php' );
	}
}else{
	header("Location: currentindex.htm"); # no? then show the current page
}
</pre>
<p>one word of warning though &#8211; do not run wordpress auto update while developing the site this way. doing so will remove the cookie-check in wp-blog-header.php and exposing your development site to the world. should you need to run the automatic update, remember to make the changes to wp-blog-header.php again.</p>
<p>when you&#8217;re ready to go live with your shiny new wordpress site &#8211; just remove the cookie check from wp-blog-header.php and let the world in. that&#8217;s it folks!</p>
<fb:like 
		href="http://earthpeople.se/labs/2010/05/setting-up-a-wp-dev-environment-on-a-live-site/" 
		layout="standard" 
		show_faces="false" 
		width="450" 
		
		action="like" 
		colorscheme="light" 
		style="margin-top:5px;"
		class="fb_edge_widget_with_comment fb_iframe_widget"></fb:like>]]></content:encoded>
			<wfw:commentRss>http://earthpeople.se/labs/2010/05/setting-up-a-wp-dev-environment-on-a-live-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

