WordPress Tip: Automatically Empty Trash
Your Trash is a function that was added in WordPress 2.9. When an item (post, comment, etc) is deleted, it goes in Trash instead of being permanently removed. You can easily tell your WordPress blog to automatically empty trash every X days.
Just open your wp-config.php file (located at the root of your WordPress install) and paste the following code:
define('EMPTY_TRASH_DAYS', 10 );
The second parameter is when to empty trash, in days. So in this example it will empty your trash automatically every 10 days. And if we want to completely disable the trash? You can put a zero as your second parameter.
WordPress 3.0.3 udpate! And a Google Pagerank API?!?
Looks like WordPress is getting a little update happy again. Last time this happened they updated every 3 days for like 2 weeks… At least this time the updates are only 7 days apart. :/ Anyways, both my released plugins have no problem with the new update and are working just fine.
Now on to the good stuff! A nice fairy tale.
Once upon a time, in a land not very far away, Google had a PageRank API where you could query their system for a website’s Google PageRank. Well, for reasons I’m not going to go into details with, they removed that API. This left a lot of people sad and not knowing what to do.

My name is Josh Fowler. Actually, that’s Josh “Uber” Fowler to some. :) I have been a Web Developer for well over 10 years now. And in those 10 years I can say that I may have learned a thing or twelve. I have decided that it was about time to start sharing some of the things that I have learned and a few of the things that I have made. Hopefully they will all show up here in my personal sandbox and I hope you enjoy them all!
WordPress has a smart way of making sure the comment count that is displayed on your site loads quick without actually having to query the comment table. Which means faster load times. Here is how they do it:
Continue Reading »