WebLaCarte

Quality Web Development


Author Archive

Accessing Values by Referrence in a Foreach Loop

Here’s a fun little trick. When looping over an array, you can access the values by reference. Instead of:

foreach ($things as $i => $thing) { $things[$i] = strtolower($thing); }

You can reference the values of the array:

foreach ($things as &$thing) { $thing = strtolower($thing); }

It’s a small difference, but it comes in handy once in a while, especially [...]

No Comments

Serving Multiple WordPress Blogs from a Single Installation (Without WP MU)

I’m serving multiple WordPress blogs on separate domains from a single installation, but without using WordPress MU (multi-user). Yes, I realize you can probably do everything I’ve done here by using WPMU. However, in my situation:

I had already installed 2 versions of WordPress and didn’t want to start all over. I wanted to easily share plugins [...]

No Comments

Testing FeedWordPress Post Syndication

I am planning to use Phillip Harrington dot com to post multiple topics. I also want these topics fed to other sites.

To that end I found the amazing FeedWordPress plugin, and so far I am magnificently happy with it. It does everything I dreamed and more. The software is brilliant. Use it and donate handsomely [...]

No Comments