Have you ever wanted to know the ip address assigned to a domain according to your local server? I had this problem. I needed to get an IP address of a domain before the domain propagated. I was writing a custom...
I needed to transfer about 40 databases from a new clients server over to my hosting platform. When doing a couple database exports, I might use PHPMyAdmin to do the export. Heck, it’s convenient because I usually want to look around...
I gave a new client a totally wrong answer the other day. Well, it was right as far as I always knew. Scheduled posts have been a bane to a bunch of blogs I’ve seen. I’d thought that there were bugs...
This was posted to the wp-hackers list by Frank Bültge and I didn’t want to lose it. Here is how to add a new menu item to the admin bar: function wp_codex_search_form() { global $wp_admin_bar, $wpdb; if ( !is_super_admin() || !is_admin_bar_showing()...
AKA: Choosing and setting safe file permissions for a WordPress install. If you have ever watched a WordPress security presentation, you’ve heard the advice: Generally speaking, directories should be 755 and files should be 644. But the presenter never tells...
This is a simple issue that trips me up every now and then. Let’s say you have a directory of a couple dozen themes all in zip files. It would be a pain to type “unzip filename.zip” for every single one,...
It is easy to append a line to a file in BASH. I wrote a short script this morning that I can use to add a single line to my servers /etc/hosts pointing any domain I want at the loopback IP...
There was a long rant in the wp-testers mailing list today talking about how we weren’t helpful to someone who was getting a “500 Internal Server Error” message after installing WordPress. After complaining about our helpfulness and some bragging about past...
OK So, most theme developers are aware of what the loop is… it displays your WordPress posts. The one interesting thing about the loop is that it bounces in and out of the php and straight html output. So, most of...
If you host lots of different sites for people, one of the things you might want to know is what versions of WordPress each site is running. WordPress stores the version number in a variable named $wp_version which is set in...