WordPress

No. 731 / We Don’t Need No Hooks

Excuse the title, please. It’s a ref­er­ence to an old Shaq song (yes, a Shaq song) and I couldn’t pass up the oppor­tu­nity to use it. As a staunch sup­porter of the won­der­ful Word­Press plat­form, I often find myself tout­ing the won­ders of Word­Press and bad­mouthing other pop­u­lar and sim­i­lar PHP-based solu­tions — most notably Dru­pal, note the…
Read more →

No. 735 / Add Relative Links to WordPress Menus

Really quick, here’s a func­tion and cor­re­spond­ing hook that will loop through the links in your menu, fig­ure out which ones don’t begin with a “/” or “http” and prepend them with your site’s URL and a “/”:

No. 627 / If you ain’t first, you’re last

Not post­ing much, am I? No. But I am writ­ing a lot of code. I guess this is as good a time as any to pub­li­cize the fact that I’ve been work­ing on a Word­Press theme called WP-Bedrock that will (hope­fully) soon be avail­able through the Word­Press Theme Direc­tory. One of the major dri­ving forces…
Read more →

No. 251 / Rethinking My Plugin Stash

No offense to the devel­op­ers behind these plu­g­ins. Great work. In fact, if asked, I’d rec­om­mend all of these plu­g­ins… I’m just not going to be using them any­more because they don’t meet my cur­rent needs. I think I’m going to have to cre­ate one plu­gin to rule them all (well,…
Read more →

No. 235 / WordPress, I can’t get you out of my head tag

Prob­a­bly my corni­est title to date. Word­Press plu­g­ins have a bad habit of sneak­ing their way into your head tag, pol­lut­ing it with moronic markup, super­flu­ous spaces, and crazy calls. If you’re any­thing like me, then you care about the order of the ele­ments in your pages, and you also want to…
Read more →