Tech geek. Life geek.

Category: WordPress Notes (Page 5 of 5)

Upgrade WordPress 2.2.1 on Dreamhost without One-Click installs

Now I want to upgrade Dreamer’s blog to WordPress 2.2.1 from 2.2.0.
This blog is hosted on Dreamhost.
I’d like to keep the record of upgrade.
1) Backup your database.
Dreamhost backup the MySQL database every day. So if you have no post in the past 24 hours, you don’t need to do a manual backup through PHPmyAdmin.
2) Backup ALL your WordPress files in your WordPress directory.
Just ssh to the server, and run the command to backup all files.

tar -cvzf dreamer-2.2.0

3) Deactivate ALL your Plugins.
I sign in as administrator, and deactivate all plugins.
4) Download and extract the WordPress package from
Download the 2.2.1 package, I downloaded zip file and uncompressed it.
5) Upload all filles to the Server
6) Run upgrade.
There is no database update needed.
7) Activate the Plugins I used before.

WordPress 2.2.1 is out

It is a bug fix release for the 2.2 series. Just released this morning.
There is a long list of bugs fixed.
Some highlights are shown below:
# Atom feed validation fixes
# XML-RPC fixes
# Widget backward compatibility fixes
# Widget layout fixes for IE7
# Page and Text Widget improvements
And WordPress 2.2.1 is not just a bug fix release. It improve the security protect with following items.
* Remote shell injection in PHPMailer
* Remote SQL injection in XML-RPC Discovered by Alexander Concha.
* Unescaped attribute in default theme
The Upgrade steps are same as before. And I may make another post about it.

Embed a video into the WordPress

Some time we want to put video on our blog. The code to embeded it is very complicated, because so many different video types.
Today I tried Embedded Video with Link. It makes it simple and easy to finish this step.
I just download it from the link above. Installed it as the regular plugin.
The option>Embedded Video, I can setup the Video object width between 250-800 to fit in the width of Blog layout.
It supports following video portal:
YouTube, Google Video, dailymotion, MyVideo, Clipfish, Sevenload, Revver, Metacafé, Yahoo! Video, ifilm, MySpace Video, Brightcove, aniBOOM, vimeo, GUBA, Garage TV, GameVideos, vSocial
So after install this plugin, to embed the video is much easy.
1) Prepare Video file.
2) Upload it to Video host site, such as YouTube.
3) Get video ID.
4) When write a new post, click the Icon
5) Pick the YouTube and enter the video ID.
6) Click Insert button.
7) Finish the post and click Publish.
That’s a painless publish withou touch the html code.

WordPress 2.2 is released now

WordPress 2.2
There are some new features or improvements:
* WordPress Widgets allow you to easily rearrange and customize areas of your weblog (usually sidebars) with drag-and-drop simplicity. This functionality was originally available as a plugin Widgets are now included by default in the core code, significantly cleaned up, and enabled for the default themes.
* Full Atom support, including updating our Atom feeds to use the 1.0 standard spec and including an implementation of the Atom Publishing API to complement our XML-RPC interface.
* A new Blogger importer that is able to handle the latest version of Google’s Blogger product and seamlessly import posts and comments without any user interaction beyond entering your login.
* Infinite comment stream, meaning that on your Edit Comments page when you delete or spam a comment using the AJAX links under each comment it will bring in another comment in the background so you always have 20 items on the page. (I know it sounds geeky, but try it!)
* We now protect you from activating a plugin or editing a file that will break your blog.
* Core plugin and filter speed optimizations should make everything feel a bit more snappy and lighter on your server.
* We’ve added a hook for WYSIWYG support in a future version of Safari.
Here you will find the full announcement.

Url standard of Social site link on WordPress

I put some social network button on site. The Html Validator always tell me some URL is not correct.
I have to code it my self to replace the original code.
Original code is as shown below:

<!-- -->
 <a href="<?php the_permalink() ?>&amp;title=<?php the_title ?>" title="Add to"></a>
 <!-- / -->

I change it to:

$title = wp_title('',FALSE);
$tt = urlencode($title);
$tt = substr($tt,2);
<!-- -->
<a href="<?php the_permalink() ?>&amp;amp;title=<?php echo $tt; ?>" title="Add to"></a>
<!-- / -->

Now the link is perfect, without warning from HTML Validator.
Perfect code.

WPMU can not signup on IE with 404 error

Yes, I learn to install WordPress MU on the 1and1 server.
I finished the installation very smoothly. Only one issue found by my friend George yesterday. He told me that the wp-signup.php does not work.
Actually, I have no problem on my computer with Firefox.
I just have an idea, it may be the IE. Ok, I click the ugly IE icon to load The wp-sign-up.php return the 404 error.
It is so strange.
I doing some search by Google “wp-signup.php ie 404”.

Continue reading

WordPress upgrade from 2.1.2 to 2.1.3

The latest version, WordPress Version 2.1.3, was released to the public on April 3, 2007.
Now I upgrade one blog from WordPress 2.1.2 to 2.1.3.
I recorded upgrade steps here as notes.
1) Backup your database.

Click “phpMyAdmin” button of the specific database.

On the left panel, click the name of database.

Now, the right frame of the window, show me the tables of this database, click Export.

Click “Select all” to select all tables, and check the check box as the screen above. Select “Save as file”, then click “go” button.
Save the database exporting file.
2) Backup ALL your WordPress files in your WordPress directory.
I used the Dreamweaver to download all files under WordPress installation folder.
3) Deactivate ALL your Plugins.
I sign in as administrator, and deactivate all plugins.
4) Download and extract the WordPress package from
Download the 2.1.3 package, I downloaded zip file and uncompressed it.
5) Upload all filles to the Server
6) Run upgrade.
Because of I upgraded from 2.1.2, only one step to finish this upgrade.
7) Activate the Plugins I used before.

SimpleTag plugin

I am a newbie of WordPress.
To implement a tag system for this site. I try some different tag plugin.
bunny-tags, UTW, and simple-tagging.
Finally, I choose Simple Tagging. It is really simple to install it on WordPress.
The installation step:
1) Download package, Download v1.6 file
2) Decompress it and put the files into your plugins directory (/wp-content/plugins/).
3) Enable the plugin in the WordPress Plugins admin page.
4) Go to WordPress Admin > Tags > Tag Options, adjust the options and save.
5) Go to WordPress Admin > Options > Permalinks and press the button to update the permalink structure.
The Tag Options has lots of configuration. Be carefully when you modify them.
I want to show my Tag Cloud codes for you.

Continue reading

Sitemap plugin for WordPress

Today I add a new category in DavidYin’s Blog.
WordPress Notes
Now I would introduce this Sitemap plugin for WordPress.
The native WP doesnot include sitemap template file.
I found this plugin
Google Sitemap Generator for WordPress
It is very easy to install and have more advance features in options.
Let me show you how to play it.
0. Download file and decompress it.
1. Upload the full directory into your wp-content/plugins directory
2. Activate it in the Plugin options
3. Edit or publish a post, or click on Rebuild Sitemap on the Option/Sitemap’s
Look at the following Sitemap Administration Interface. There are so many configurations.

Do we need to modify it?
No! Only if you want. Default values should be ok!
I like this plugin and recommend it to all WordPress users. This sitemap will be accepted by Google webmasters and Yahoo site explorer.
The default site-map will be something like
This is a good site of Chinese Recipes.

Newer posts »

© 2020 David Yin's Blog

Theme by Anders NorenUp ↑