First off, hi to anyone who’s been reading my occasional posts here. I’ve just redesigned my site and I’m hoping to blog here a little more regularly. I’ve opened up the comments, so please say hello; I’m especially interested in anyone else working on similar things in WordPress who has ideas to add to my own.
I’m going to post a series of collections of code snippets and tips from my recent work with WP. I’ll try and group them together logically, though I’ll certainly end up with a “bits and bobs” post. I’ll also try and keep each post updated as I learn new stuff.
Many of the tips come from my current habit, when developing custom WP themes for clients, of minimizing plugins. If I can add a bit of code to functions.php rather than install a plugin, I’ll often do the former. Plugins are of course fantastic for more complex modifications, or for offering specific hacks to people who aren’t comfortable editing their theme’s PHP. But if neither of these apply, and the modification is very simple, it seems that it’s worth just slipping the code into your custom theme. Many of these snippets are just included in my default theme “skeleton”, which I edit as necessary for each project.
I should also stress that not all of these are results of my own ingenuity. I’ll credit people where possible, but often I’ve forgotten the source of the code.
OK, without further ado, here’s some media-related stuff.
Read more »