0

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.

0

Web Ninja Google Analytics 1.0.4 Update

There were a couple fixes and tweaks on this one. The only major thing was that I changed the tracking script to the new faster async way of doing things. With this I was able to add in support for subdomains and multiple top-level domains with the same ID.

Also, I found out there are a hand full of hosting companies that don’t know how to permission their tmp directories which have caused problems with the Google API giving the dashboard widget the stats. So if the plugin can’t find a suitable tmp directory to use it uses the wordpress upload directory.

2

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. :(

Continue Reading »

3

How To Fix Incorrect Comment Counts In WordPress Post

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 »

1

Google Analytics WP Plugin 1.0.3

I was just giving everyone a heads up that they will be getting a notice that version 1.0.3 is available for update within the next hour or so. This is a small update to a bigger one that will happen later in the week. This update does not have the new sidebar widgets for analytics stats but the next one will.

Continue Reading »

Pages ... 1 2 3