Clean Revisions »

Database getting a little fat? Burn that extra lagging fat instantly by clearing out old revisions via MySQL If you don’t have access to phpMyAdmin or can’t get into ssh mysql, throw it in your functions.php file If you want to disable revisions altogether, add the following to wp-config.php

Timely All In One Calendar Upgrade Permission Errors »

Trying to upgrade All-in-One Event Calendar, I’d continually get a You do not have sufficient permissions to access this page. error after the theme installation. The problem has nothing to do with permissions – it has to do with the /wp-content/themes-ai1ec/ folder likely being empty. If it is empty, copy the four sub folders from /wp-content/plugins/all-in-one-event-calendar/themes-ai1ec/ … continue reading »

Clean wp_head() output »

I’ve never liked the wp_head() output – WordPress’s default output is great for blogs and accessibility but if you’re a developer whose source-code is basically your resume, you don’t want irrelevant and un-indented code leaving skid marks behind the scenes. Throwing this in functions.php will remove most of it.

Increase WordPress Memory Limit »

Nothings worse then getting an email about someone being unable to upload a 6mb .PDF because it “exceeds the upload file size limit” Here’s the fix – but important note: raising postmaxsize increases the possibility of DoS attacks on your server: In functions.php add: If that doesn’t work, it could be a apache restriction, in .htaccess … continue reading »

WordPress Simple Cronjobs »

WordPress makes it super simple to run cronjobs.. To add one, just place the following code in your functions.php file and change the function/action prefix’s to your relevant plugin name/functions. A little break down for those unfamiliar: the first action runs mypluginschedulecron() on each load. If your cronjob (myplugincronjob) is not registered, it‘s scheduled into … continue reading »