<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>WP Garage</title>
	
	<link>http://wpgarage.com</link>
	<description>wordpress tricks, hacks, and tips</description>
	<lastBuildDate>Tue, 15 May 2012 11:49:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/wordpressgarage" /><feedburner:info uri="wordpressgarage" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>wordpressgarage</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Data Serialization, WordPress, and my new best friend</title>
		<link>http://feedproxy.google.com/~r/wordpressgarage/~3/GXIefibv_E8/</link>
		<comments>http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/#comments</comments>
		<pubDate>Thu, 03 May 2012 13:00:16 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[data serialization]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[site migration]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1296</guid>
		<description><![CDATA[<p>Recently, Miriam wrote about Data Serialization and what a pain in the tuchus it can be to migrate a site that has serialized links in the database. So, today, when I migrated one of our client&#8217;s sites from our staging server to the live/production server, I was frustrated that some of the widgets weren&#8217;t showing [...]</p><p>This post was originally published at <a href="http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/">Data Serialization, WordPress, and my new best friend</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>Recently, Miriam wrote about <a href="http://wpgarage.com/tips/data-portability-and-data-serialization-in-wordpress/">Data Serialization</a> and what a pain in the <a href="http://en.wiktionary.org/wiki/tuchus">tuchus</a> it can be to migrate a site that has serialized links in the database.</p>
<p>So, today, when I migrated one of our client&#8217;s sites from our staging server to the live/production server, I was frustrated that some of the widgets weren&#8217;t showing up properly after my usual Search and Replace of the old URL to the new URL in the database, yet excited that I could read her post to find a solution. Frustrexcited, if you will.</p>
<p>Here are the solutions I tried and read on to see which one actually worked:</p>
<p><a href="http://wordpress.org/extend/plugins/wp-live-server-deploy/">WP Live Server Deploy</a>: This plugin was featured on <a href="http://wpmu.org/automate-wordpress-migration-with-wp-live-server-deploy/">wpmu.org</a>, looked like a really good solution. The plugin claimed to quickly migrate your development/staging site to your live/production site, including changing all the old URLs to new URLs. Well, it sounded great, but.. it didn&#8217;t work.  After I entered the new site&#8217;s FTP information into the plugin settings, the FTP info was verified. But when I clicked the &#8220;Automate Deployment&#8221; button, the plugin couldn&#8217;t &#8220;determines the remote capabilities of the server&#8221;.  Then I tried to do a manual backup using this plugin and that didn&#8217;t work either. Next.</p>
<p><a href="http://petesaia.com/work/peach/">Peach</a> - An online tool that lets you drag-and-drop a .sql file into the page and set a new domain. I was skeptical because it looked too easy. When I dropped in my .sql file it said there were 0 serialized links. Boo.</p>
<p> <a href="http://wordpress.org/extend/plugins/wp-migrate-db/">WP Migrate DB </a>- My new best friend. Please meet WP Migrate DB. No, he/she doesn&#8217;t have a fancy, memorable name, but I definitely wanted to hug and high-five this plugin after it did what it said it would do. It changed all the old URLs to new URLs in the database, including fixing serialized links, and lets you download the new SQL file. I was so happy not to have to mess with any Search and Replace plugins or SQL queries in PHPMyAdmin. </p>
<p>This post was originally published at <a href="http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/">Data Serialization, WordPress, and my new best friend</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=GXIefibv_E8:Im05T777uZY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=GXIefibv_E8:Im05T777uZY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=GXIefibv_E8:Im05T777uZY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=GXIefibv_E8:Im05T777uZY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=GXIefibv_E8:Im05T777uZY:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/wordpressgarage/~4/GXIefibv_E8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/</feedburner:origLink></item>
		<item>
		<title>How to fix apostrophes turning into slashes in WordPress</title>
		<link>http://feedproxy.google.com/~r/wordpressgarage/~3/RuaYEqwzBvk/</link>
		<comments>http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 13:58:52 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[apostrophe]]></category>
		<category><![CDATA[backslash]]></category>
		<category><![CDATA[custom options]]></category>
		<category><![CDATA[slash]]></category>
		<category><![CDATA[strip]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1266</guid>
		<description><![CDATA[<p>We build our sites with a custom theme options panel in the Dashboard so that clients can manage as much of their site on their own as possible. All seemed fine and dandy until the client threw in an apostrophe! The chutzpah. Can&#8217;t you just use &#8220;We will&#8221; instead of &#8220;We&#8217;ll&#8221;? The problem was that [...]</p><p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/">How to fix apostrophes turning into slashes in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>We build our sites with a custom theme options panel in the Dashboard so that clients can manage as much of their site on their own as possible. All seemed fine and dandy until the client threw in an apostrophe! The chutzpah. Can&#8217;t you just use &#8220;We will&#8221; instead of &#8220;We&#8217;ll&#8221;?</p>
<p>The problem was that when an apostrophe was entered into a custom text label in the options panel, a slash decided to come along for the ride. Example: Instead of seeing &#8220;We&#8217;ll send you a link&#8221;, the site displayed &#8220;We\&#8217;ll send you a link&#8221;. I searched around and finally found this post, <a href="http://curtismchale.ca/2010/12/09/using-stripslashes-with-theme-options/">Using stripslashes() with Theme Options</a> which explains that you need to use the stripslashes function when you return the content stored in the custom text.</p>
<p>Basically, you just wrap stripslashes() around the get_option like so:</p>
<p>If you had &lt;?php  echo get_option(&#8216;cgn_<wbr>404_text&#8217;); ?&gt;</wbr></p>
<p>it would now be:</p>
<p>&lt;?php  echo stripslashes(get_option(&#8216;cgn_<wbr>404_text&#8217;)); ?&gt;</wbr></p>
<p>In your custom-text.php file, you&#8217;ll probably use something like this:</p>
<div>&lt;?php echo  stripslashes($selected_book_<wbr>description); ?&gt;</wbr></div>
<div> </div>
<div>No more slashtastrophies!</div>
<div> </div>
<p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/">How to fix apostrophes turning into slashes in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=RuaYEqwzBvk:NhPx1yM-nWw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=RuaYEqwzBvk:NhPx1yM-nWw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=RuaYEqwzBvk:NhPx1yM-nWw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=RuaYEqwzBvk:NhPx1yM-nWw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=RuaYEqwzBvk:NhPx1yM-nWw:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/wordpressgarage/~4/RuaYEqwzBvk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://wpgarage.com/code-snippets/how-to-fix-apostrophes-turning-into-slashes-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>How to list subpages with a title and excerpt in WordPress</title>
		<link>http://feedproxy.google.com/~r/wordpressgarage/~3/geg3COJZAYM/</link>
		<comments>http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 08:55:33 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[child page]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[parent page]]></category>
		<category><![CDATA[subpages]]></category>
		<category><![CDATA[title]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1268</guid>
		<description><![CDATA[<p>We developed a site that has really rich subpages (child pages) but the parent page is mostly a blank placeholder that directs people to the subpages. Instead of merely leaving a blank parent page, we wanted to give a preview of the content on each of the subpages. I found the code for how to [...]</p><p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/">How to list subpages with a title and excerpt in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>We developed a site that has really rich subpages (child pages) but the parent page is mostly a blank placeholder that directs people to the subpages. Instead of merely leaving a blank parent page, we wanted to give a preview of the content on each of the subpages. I found the code for how to do it in this post, <a href="http://wpguru.co.za/templates/page/display-title-excerpt-of-child-pages/ ">Display title &amp; excerpt of child pages</a>.  </p>
<pre class="wp-code-highlight prettyprint">get_results(&quot;SELECT * FROM $wpdb-&amp;gt;posts WHERE post_parent = &quot;.$post-&amp;gt;ID.&quot; AND post_type = 'page' ORDER BY menu_order&quot;, 'OBJECT'); ?&amp;gt;</pre>
<p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/">How to list subpages with a title and excerpt in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=geg3COJZAYM:HXcpvUcVwG0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=geg3COJZAYM:HXcpvUcVwG0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=geg3COJZAYM:HXcpvUcVwG0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=geg3COJZAYM:HXcpvUcVwG0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=geg3COJZAYM:HXcpvUcVwG0:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/wordpressgarage/~4/geg3COJZAYM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://wpgarage.com/code-snippets/how-to-list-subpages-with-title-excerpt-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>Data portability and data serialization in WordPress</title>
		<link>http://feedproxy.google.com/~r/wordpressgarage/~3/CbY8n616Q2g/</link>
		<comments>http://wpgarage.com/tips/data-portability-and-data-serialization-in-wordpress/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 13:46:51 +0000</pubDate>
		<dc:creator>Miriam Schwab</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[data serialization]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[serialization]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1276</guid>
		<description><![CDATA[<p>Over at illuminea, we’ve been migrating WordPress sites for years. So we thought we’d seen it all when it came to WordPress migration. And yet, recently we encountered an issue that we had never dealt with before, that puts a snag in the ease with which you can move WordPress sites: data serialization. One of [...]</p><p>This post was originally published at <a href="http://wpgarage.com/tips/data-portability-and-data-serialization-in-wordpress/">Data portability and data serialization in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>Over at <a href="http://illuminea.com" target="_blank">illuminea</a>, we’ve been migrating WordPress sites for years. So we thought we’d seen it all when it came to WordPress migration. And yet, recently we encountered an issue that we had never dealt with before, that puts a snag in the ease with which you can move WordPress sites: data serialization.</p>
<p>One of the reasons we love WordPress is because it’s so future-proof. What I mean by that is that once you have created a WordPress site, you aren’t stuck where you are for the following reasons:</p>
<ul>
<li>Content is separate from form so at any point you can completely redesign your site while retaining content and link structure. This is important to ensure you don’t lose traffic from search engines and inbound links.</li>
<li>As long as the WordPress software continues to be developed, it will continue to support modern web technologies so users are not left with an archaic system that, for example, adores IE7 but doesn’t know what HTML5 is.</li>
<li>Your site is portable. You need to move a site to another server, or even another domain name? No problem. A few steps related to find-and-replace, exporting and importing the database, and setting up global 301 redirects (if you’ve changed domains) and you’re there.</li>
</ul>
<p>All the above is true, except the data portability point. It’s not quite as true as I thought it was.</p>
<h2>Data serialization and its impact on data portability</h2>
<p>(I am a big newbie when it comes to data serialization, so the following is based on what I’ve managed to learn over the while and could very well be inaccurate/wrong.)</p>
<p>It seems that developers use data serialization in order to improve performance or efficiency in a database. Instead of creating a new table for data, or storing data in a table which could end up having wasteful empty fields, you can keep all the data in an array in one field. This leads to saved space and simplified SQL statements. Serialized data is stored and recovered using PHP’s <a href="http://us2.php.net/manual/en/function.serialize.php" target="_blank">serialize()</a> and <a href="http://us2.php.net/manual/en/function.unserialize.php" target="_blank">unserialize()</a> functions. <a href="http://terriswallow.com/weblog/2008/php-serialize-unserialize-whats-it-do-whats-it-for/" target="_blank">Terri Swallow explains</a> how using serialized data for her multi-user plugin helped save her from creating hundreds of new options for every new user created.</p>
<p>Here&#8217;s an example of serialized data from <a title="WordPress Serializing Data" href="http://nacin.com/2010/04/18/wordpress-serializing-data/" target="_blank">Andrew Nacin</a>:</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>
<div><code>$data</code> <code>= </code><code>array</code><code>( </code><code>'apple'</code><code>, </code><code>'banana'</code><code>, </code><code>'orange'</code> <code>);</code></div>
<div><code>echo</code> <code>serialize( </code><code>$data</code> <code>);</code></div>
<div><code>// Result is a string we can unserialize into an array:</code></div>
<div><code>// a:3:{i:0;s:5:"apple";i:1;s:6:"banana";i:2;s:6:"orange";}</code></div>
</div>
</td>
</tr>
</tbody>
</table>
<p>But there are serious drawbacks to using serialized data. One problem is that you can’t run a MySQL query on serialized data. The data would have to be pulled out of the table via PHP, unserialized, and then searched using PHP instead of MySQL (thanks to <a href="http://www.catchmyfame.com/2009/09/29/introduction-to-php%E2%80%99s-serialize-function/" target="_blank">Catch My Fame</a> for explaining this). So let’s say you are storing user data in serialized format, but you want to find out how many of your users are from Australia, you can’t get that info easily.</p>
<p>A serious problem, in my opinion, is the impact serialization has on data portability. It makes it near-impossible to port a WordPress site from one domain to another without losing data. Another possible, yet unlikely issue, is if you need to port data from WordPress into another programming language – admittedly a rare occurrence, but a possible one that needs to be considered.</p>
<p>There are developers out there who are very frustrated by the use of serialized data:</p>
<p>An <a href="http://il.php.net/manual/en/function.serialize.php#107717" target="_blank">anonymous comment</a> left on the PHP manual entry for serialize():</p>
<blockquote>
<p>Please! please! please! DO NOT serialize data and place it into your database. Serialize can be used that way, but that&#8217;s missing the point of a relational database and the datatypes inherent in your database engine. Doing this makes data in your database non-portable, difficult to read, and can complicate queries. If you want your application to be portable to other languages, like let&#8217;s say you find that you want to use Java for some portion of your app that it makes sense to use Java in, serialization will become a pain in the buttocks. You should always be able to query and modify data in the database without using a third party intermediary tool to manipulate data to be inserted…That&#8217;s not to say serialize() is useless. It&#8217;s not&#8230;Just don&#8217;t abuse serialize because the next guy who comes along will have a maintenance or migration nightmare.</p>
</blockquote>
<p><a href="http://alexscammon.com/2011/06/migrating-wordpress-blogs-fixing-the-serialization/" target="_blank">Alexander Scammon:</a> “WordPress does a silly thing.  It has serialized data inside its database.”</p>
<p>Serialized data usage that can have a serious impact on WordPress portability:</p>
<ul>
<li>Some widget data (though for some reason we’ve never had issues retaining widgets via a database dump)</li>
<li>Some theme settings</li>
<li>Plugin data</li>
</ul>
<p>It was related to serialized plugin data that we had our first encounter with data serialization. We had installed a plugin to help a client manage a technical issue on their site without having to get too technical. They entered hundreds of entries in the plugin, but upon moving the site from development to production, the data disappeared. By that point, there was no way to recover it unfortunately, but we had definitely learned a painful, important lesson.</p>
<h2>So what do we do?</h2>
<p>Some suggestions:</p>
<ol>
<li>Theme and plugin developers: please seriously consider whether the benefits of serializing your data outweigh the potential future problems it could cause.</li>
<li>Theme and plugin developers: if you must use serialized data, please try to make sure there’s some way to export and import the data. Even a simple .csv export is better than nothing.</li>
<li>WordPress users: try to ascertain before using a theme or plugin whether the data is stored in a serialized format.</li>
</ol>
<p>But let’s say you find yourself with a database that includes serialized data. Here are some tools created by generous souls that might be able to help you port your data without losing it:</p>
<p><a href="http://petesaia.com/work/peach/" target="_blank">Peach</a> – an online utility that aims to deal with the fact that WordPress stores URLs in serialized format, which makes it hard to move a site from one domain to another, or from staging to production. To use this tool (which works best in Chrome) ou drag-and-drop an .sql file into the square in the middle of the page, and set a new domain.</p>
<p><a href="http://interconnectit.com/124/search-and-replace-for-wordpress-databases/" target="_blank">WordPress Search and Replace Tool</a> – this script can also handle multiply nested serializations and multi-byte Unicode changes, which is important now that internationalized domain names are allowed. The code will work for any platform that stores PHP serialized arrays in a MySQL database (Drupal, Joomla, etc.). You must delete the script from your server once you’re finished with it.</p>
<p><a href="http://www.bangheadonwall.net/?attachment_id=227" target="_blank">fix_serialization.php</a> – Not much description provided with this tool, but Alex Scammon provides instructions in <a href="http://wpgarage.com/tips/data-portability-and-data-serialization-in-wordpress/#comment-63684">his comment below</a>.</p>
<p><a title="WP Migrate DB" href="http://wordpress.org/extend/plugins/wp-migrate-db/" target="_blank">WP Migrate DB</a> &#8211; this is a plugin that exports your database as a MySQL data dump, does a find and replace on URLs and file paths, then allows you to save it to your computer.  It even takes into account serialized data and updates the string length values. (thanks <a href="http://somadesign.ca/" target="_blank">Matt Wiebe</a>)</p>
<p>After trying these tools, we wrote an <a href="http://wpgarage.com/tips/data-serialization-wordpress-and-my-new-best-friend/">update on data serialization</a>.</p>
<p>This post was originally published at <a href="http://wpgarage.com/tips/data-portability-and-data-serialization-in-wordpress/">Data portability and data serialization in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=CbY8n616Q2g:WjcMurlK0OA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=CbY8n616Q2g:WjcMurlK0OA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=CbY8n616Q2g:WjcMurlK0OA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=CbY8n616Q2g:WjcMurlK0OA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=CbY8n616Q2g:WjcMurlK0OA:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/wordpressgarage/~4/CbY8n616Q2g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/tips/data-portability-and-data-serialization-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		<feedburner:origLink>http://wpgarage.com/tips/data-portability-and-data-serialization-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>Disclaimer popups before sending an email or submitting a comment using simple jQuery in WordPress</title>
		<link>http://feedproxy.google.com/~r/wordpressgarage/~3/fJ5r_n48DcM/</link>
		<comments>http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/#comments</comments>
		<pubDate>Wed, 28 Mar 2012 14:27:05 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[contact]]></category>
		<category><![CDATA[disclaimer]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[mailto]]></category>
		<category><![CDATA[popup]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1209</guid>
		<description><![CDATA[<p>Several of our clients requested that we add popup disclaimers before someone sends an email to the site admin or before they submit a comment. Here&#8217;s a screenshot of what we&#8217;re going to do: Case 1: Add a Contact Us link to the navigation menu that triggers a disclaimer popup.   Once a visitor clicks OK, [...]</p><p>This post was originally published at <a href="http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/">Disclaimer popups before sending an email or submitting a comment using simple jQuery in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>Several of our clients requested that we add popup disclaimers before someone sends an email to the site admin or before they submit a comment. Here&#8217;s a screenshot of what we&#8217;re going to do:</p>
<p><img class="alignnone" title="popups" src="http://wpgarage.com/wp-content/uploads/2012/03/popups.png" alt="" width="384" height="211" /></p>
<h3><strong>Case 1: Add a Contact Us link to the navigation menu that triggers a disclaimer popup.</strong>  <br />
Once a visitor clicks OK, open the visitor&#8217;s email client using the mailto: function.</h3>
<ol>
<li>In the WordPress dashboard, go to Appearance > Menus and add a custom link. <br /> <img title="menumailto" src="http://wpgarage.com/wp-content/uploads/2012/03/menumailto.png" alt="" width="280" height="269" /> </li>
<li>Go to Screen Options and make sure the &#8220;CSS Classes&#8221; checbox is checked</li>
<li>In the URL field, put <em>mailto:youremail@yoursite.com </em></li>
<li>In the CSS Class, put <em>show-confirm-popup</em></li>
<li>Open up header.php</li>
<li>Check to see if you already have the jQuery library loaded on your site. If not, add the following somewhere between the opening and closing head tags 
<pre class="wp-code-highlight prettyprint">&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js&quot;&gt;&lt;/script&gt;</pre>
</li>
<li>Add the following code between the opening and closing head tag. Make sure to change the text of the disclaimer.
<pre class="wp-code-highlight prettyprint">&lt;script type=&quot;text/javascript&quot;&gt;$(document).ready(function(){ $('.show-confirm-popup a').each(function(){ $(this).click(showConfirmPopup); }); }); function showConfirmPopup(){ var confirmation_text = 'Change this text. By clicking &quot;OK,&quot; you agree that you have read and understand this notice.'; return confirm(confirmation_text); }   $(function(){ }); &lt;/script&gt;</pre>
</li>
</ol>
<h3>  <strong>Case 2: Add the popup disclaimer to any link.  </strong></h3>
<ol>
<li>Add the following link structure anywhere on your site.
<pre class="wp-code-highlight prettyprint">&lt;a onclick=&quot;return showConfirmPopup();&quot; href=&quot;mailto:youremail@yoursite.com&quot;&gt;Contact Us&lt;/a&gt;; </pre>
</li>
<li>Copy the code from Step 6 and 7 from Case 1 above into header.php.</li>
</ol>
<h3><strong>Case 3: Add the popup disclaimer before a comment is submitted</strong></h3>
<ol>
<li>Open Comments.php</li>
<li>Do a search for the word &#8220;submit&#8221;</li>
<li>Add the onClick parameter to the Submit button. It will look something like this:
<pre class="wp-code-highlight prettyprint">
&lt;input name=&quot;submit&quot; type=&quot;submit&quot; id=&quot;submit&quot; tabindex=&quot;5&quot;   value=&quot;Submit Comment&quot; onClick=&quot;return showConfirmCommentPopup();&quot; /&gt;</pre>
</li>
<li>Copy the code from Step 6 and 7 from Case 1 into header.php and also in header.php, add the following function. Remember to change the text.
<pre class="wp-code-highlight prettyprint">function showConfirmCommentPopup(){ var confirmation_text = 'Change this text. By clicking &quot;OK,&quot; you agree that you have read and understand this notice.'; return confirm(confirmation_text); }  </pre>
<p>&nbsp;</p>
</li>
</ol>
<p>Big thank you to <a href="http://sinapsa.co.il">Elisha</a>!</p>
<p>This post was originally published at <a href="http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/">Disclaimer popups before sending an email or submitting a comment using simple jQuery in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=fJ5r_n48DcM:cPUEARliP6I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=fJ5r_n48DcM:cPUEARliP6I:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=fJ5r_n48DcM:cPUEARliP6I:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=fJ5r_n48DcM:cPUEARliP6I:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=fJ5r_n48DcM:cPUEARliP6I:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/wordpressgarage/~4/fJ5r_n48DcM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://wpgarage.com/code-snippets/disclaimer-popups-before-sending-an-email-or-submitting-a-comment-using-simple-jquery/</feedburner:origLink></item>
		<item>
		<title>How to localize a Hebrew website’s Dashboard with WordPress Multisite</title>
		<link>http://feedproxy.google.com/~r/wordpressgarage/~3/fnDVelkJ1i0/</link>
		<comments>http://wpgarage.com/tips/how-to-localize-a-hebrew-websites-dashboard-with-wordpress-multisite/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 12:01:43 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[WordPress as CMS]]></category>
		<category><![CDATA[Hebrew]]></category>
		<category><![CDATA[languages]]></category>
		<category><![CDATA[localize]]></category>
		<category><![CDATA[multisite]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1175</guid>
		<description><![CDATA[<p>Many of our clients request English and Hebrew websites and ever since WordPress 3.0 made WordPress Multisite a breeze to install, we&#8217;ve been using it so that clients can manage all their sites from one Dashboard. Logically, our clients want the Hebrew website to have a Hebrew Dashboard. However, out of the box, WordPress Multisite defaults to [...]</p><p>This post was originally published at <a href="http://wpgarage.com/tips/how-to-localize-a-hebrew-websites-dashboard-with-wordpress-multisite/">How to localize a Hebrew website&#8217;s Dashboard with WordPress Multisite</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>Many of our clients request English and Hebrew websites and ever since WordPress 3.0 made <a href="http://codex.wordpress.org/Create_A_Network">WordPress Multisite</a> a breeze to install, we&#8217;ve been using it so that clients can manage all their sites from one Dashboard.</p>
<p>Logically, our clients want the Hebrew website to have a Hebrew Dashboard. However, out of the box, WordPress Multisite defaults to English, and needs a bit of tweaking to localize the Dashboard into the language of your choice.</p>
<p>(Friendly warning: if you don&#8217;t change the Hebrew Dashboard into Hebrew, the post/page Editor is really problematic and usually messes up alignment and styling on the site.)</p>
<p>So here&#8217;s how to localize a site within WordPress Multisite into Hebrew, but you can apply the same general rules for any language.</p>
<p>1.<a href="http://he.wordpress.org/"><img title="wordpresshebrew" src="http://wpgarage.com/wp-content/uploads/2011/11/wordpresshebrew.png" alt="" width="459" height="66" /></a></p>
<p>Download Hebrew WordPress from the <a href="http://he.wordpress.org/">Hebrew WordPress website</a> and copy the language folder or use this <a href="http://wpgarage.com/wp-content/uploads/2011/11/languages.zip">zip file of the language folder (from WordPress version 3.2.1</a>).  <strong>Upload the language folder</strong> into you&#8217;re site&#8217;s wp-content folder. </p>
<p>2. Add the following to wp-config.php: <strong>define (&#8216;WPLANG&#8217;, &#8216;he_IL&#8217;);</strong></p>
<p><a href="http://wpgarage.com/wp-content/uploads/2011/11/wpconfigscreenshot.png"><img title="wpconfigscreenshot" src="http://wpgarage.com/wp-content/uploads/2011/11/wpconfigscreenshot.png" alt="" width="580" height="167" /></a></p>
<p>3. Go into your Network Admin Area by clicking in the top right corner on Howdy, YourName and click on <strong>Network Admin</strong></p>
<p><img class="size-full wp-image-1184 alignnone" title="howdy" src="http://wpgarage.com/wp-content/uploads/2011/11/howdy.png" alt="" width="161" height="118" /></p>
<p>4. In the left Navigation menu, click on Sites &gt; <strong>All Sites</strong></p>
<p><img title="allsites" src="http://wpgarage.com/wp-content/uploads/2011/11/allsites.png" alt="" width="147" height="82" /></p>
<p>5. On the Hebrew site, click <strong>Edit</strong></p>
<p><a href="http://wpgarage.com/wp-content/uploads/2011/11/hebrewedit.png"><img title="hebrewedit" src="http://wpgarage.com/wp-content/uploads/2011/11/hebrewedit.png" alt="" width="319" height="76" /></a></p>
<p>&nbsp;</p>
<p>6. Once you&#8217;re in the Edit Site area, click on <strong>Settings</strong></p>
<p><img class="size-full wp-image-1179 alignnone" title="sitesettings" src="http://wpgarage.com/wp-content/uploads/2011/11/sitesettings.png" alt="" width="488" height="440" /></p>
<p>7. Once you&#8217;re in the Settings tab, search for the line &#8220;WPLANG&#8221; and fill in the language reference code such as he_IL.</p>
<p><img class="size-full wp-image-1177 alignnone" title="heil" src="http://wpgarage.com/wp-content/uploads/2011/11/heil.png" alt="" width="411" height="51" /></p>
<p>&nbsp;</p>
<p>Or, as Andrea pointed out, you can go into the Hebrew site&#8217;s General Settings and switch the language from there.<img class="size-full wp-image-1198 alignnone" title="sitelang" src="http://wpgarage.com/wp-content/uploads/2011/11/sitelang.png" alt="" width="389" height="122" /></p>
<p>&nbsp;</p>
<p>That&#8217;s it!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div>
<div> </div>
</div>
<p>This post was originally published at <a href="http://wpgarage.com/tips/how-to-localize-a-hebrew-websites-dashboard-with-wordpress-multisite/">How to localize a Hebrew website&#8217;s Dashboard with WordPress Multisite</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=fnDVelkJ1i0:oWe_xbBSv_A:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=fnDVelkJ1i0:oWe_xbBSv_A:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=fnDVelkJ1i0:oWe_xbBSv_A:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=fnDVelkJ1i0:oWe_xbBSv_A:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=fnDVelkJ1i0:oWe_xbBSv_A:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/wordpressgarage/~4/fnDVelkJ1i0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/tips/how-to-localize-a-hebrew-websites-dashboard-with-wordpress-multisite/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://wpgarage.com/tips/how-to-localize-a-hebrew-websites-dashboard-with-wordpress-multisite/</feedburner:origLink></item>
		<item>
		<title>How to Re-enable and Allow Comments in Older Posts in WordPress</title>
		<link>http://feedproxy.google.com/~r/wordpressgarage/~3/u0D37imxe44/</link>
		<comments>http://wpgarage.com/tips/allow-comments-in-old-posts-wordpress/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 22:17:59 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[comments]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1160</guid>
		<description><![CDATA[<p>We had a client come to us and ask how to re-enable comments on older posts. I started searching around and found 2 ways of allowing comments on many posts at once. 1. Use the built-in WordPress Bulk Edit feature. This feature was introduced back in version 2.7 but only now did I fall in [...]</p><p>This post was originally published at <a href="http://wpgarage.com/tips/allow-comments-in-old-posts-wordpress/">How to Re-enable and Allow Comments in Older Posts in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>We had a client come to us and ask how to re-enable comments on older posts. I started searching around and found 2 ways of allowing comments on many posts at once.</p>
<h3>1. Use the built-in <a href="http://lorelle.wordpress.com/2011/04/22/cleaning-up-post-tags-with-wordpress-bulk-edit/">WordPress Bulk Edit feature</a>.</h3>
<p>This feature was introduced back in version 2.7 but only now did I fall in love with it!  It allows you to batch edit lots of information for multiple posts at one time: change categories, modify the author, change the post status, and most importantly (for me, right now), open or close comments.</p>
<p>To use it, go to:</p>
<ul>
<li>Posts &gt; All Posts</li>
<li>Select the posts you want to edit by checking off the checkboxes next to the post title.</li>
<li>Click on the Bulk Actions dropdown menu. </li>
<li>Select Edit and click Apply. It&#8217;s a bit scary to have to click on Apply before you&#8217;ve made changes but once you build up the courage, it&#8217;s worth it! No changes will happen yet.</li>
<li>In the Comments dropdown, select Allow.</li>
<li>If you want to edit more than the default 20 posts per page in the admin screen, you can go to Screen Options in the top right corner and change the number of Posts Displayed per page.</li>
<li>Done! However, I had to check a few posts to make sure that it actually worked. I think that there is something buggy in the feature because it only worked some of the time. Maybe there is a max of how many posts can be bulk edited at once.</li>
</ul>
<p style="text-align: center;"><img class="size-full wp-image-1163 aligncenter" title="bulkedit" src="http://wpgarage.com/wp-content/uploads/2011/11/bulkedit.png" alt="" width="523" height="160" /></p>
<p>This method is good if you don&#8217;t want to get into the database. My only complaint is that it&#8217;s a bit time consuming and there&#8217;s no way of seeing a list of all the posts that have comments open or closed.</p>
<h3>2. Do some SQL work in the Database</h3>
<p>The other option for allowing comments globally in WordPress is to get into the PHPMyAdmin (ugh) and run <a href="http://digwp.com/2010/08/wordpress-sql-comments/">a script to open all comments</a>.  Although it can be scary to get into the database and run SQL queries, it is the most accurate way of making sure the comments are open on all your posts.</p>
<p>Here&#8217;s the SQL query to run to open all comments:</p>
<pre class="wp-code-highlight prettyprint">&lt;code&gt;UPDATE wp_posts SET comment_status = 'open';&lt;/code&gt;</pre>
<p>As you can see, each method has its pros and cons. Making this change within the dashboard is not as daunting but you don&#8217;t feel like you have as much control over the process. Also, it seems not to work 100% of the time, for some reason. And going into the database is, well, daunting. But otherwise, at least you know that it does what it&#8217;s supposed to do. It&#8217;s very possible that the dashboard direction is one we&#8217;d explain to a client but that if this is something we&#8217;re working on, we&#8217;ll prefer to go the database route.</p>
<p>This post was originally published at <a href="http://wpgarage.com/tips/allow-comments-in-old-posts-wordpress/">How to Re-enable and Allow Comments in Older Posts in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=u0D37imxe44:3o4y0dhyrNs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=u0D37imxe44:3o4y0dhyrNs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=u0D37imxe44:3o4y0dhyrNs:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=u0D37imxe44:3o4y0dhyrNs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=u0D37imxe44:3o4y0dhyrNs:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/wordpressgarage/~4/u0D37imxe44" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/tips/allow-comments-in-old-posts-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://wpgarage.com/tips/allow-comments-in-old-posts-wordpress/</feedburner:origLink></item>
		<item>
		<title>How to embed a .wmv file in WordPress</title>
		<link>http://feedproxy.google.com/~r/wordpressgarage/~3/ZHlaG9i9b_o/</link>
		<comments>http://wpgarage.com/tips/how-to-embed-wmv-in-wordpress/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 16:56:23 +0000</pubDate>
		<dc:creator>Deena Levenstein</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[embed wmv in wordpress]]></category>
		<category><![CDATA[embedding in wordpress]]></category>
		<category><![CDATA[wmv]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1121</guid>
		<description><![CDATA[<p>A client recently asked us how they could embed .wmv files in their WordPress site so that it plays in a video player. Interestingly, we&#8217;re so used to working with video websites like YouTube and Vimeo which allow easy embedding by just pasting the URL into the editor that we&#8217;d never had to deal with [...]</p><p>This post was originally published at <a href="http://wpgarage.com/tips/how-to-embed-wmv-in-wordpress/">How to embed a .wmv file in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>A client recently asked us how they could embed .wmv files in their WordPress site so that it plays in a video player. Interestingly, we&#8217;re so used to working with video websites like YouTube and Vimeo which allow <a title="The ultimate guide to embedding HTML and iframes in WordPress" href="http://wpgarage.com/tips/embed-html-iframes-wordpress/">easy embedding by just pasting the URL into the editor</a> that we&#8217;d never had to deal with this issue before. But after some trial by our awesome CEO Miriam Schwab and, well, really not much error, we quickly figured it out. So, without further ado, here is the way to embed .wmv files into WordPress posts and pages:</p>
<p>1. Install, activate and configure the <a href="http://wordpress.org/extend/plugins/tinymce-advanced/" target="_blank">TinyMCE Advanced</a> plugin. This plugin allows you to add useful buttons to the WYSIWYG through a drag and drop settings page.</p>
<p>2. In the settings (Settings &gt;TinyMCE Advanced), drag the &#8220;Insert Movie&#8221; button into the WYSIWYG:</p>
<p><img class="aligncenter size-full wp-image-1146" title="tinymce buttons arrangement" src="http://wpgarage.com/wp-content/uploads/2011/11/tinymce-buttons-arrangement.png" alt="" width="718" height="185" /></p>
<p>3. Save changes.</p>
<p>4. Upload the video file of your choice to your WordPress site through Media &gt; Add New.</p>
<p>5. Copy the URL of that video:</p>
<div><img class="aligncenter size-full wp-image-1144" title="wordpress media embedding wmv files" src="http://wpgarage.com/wp-content/uploads/2011/11/wordpress-media-embedding-wmv-files.png" alt="" width="647" height="430" /></div>
<p>6. Open up the editor of the post/page where you&#8217;d like to embed the video (if you aren&#8217;t there already).</p>
<p>7. Click on the button which says &#8220;Insert/edit embedded media&#8221; when you hover over it:</p>
<p><img class="size-full wp-image-1127 aligncenter" title="embed video icon" src="http://wpgarage.com/wp-content/uploads/2011/10/embed-video-icon.png" alt="" width="30" height="29" /></p>
<div>You&#8217;ll get to this popup window:</div>
<p><img class="size-full wp-image-1128 aligncenter" title="insert edit embedded media" src="http://wpgarage.com/wp-content/uploads/2011/10/insert-edit-embedded-media.png" alt="" width="309" height="372" /></p>
<p>5. Under &#8220;Type,&#8221; choose &#8220;Windows Media.&#8221;</p>
<p>6. Paste the URL in File/URL field.</p>
<p>7. Click &#8220;Insert.&#8221;</p>
<p>8. Save Draft or Publish.</p>
<p>9. Verify that it worked in the front end.</p>
<p>Note that the user&#8217;s browser has to have the Windows Media Player plug-in, and it needs to run to play the video in a player.</p>
<div>Here&#8217;s an example of an action-packed .wmv video:</div>
<div><object width="320" height="240" classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"><param name="url" value="http://dw4.convertfiles.com/files/0372823001320684458/snail%20moving%20along%20on%20sidewalk.wmv" /><param name="url" value="http://dw4.convertfiles.com/files/0372823001320684458/snail%20moving%20along%20on%20sidewalk.wmv" /><embed width="320" height="240" type="application/x-mplayer2" src="http://dw4.convertfiles.com/files/0372823001320684458/snail%20moving%20along%20on%20sidewalk.wmv" url="http://dw4.convertfiles.com/files/0372823001320684458/snail%20moving%20along%20on%20sidewalk.wmv" /></object></div>
<div> </div>
<div>The exciting news&#8230; By taking advantage of this function in WordPress, you could actually embed any video from around the web as long as you have the .wmv URL. Which might not be the nicest thing, but it&#8217;s possible.</div>
<div> </div>
<div>Enjoy!</div>
<p>This post was originally published at <a href="http://wpgarage.com/tips/how-to-embed-wmv-in-wordpress/">How to embed a .wmv file in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=ZHlaG9i9b_o:MfLe7HMrJ1E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=ZHlaG9i9b_o:MfLe7HMrJ1E:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=ZHlaG9i9b_o:MfLe7HMrJ1E:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=ZHlaG9i9b_o:MfLe7HMrJ1E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=ZHlaG9i9b_o:MfLe7HMrJ1E:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/wordpressgarage/~4/ZHlaG9i9b_o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/tips/how-to-embed-wmv-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>

		<feedburner:origLink>http://wpgarage.com/tips/how-to-embed-wmv-in-wordpress/</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/wordpressgarage/~5/MgIiDROCWl0/snail%20moving%20along%20on%20sidewalk.wmv" length="31281213" type="video/asf" /><feedburner:origEnclosureLink>http://dw4.convertfiles.com/files/0372823001320684458/snail%20moving%20along%20on%20sidewalk.wmv</feedburner:origEnclosureLink></item>
		<item>
		<title>What happened to the “search engines blocked” notification in WordPress 3.2?</title>
		<link>http://feedproxy.google.com/~r/wordpressgarage/~3/vHb87ic-pDc/</link>
		<comments>http://wpgarage.com/news-views/search-engines-blocked-notification-gone-wordpress-32/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 23:12:26 +0000</pubDate>
		<dc:creator>Miriam Schwab</dc:creator>
				<category><![CDATA[News & Views]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://wpgarage.com/?p=1073</guid>
		<description><![CDATA[<p>WordPress site owners have an option under Settings &#62; Privacy to keep their site open to visitors, but block search engines. Very handy when developing a site, or managing a private site that you don’t want the world to see, but you don’t want to have to deal with logins either. We often use that [...]</p><p>This post was originally published at <a href="http://wpgarage.com/news-views/search-engines-blocked-notification-gone-wordpress-32/">What happened to the &#8220;search engines blocked&#8221; notification in WordPress 3.2?</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>WordPress site owners have an option under Settings &gt; Privacy to keep their site open to visitors, but block search engines. Very handy when developing a site, or managing a private site that you don’t want the world to see, but you don’t want to have to deal with logins either.</p>
<p>We often use that setting on sites under development…and more than once forgot to open the site to search engines once the site was launched. Ouch.</p>
<p>Around WordPress 3.1, a handy feature was added where a line of text was added in the admin next to the name of the site saying “Search Engines Blocked” when search engines were, you guessed it, blocked. Like this:</p>
<p><a href="http://wpgarage.com/wp-content/uploads/2011/07/search-engines-blocked-word.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="search-engines-blocked-word" src="http://wpgarage.com/wp-content/uploads/2011/07/search-engines-blocked-word_thumb.jpg" alt="search-engines-blocked-word" width="322" height="40" border="0" /></a></p>
<p>For some reason, in WordPress 3.2 that notification line has disappeared. Here’s that same site, search engines still blocked, but upgraded to 3.2:</p>
<p><a href="http://wpgarage.com/wp-content/uploads/2011/07/no-search-engines-blocked-n.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="no-search-engines-blocked-n" src="http://wpgarage.com/wp-content/uploads/2011/07/no-search-engines-blocked-n_thumb.jpg" alt="no-search-engines-blocked-n" width="283" height="30" border="0" /></a></p>
<p>That notification was a life saver. Does anyone know where it went? And why it was taken away? I miss it and want it back. Sniff.</p>
<p>This post was originally published at <a href="http://wpgarage.com/news-views/search-engines-blocked-notification-gone-wordpress-32/">What happened to the &#8220;search engines blocked&#8221; notification in WordPress 3.2?</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=vHb87ic-pDc:wNJkKhpN5Iw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=vHb87ic-pDc:wNJkKhpN5Iw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=vHb87ic-pDc:wNJkKhpN5Iw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=vHb87ic-pDc:wNJkKhpN5Iw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=vHb87ic-pDc:wNJkKhpN5Iw:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/wordpressgarage/~4/vHb87ic-pDc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/news-views/search-engines-blocked-notification-gone-wordpress-32/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://wpgarage.com/news-views/search-engines-blocked-notification-gone-wordpress-32/</feedburner:origLink></item>
		<item>
		<title>How to link author image to their previous posts in WordPress</title>
		<link>http://feedproxy.google.com/~r/wordpressgarage/~3/oT8GaNPOdzQ/</link>
		<comments>http://wpgarage.com/code-snippets/how-to-link-author-image-to-their-previous-posts-in-wordpress/#comments</comments>
		<pubDate>Tue, 31 May 2011 06:15:48 +0000</pubDate>
		<dc:creator>Rebecca Markowitz</dc:creator>
				<category><![CDATA[Code Snippets]]></category>

		<guid isPermaLink="false">?p=1031</guid>
		<description><![CDATA[<p>It seemed so simple and straightforward to link an author&#8217;s image to their page of previous posts like http://wpgarage.com/author/Rebecca/.&#160;But for some reason I couldn&#8217;t find the solution easily with the default WordPress template tags. Template tags that I had used last time I needed this functionality were deprecated. Here&#8217;s what I did: First, I set [...]</p><p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-link-author-image-to-their-previous-posts-in-wordpress/">How to link author image to their previous posts in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p>]]></description>
			<content:encoded><![CDATA[<p>It seemed so simple and straightforward to link an author&#8217;s image to their page of previous posts like http://wpgarage.com/author/Rebecca/.&nbsp;But for some reason I couldn&#8217;t find the solution easily with the default <a href="http://codex.wordpress.org/Template_Tags">WordPress template tags</a>. Template tags that I had used last time I needed this functionality were deprecated.<br />
<a href="http://wpgarage.com/wp-content/uploads/2011/05/profile.png"><img title="profile" src="http://wpgarage.com/wp-content/uploads/2011/05/profile-e1306420276233.png" alt="" width="450" height="101"></a></p>
<p><strong>Here&#8217;s what I did:</strong></p>
<ol>
<li>First, I set up the author image using the <a href="http://wordpress.org/extend/plugins/sem-author-image/">Author Image plugin</a> to give our client an easy way to manage thumbnails of each author from the user&#8217;s profile settings.</li>
<li>Then I started looking for a way to link the author&#8217;s image to their archive. When I couldn&#8217;t find an easy answer in the WordPress template tags, I remembered that WPGarage has that feature in the footer area of each post! So I checked out the code of WPGlide theme (the theme we use on this site by <a href="https://www.e-junkie.com/ecom/gb.php?ii=662749&amp;c=ib&amp;aff=16393&amp;cl=11384">Solostream</a>), found the code I needed and modified it.Here&#8217;s the code I used:</li>
</ol>
<p>&lt;a href=&#8221;&lt;?php bloginfo(&#8216;url&#8217;); ?&gt;/author/&lt;?php  the_author_meta(&#8216;user_login&#8217;); ?&gt;/&#8221;&gt; <strong>&lt;?php the_author_image();  ?&gt; </strong>&lt;/a&gt;</p>
<p>This post was originally published at <a href="http://wpgarage.com/code-snippets/how-to-link-author-image-to-their-previous-posts-in-wordpress/">How to link author image to their previous posts in WordPress</a> on <a href="http://wpgarage.com">WP Garage</a> - <a href="http://wpgarage.com">WP Garage - wordpress tricks, hacks, and tips</a>.</p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=oT8GaNPOdzQ:eZpvuOqMRik:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=oT8GaNPOdzQ:eZpvuOqMRik:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=oT8GaNPOdzQ:eZpvuOqMRik:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/wordpressgarage?a=oT8GaNPOdzQ:eZpvuOqMRik:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/wordpressgarage?i=oT8GaNPOdzQ:eZpvuOqMRik:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/wordpressgarage/~4/oT8GaNPOdzQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://wpgarage.com/code-snippets/how-to-link-author-image-to-their-previous-posts-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://wpgarage.com/code-snippets/how-to-link-author-image-to-their-previous-posts-in-wordpress/</feedburner:origLink></item>
	</channel>
</rss>

