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.
Tag: php
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 more)
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 more)
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 more)
You might also be interested in these:
web site security
i was listening to the replay of the teleconference hosted by WPSecurityLock (with special guests from GoDaddy) in light of the recent wave of website hacks that affected hundreds of sites not once, but twice. it was actually when they were talking to a customer (one who had been hit twice) that a concern was… Continue reading web site security
GoDaddy-hosted sites at risk — WordPress, Joomla!, Pligg, ZenCart, others…
Recently, there was a malicious attack on GoDaddy-hosted sites. It’s tough to track down the exact date of the original attack — I was first able to find a mention of it on Slashdot from 4/26, and I found a topic in the WordPress support forums that supported that approximate time. However, I also found… Continue reading GoDaddy-hosted sites at risk — WordPress, Joomla!, Pligg, ZenCart, others…
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.… Continue reading wordpress shortcodes kick ass (or: shortcodes, an affiliate marketer’s best friend)