Seasoned web developers know thereâ€™s more to WordPress than a blogging platform and if youâ€™re willing to get your hands dirty, you can tweak it enough to do just about anything. Smashing Magazineâ€™s Daniel Pataki has been around the block with this flexible collection of PHP scripts and has come away with quite the collection of tips.
You donâ€™t have to pull WordPress apart to get the most from it â€” often plug-ins can handle a great deal tasks not included in the base installation. But sometimes there isnâ€™t anything available to do exactly what you need.
For example, changing WordPressâ€™ default JPEG compression setting, which Pataki shows is very easy to accomplish. Itâ€™s set to 90 per cent normally, but photographers wanting to present their work artifact-free, without killing their bandwidth with PNGs, can up this value to 100 per cent.
Iâ€™m also a fan of custom database queries, another tidbit Pataki points out. All you have to do is call the
get-result() method of the
$wpdb object, and you can input any SQL you want. While itâ€™s recommended you use WordPressâ€™ provided objects to get data on posts, comments, etc., nothing beats going face-to-face with the database.
If youâ€™d like to read up on Patakiâ€™s other tricks, hit up the Smashing Magazine piece below.
Powerful WordPress Tips And Tricks [Smashing Magazine]