Category Archives: Wordpress Hacks

Recommended Wordpress Hacks

How to Display WordPress Error Messages!

If for some reason you need to debug your WordPress theme, plugin, or just need to see all the error messages, you can add the following line in your wp-config.php file: define(‘WP_DEBUG’, true);

WordPress by default hides error messages so this will reveal them.

Leave a comment

How to Reset WordPress Password via MySQL Command Line!

For those of you wondering how to reset your WordPress admin password via MySQL command line, here’s how to do it:

Enter your MySQL command line with something like:

mysql -uroot -p

Then enter your password.

Once inside the MySQL command line do:

show databases;

and then find your database for the WordPress blog that you want to change password.

use mydatabase;

where mydatabase should be “your” database.

Then do:

update wp_users set user_pass =MD5(’typenewpasswordhere’) where id=1;

Click Here to Read Full Article

Leave a comment

WordPress Hack – How to Upgrade WordPress in 15 seconds using SSH/Wget!

I’ve been upgrading WordPress for almost 4 years now and since I manage about 20 blogs, I have learned to figure out how to upgrade your WordPress faster than ever using SSH and wget command.

For one, you will need a dedicated server/VPS that supports SSH. Otherwise you won’t be able to do it.

Here’s exactly how I do it.

1) I go to my WordPress directory using the command cd. ~ 2 seconds

2) I use

Click Here to Read Full Article

Leave a comment

WordPress Hack – WordPress the_post_thumbnail() Feature!

The new WordPress 2.9 released today features a new functionality for WordPress theme designers/coders to add post thumbnails by using the command the_post_thumnail().

Of course, don’t forget that the fact that in order to use this feature, you need to select an image under WordPress admin area and click on “Use as thumbnail”.

I have tried using on older images but seems like it won’t work on the older images. I am sure there’s a way to hack it so the first image of any post will be used as default thumbnail. But I think I will stick wi

Click Here to Read Full Article

Leave a comment

WordPress Hack – How to Get Simple Tags Plugin Working with WordPress 2.9!

For those of you who are getting errors with Simple Tags plugin when upgrading to WordPress 2.9, there’s a simple hack to make it work:

Edit the file simple-tags.php and change the following from this:

if ( strpos($wp_version, ‘2.7′) !== false || strpos($wp_version, ‘2.8′) !== false )

to this:

if ( strpos($wp_version, ‘2.7′) !== false || strpos($wp_version, ‘2.8′) !== false || strpos($wp_version, ‘2.9′) !== false )

I guess it’s because the

Click Here to Read Full Article

Leave a comment