Better WordPress multisite image URLs

I've been running a personal WordPress multisite instance for several years now, and I use it to host a variety of personal and organizational sites, including this one. I really like the ways it allows me to standardize and consolidate my management of WordPress as a tool, while still allowing a lot of flexibility for customizing my sites just as though they were individual self-hosted sites.

For the most part, my use of WordPress in multisite/network mode doesn't have any user-facing implications, especially since I use the WordPress MU Domain Mapping plugin to map custom domain names to every site I launch. As far as anyone visiting my sites knows, it's a standalone WordPress site that looks and works like any other.

The one exception to this has been the URL structure for images and other attachments that I upload to any site hosted on this multisite instance. Whereas the typical WordPress image URL might look like this:

https://example.com/wp-content/uploads/2019/03/my_image.jpg

on a multisite instance, there is an directory structure added in to separate each site's uploads into its own subdirectory:

https://example.com/wp-content/uploads/sites/25/2019/03/my_image.jpg

where 25 might be the site's unique site ID within that multisite setup.

There's nothing wrong with this approach and it certainly makes technical sense if you have lots of sites on your multisite instance that are either subdirectories or subdomains of the main multisite domain.

Continue reading "Better WordPress multisite image URLs"

Hiding authors and users in WordPress

As an advanced publishing tool, WordPress typically defaults to displaying information about the author behind a given post or page on a WordPress site. But sometimes you want to build a website that has a more "singular" editorial identity, and that doesn't appear to be authored and managed by multiple people, even if it is. I see this regularly with corporate brands, political organizations, larger not-for-profits, and advocacy groups where the identity of a post or page's author could distract from the content being shared.

So how do you keep WordPress from revealing the author information - names, usernames and more - for the administrative users of your site? Here are a few tips, aimed at WordPress developers comfortable customizing their sites through changing the theme and plugin code.

Continue reading "Hiding authors and users in WordPress"

5 ways to use Twitter without being a Twitter user

Beautiful TreeI have a lot of friends and colleagues who are rightly skeptical of the value that Twitter brings to the world, but who are also aware that there are things "happening" there that might be of interest.  Often the perception is that they either have to break down and sign up for a Twitter account to use it full force, or that they have to miss out on those happenings altogether.  Here I offer those folks (and perhaps you) a list of five ways you can use Twitter without actually being a Twitter user:

Continue reading "5 ways to use Twitter without being a Twitter user"

Using the iPhoneOS SDK on older PPC Macs

I'm just getting started with developing applications for the iPhone / iPod Touch, and one of the first real hurdles I encountered was that Apple didn't make it easy by default to use their iPhoneOS SDK on non-Intel Macs. With some Googling around I was was able to find a variety of articles that mentioned workarounds, but the comprehensive solution was spread across lots of blog post comments, forum postings, etc. So, for my own reference and hopefully as assistance to anyone else who might be in the same boat, I'm consolidating the steps here.

Continue reading "Using the iPhoneOS SDK on older PPC Macs"

5 ways to maximize Q&A time at public lectures

I attend a variety of public lectures at Earlham College here in Richmond, and while the speakers are usually quite satisfactory in both content and style, I find myself repeatedly shocked at how poorly some of the students conduct themselves in the Question and Answer segment of the programs. Self-absorbed, oft-incoherent, rambling diatribes are unfortunately a recurring experience, and even just a few minutes of this can completely change the sense of how the event went overall - and perhaps determine what impression the guest speaker takes out into the world about our community. (Surely neither I nor my peers were like that when I was a student there, right?)

I always make a mental note to write down some suggestions for improving this situation, and now that the academic year is ramping up again with plenty of lectures and convocations on the schedule, I thought I'd hold forth. So, here are my 5 tips for how to get the most out of Q & A time at public lectures: Continue reading "5 ways to maximize Q&A time at public lectures"