<?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>Computer FAQs &#38; Tips &#187; Wordpress-Tip</title>
	<atom:link href="http://www.computer-faqs.com/tag/wordpress-tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.computer-faqs.com</link>
	<description>Answers to your Questions, Tips to enhance your Experience</description>
	<lastBuildDate>Sun, 16 Aug 2009 23:16:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Upgrade WordPress using Export and Import tool</title>
		<link>http://www.computer-faqs.com/2008/12/29/upgrade-wordpress-using-export-and-import-tool/</link>
		<comments>http://www.computer-faqs.com/2008/12/29/upgrade-wordpress-using-export-and-import-tool/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 06:25:07 +0000</pubDate>
		<dc:creator>Manet</dc:creator>
				<category><![CDATA[FAQ & Tip]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress-Tip]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=241</guid>
		<description><![CDATA[After looking through forums, I saw a lot of people (including myself) experienced a bad time with wordpress upgrade where thing doesn&#8217;t always happen in the way you expected to happen, either the whole thing get screwed up or not 100% working in the way it should be. The worst thing is they could not [...]]]></description>
			<content:encoded><![CDATA[<p>After looking through forums, I saw a lot of people (including myself) experienced a bad time with wordpress upgrade where thing doesn&#8217;t always happen in the way you expected to happen, either the whole thing get screwed up or not 100% working in the way it should be. The worst thing is they could not revert back the old working version.</p>
<p>If you have similar problem above, maybe this post is a great tip for you. This will also be a good post for my future reference. I have used this method when I upgrading this website (computer-faqs.com).</p>
<h3>Table of Content</h3>
<ul>
<li>Before upgrade</li>
<li>Upgrade
<ul>
<li>Export</li>
<li>Install</li>
<li>Import</li>
</ul>
</li>
<li>After upgrade</li>
<li>Prepare to go live</li>
<li>Simple Rollback</li>
<li>Summary</li>
</ul>
<p><span id="more-241"></span></p>
<h3>Before upgrade</h3>
<ul>
<li><strong>Learn a little bit about new version</strong>. Read release note of the new version (eg <a href="http://codex.wordpress.org/Version_2.7">wp 2.7 new features</a>) so you know what&#8217;s new and what to expect after upgarde.</li>
<li><strong>Plan, plan, plan</strong>
<ul>
<li>When to do it? work out the best time to bring your site down for a 10-20 min</li>
<li>How to do it? whichever method you use, it&#8217;s your choice</li>
<li>Is Roll-back strategy secured? (a <span style="color: #ff0000;"><strong>MUST</strong></span>). If things ever go wrong<strong> be sure</strong> you can revert it back</li>
<li>Who will do it? do it yourself or get help if required</li>
</ul>
</li>
<li><strong>Understand Requirements,</strong> if you chose to follow this instruction, it will require a new sub-domain created, please check first if you are able to do so.</li>
<li>Now, relax yourself, have a god mood, be ready to rock-n-roll and do not panic if thing goes wrong because this tutorial will not mess your existing version at all.</li>
</ul>
<h3>Upgrade</h3>
<p>Instead of following a <a href="http://codex.wordpress.org/Upgrading_WordPress">classic way</a> of upgrading, we are going to adapt a whole <strong>new way</strong> and <strong>worries-less </strong>about what said in this <a href="http://codex.wordpress.org/Upgrading_WordPress">instruction</a>. Just stay focused on a new version is all you need to do. Let me emphasise, this is not exactly an upgrade and polish the old chair but bring your existing wordpress content to a completely new comfortable chair.</p>
<ol>
<li><strong>Export</strong><br />
Export existing content from old/current wordpress version</p>
<ul>
<li>Login to your current wordpress Admin</li>
<li>Go to <em>Manage &gt; Export</em></li>
<li>Under <em>Options/Restrict Author</em>, select &#8220;<em>All Author</em>&#8221;
<div class="mceTemp">
<dl id="attachment_246" class="wp-caption alignnone" style="width: 299px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-246" title="Screenshot - Upgrade-wp-01" src="http://www.computer-faqs.com/wp-content/uploads/2008/12/screenshotupgrade-wp-01.png" alt="Screenshot - Upgrade-wp-01" width="289" height="157" /></dt>
</dl>
</div>
</li>
<li>Click <em>Download Export File</em></li>
<li>You should be prompted to save file (eg. <em>wordpress.2008-12-28.xml</em>)</li>
<li>Open your FTP program and connect to your hosting server
<ul>
<li>download <em>wp-confi.php</em> to your local disk and rename it to <em>wp-config-old.php</em></li>
<li>download <em>.htaccess</em> file (if you have one) to your local disk and rename it to<em> .htaccess-old</em></li>
</ul>
</li>
<li>Now make sure it&#8217;s still running fine, so you can rollback if required.</li>
</ul>
</li>
<li><strong>Install<br />
</strong>Install a new wordpress (we use version 2.7 for this demo)</p>
<ul>
<li>Connect to your server</li>
<li>Create a new folder <em>mysite-new</em></li>
<li>Login to your Domain Admin Panel and create new sub-domain pointing to above folder. For example <em>new.mysite.com</em> pointing to <em>mysite-new</em><br />
<blockquote class="noteimportant"><p><span style="color: #ff6600;"><strong>Note</strong></span>: The folder you created above will be renamed to <em>mysite</em> (same as your current domain) after you have completed the upgrade. So you are free to call it anything you like.</p></blockquote>
</li>
<li>Extract contents of WordPress 2.7</li>
<li>Copy file <em>wp-config-sample.php</em> to <em>wp-config.php</em></li>
<li>Open <em>wp-config.php</em> with text editor</li>
<li>Scroll to <em>MySQL settings</em> section and fill in the configuration the same as in <em>wp-config-old.php</em> you downloaded in step 1

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/** The name of the database for WordPress */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_NAME'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'putyourdbnamehere'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/** MySQL database username */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_USER'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'usernamehere'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/** MySQL database password */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_PASSWORD'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'yourpasswordhere'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/** MySQL hostname */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_HOST'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'localhost'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/** Database Charset to use in creating database tables. */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_CHARSET'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'utf8'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/** The Database Collate type. Don't change this if in doubt. */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_COLLATE'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
<li>Make changes to <em>Authentication Unique Keys</em> section as per instruction in the file</li>
<li>Scroll to <em>WordPress Database Table prefix</em> section and change this line

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$table_prefix</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'wp_'</span><span style="color: #339933;">;</span></pre></div></div>

<p>to</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$table_prefix</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'wp27_'</span><span style="color: #339933;">;</span></pre></div></div>

<blockquote class="noteimportant"><p><span style="color: #ff6600;"><strong>Note</strong></span>: Needless to create a new database. We are using the different tables set in the same database. Make sure value you set for <em>table_prefix</em> is not the same as your existing one or you are in big trouble.</p></blockquote>
</li>
<li>Upload all files to <em>mysite-new</em> folder</li>
<li>Now run the installation with wordpress <a href="http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install">Famous 5-Minute Install</a> instruction</li>
<li>Go to new WordPress Admin and delete default post and default comment, so it is cleaned and cleared.</li>
</ul>
</li>
<li><strong>Import<br />
</strong>Import contents from old wordpress to new</p>
<ul>
<li>In new WordPress Admin. Expand <em>Tools</em> &gt; Click on <em>Import</em>
<div class="mceTemp">
<dl id="attachment_261" class="wp-caption alignnone" style="width: 159px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-261" title="Screenshot - upgrade-wp-02" src="http://www.computer-faqs.com/wp-content/uploads/2008/12/screenshot-upgrade-wp-02.png" alt="Screenshot - upgrade-wp-02" width="149" height="121" /></dt>
</dl>
</div>
</li>
<li>Click on <em>WordPress </em>(Import posts, pages, comments, custom fields, categories, and tags from a WordPress export file)</li>
<li>In Import WordPress click on Browse button</li>
<li>Select your exported file in in step 1 (eg. <em>wordpress.2008-12-28.xml</em>)</li>
<li>Follow instructions on screen and select options that suits your requirements.</li>
</ul>
</li>
</ol>
<h3>After upgrade</h3>
<p>Now you have a new version of wordpress which is running concurrently with your old one but different web address. However both version containing the same content.</p>
<p>A new more steps below will be tuning your new wordpress to work the same way as your old one.</p>
<blockquote class="noteimportant"><p><span style="color: #ff6600;"><strong>Note</strong></span>: You can run both version of your sites at the same time for comparison purposes</p></blockquote>
<ul>
<li>Configure general settings to be the same as the old version</li>
<li>Configure Theme<br />
If you want to have your website look the same as the old one, just upload the same theme (make sure it&#8217;s compatible with the new version of wordpress</li>
<li>Configure Plugins<br />
WordPress 2.7 include an easier way to install plug-in where you can search and install on the fly, without having to download to your local disk first. Install those Plugins you had in the old version and enable them</li>
<li>Test and Compare the 2 version of your website until you are happy with the new one</li>
</ul>
<h3>Finally prepare to go live</h3>
<ul>
<li>Login to <em>new.mysite.com</em> Admin</li>
<li>Change <em>Blog address (URL) </em>back to your original url eg: <em>http://www.mysite.com</em></li>
<li>Click <em>Save Changes</em>, then ignore what appear on the screen for now</li>
<li>Close your Web Browser</li>
<li>FTP to your hosting server</li>
<li>Rename you old wordpress folder from <em>mysite</em> to <em>mysite-old</em></li>
<li>Rename your new wordpress folder from <em>mysite-new</em> to <em>mysite</em></li>
<li>Go to your existing domain url, eg. <em>www.mysite.com</em>, you should now see the new version of your wordpress</li>
<li>Now Login to Admin</li>
<li>Go to Settings &gt; Miscellaneous Settings</li>
<li>Check  <em>Store uploads in this folder</em> and change the value to correct path, otherwise you will have problem when you try to upload file latter.</li>
</ul>
<h3>Simple Rollback</h3>
<p>In any case if you require to rollback to your original site version, follow these steps</p>
<ul>
<li>FTP to your hosting server</li>
<li>Rename folder <em>mysite</em> to <em>mysite-new</em></li>
<li>Rename folder <em>mysite-old</em> to <em>mysite</em></li>
<li>Check  <em>Store uploads in this folder</em> and change the value to correct path, otherwise you will have problem when you try to upload file latter.</li>
<li>Finished!</li>
</ul>
<h3>Summary</h3>
<p>We are upgrading wordpress in a whole new way with worries-less and really simple to rollback. We are doing Export/Import instead of classic way of upgrading that comes with a lot worries and concerns.</p>
<p>If you find any part of this post faulty, mistakes or needs improvement please post your comment below, I will action it accordingly.</p>
<p>Please note that, this post is for references and additional helps only. You should read and understand it if it can be use for your requirement. Also refer to <a href="http://creativecommons.org/licenses/by/2.5/au/">CC License</a> on the sidebar before you use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2008/12/29/upgrade-wordpress-using-export-and-import-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to embed HTML Code in WordPress post?</title>
		<link>http://www.computer-faqs.com/2008/12/27/how-to-post-html-code-in-wordpress/</link>
		<comments>http://www.computer-faqs.com/2008/12/27/how-to-post-html-code-in-wordpress/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 05:35:54 +0000</pubDate>
		<dc:creator>Manet</dc:creator>
				<category><![CDATA[FAQ & Tip]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Text-Conversion]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress-Tip]]></category>

		<guid isPermaLink="false">http://www.computer-faqs.com/?p=193</guid>
		<description><![CDATA[Occasionally I am writing a post about HTML which I need to post the code to illustrate my argument (I guess I am not alone). By default, WordPress will convert unrecognized uses of &#60; and &#62; into characters which actually look like &#38;lt; and &#38;gt;, which will &#8220;look&#8221; like a &#60; and a &#62; when [...]]]></description>
			<content:encoded><![CDATA[<p>Occasionally I am writing a post about HTML which I need to post the code to illustrate my argument (I guess I am not alone).</p>
<blockquote><p>By default, WordPress will convert unrecognized uses of &lt; and &gt; into characters which actually look like <tt>&amp;lt;</tt> and <tt>&amp;gt;</tt>, which will &#8220;look&#8221; like a &lt; and a &gt; when posted.  Or, if it finds the use of an <a class="external text" title="http://en.wikipedia.org/wiki/HTML_element" href="http://en.wikipedia.org/wiki/HTML_element">HTML tag</a> within the post, it will use the tag like it is HTML and you will have funky looking text and a messed up layout. (quoted from <a href="http://codex.wordpress.org/Writing_Code_in_Your_Posts">codex discussion</a>)</p></blockquote>
<p>I find this very frustrating when my post doesn&#8217;t appear to the way I wanted it to.</p>
<h4>How to get around it?</h4>
<p>You just simply convert your html open and close bracket &#8220;&lt; and &gt;&#8221; to &#8220;<tt>&amp;lt;</tt> and <tt>&amp;gt;</tt>&#8220;. However you are not going to do it one by one or do search-replace in text editor, it will be time consuming.</p>
<p>I wrote a simple Java Swing program which does just what I mention above plus it can convert html character code back to html code in case you need to make any changes.<br />
<span id="more-193"></span></p>
<div class="mceTemp">
<dl id="attachment_208" class="wp-caption alignnone" style="width: 310px;">
<dt class="wp-caption-dt"><a href="http://www.computer-faqs.com/wp-content/uploads/2008/12/screenshot-1230349025.png" rel="lightbox[193]"><img class="size-medium wp-image-208" title="Screenshot-HTMLTx" src="http://www.computer-faqs.com/wp-content/uploads/2008/12/screenshot-1230349025-300x211.png" alt="Screenshot-HTMLTx" width="300" height="211" /></a></dt>
</dl>
</div>
<p>Download: <a href="http://www.computer-faqs.com/wp-content/uploads/2008/12/htmltx.zip">htmltx.zip</a></p>
<h4>How this program work?</h4>
<p>Simple, there are 2 text area in the panel, top one for HTML codes, bottom for character codes. Whichever code you want to convert, just simply past it into the text area and press appropirate command button.</p>
<h4>Post HTML code</h4>
<ul>
<li>Copy character codes from bottom text area</li>
<li>Come to your wordpress editor and switch to HTML mode</li>
<li>Past it in there. (do not wrap this code with pre tag or it will not work)</li>
</ul>
<h4>Example</h4>
<p>See <a href="/2008/12/27/how-to-include-css-style-sheet-file-in-html-document/">this post</a></p>
<div class="admedia">
Advertisement » <a href="http://www.amazon.com/gp/search?ie=UTF8&amp;keywords=WordPress&amp;tag=cofa-20&amp;index=books&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325">WordPress Book</a> for your further reading</div>
]]></content:encoded>
			<wfw:commentRss>http://www.computer-faqs.com/2008/12/27/how-to-post-html-code-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
