Jun 19 2010

WordPress 3.0 images disappear after upgrade

I updated WordPress on here to version 3.0 and all my internal images disappeared from the posts.  After a painful search I figured out WordPress was camel-casing “Wordpress” to “WordPress.” So my WordPress was installed by my hosting service as Wordpress NOT WordPress. So all pictures were now stored in a directory that WordPress couldn’t see.  Changing the upload location with the Admin, Misc area didn’t work either.

Well anyway, on to fixing this.  This bug (yes its a bug in case some idiot thinks this was helpful) is known and being address by the good folks that work on WordPress or should I say WordPress.    Should be fixed by their next update. In the mean time, there is a plug-in which disables camel-casing in WordPress.  In the Admin section, add new plug-in and search for

“remove-wordpress-to-wordpress-filter” then install. Or go here to FTP it. http://wordpress.org/extend/plugins/remove-wordpress-to-wordpress-filter/

This should restore your images once active.

Another possible solution is getting rid of the  “capital_P_dangit” function. Add this code to your functions.php file.

remove_filter('the_content','capital_P_dangit');
remove_filter('the_title','capital_P_dangit');
remove_filter('comment_text','capital_P_dangit');

Apr 26 2010

Add Flag Counter to WordPress

Just a note for adding flag counter to WordPress.

1. Click image above to go to flagcounter.com.

2. Click “Get Yours” then customize it to match the look of your WordPress site.

3.  It generates 2 codes, take the “Code for websites” one and copy it to your clipboard.

4. Go to your WordPress dashboard, then Appearances, Widgets, drag a TEXT widget to the sidebar (or wherever you want this counter to appear).

5. After you click on TEXT box you just added, it will open up to allow a title and text. Don’t give it a title (looks better) and just paste code in text box and save.
5. You should now have a flag counter on your blog.  The site now has other option to paste to specific blog sites, but the above works for average users of WordPress.