Installing WordPress

I helped a client recently with some issues using WordPress. His issues were:

1. The WYSIWYG menu bar is not there to post messages in IE8 (it is there in Firefox, so its not the end of the world)

2. I can’t add tags to posts

3. I can’t drag widgets to the side bars

It sounded weird and definitely not right. I logged into the admin section and sure enough there were the issues as he described. I was surprised that there were no onscreen messages or errors presented by WordPress – just the lack of functionality. So, I logged out and then switched to Firefox with Firebug to do some poking around. It became clear looking through the Firebug console that some javascript files had not loaded and understandably that removed some functionality. In fact it wasn’t “some javascript files” it was a large amount of files and folders were missing from wp-admin and wp-includes.

I installed a copy of the latest WordPress into a spare folder on my machine and did some comparisons and then after drilling down to most of the relevant folders I uploaded the files and folders that were missing. I did a few checks in the admin panel and watched WordPress restore itself to full functionality.

The lesson here is be sure you’ve uploaded all the WordPress files with your FTP client – check for any errors in your FTP client log file after uploading and before closing the client.

WordPress and jQuery

A recent client project increased my exposure to integrating jQuery with WordPress.

For this client I had to design a filter interface enabling the user to choose a category and then pick a time range to search for rated posts (if not all time) and then finally the resultant posts are sorted by ratings. For the ratings the site already used the excellent plugin WP-Post ratings from Lester Chan. I made minor tweeks to this plugin so it could search for rated posts based on the date they were posted (rather than the date they were rated).

I utilised jQuery to perform the category highlighting, date selection and to inject the results in the page without a page refresh. Very neat and visually appealing I know, like most other developers that jQuery will be used more and more.

Upgrade WordPress to 2.8.5

I’ve had a few requests recently to upgrade WordPress on various client sites and there’s one thing I have to say – it really is easier than ever. There are occasional file and folder permission issues and when resolved the upgrade process is seamless. I found more information on the expected file permissions for WordPress.

If you are upgrading a site from a version pre 2.7 then it’s recommended to print and read the extended WordPress upgrade instructions where you will also find details on the simpler 2.7+ upgrades processes.

Upgrading this site was a breeze (thankfully) and I hope you experience the same level of ease.