Tag: php
-
Switching between PHP versions
I recently learned how to run multiple versions of PHP on my local machine and switch between them using Homebrew. It’s pretty straightforward, actually.
-
WP_Query pagination problems? Here’s a hack
It happens every time I use WP_Query. I get a beautiful-looking custom WP_Query. Then I try to add pagination and everything goes to hell. I’ve spent hours looking up solutions. Every time. Nine times out of ten, they don’t work. And for no discernible reason. Here’s a hack that worked for me, and is mostly… (read…
-
Multiple loops, post formats, and content types in a single home page template
Wow. That title is a mouthful. And given the improbable combination of different content types, I’m actually somewhat surprised that I did, in fact, pull off just that. In working on a client site for a Christian ministry in the Democratic Republic of Ghana, I set out today to create this: What we have here… (read…
-
How to add customizable header images and customizable backgrounds to your WordPress theme
One of the coolest new features of WordPress 3.0 is the ability to customize the site header image and background color or image. The custom header actually goes one step further and lets you set a unique header for each of your pages. This means that you can create unique headers that tie into the… (read…
-
wordpress shortcodes kick ass (or: shortcodes, an affiliate marketer’s best friend)
this one will make the internet marketing peeps smile… let’s say you have some kind of text or phrase that you use a lot. it could be anything, but let’s — for the sake of argument, and for showing the full power of this code — assume that the text or phrase includes a link.…