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"

Losing my parents

One morning recently as my preschooler daughter climbed in to her customary spot for breakfast, she remarked out of nowhere, "now you don't have any family left!"

It only took a moment to clarify that she was putting together my mom's recent death with knowing my dad had died when I was 10 years old, and realizing both of my parents were gone. She said it in the same way as when she notices that furniture is unexpectedly repositioned or that some part of her bedtime routine is missed, seemingly unaware of the emotional content of her observation.

Dad and Mom, being silly, before.

In that moment I mostly parented through (around?) the emotion by further clarifying with her that of course I still have family, between her and my wife, my sister and her family, my wife's family, my various aunts, uncles, cousins, nieces and nephews, the many friends who have become chosen family to us, and on and on.

Part of me wanted to show my daughter just how long the list was, so that I could simply reaffirm to myself that I am not without family.

But the awareness of being without both parents haunted me through the rest of the day and into that night's dreams. I guess it's been haunting me on and off for the last three months after saying goodbye to my mom. Maybe in some ways the prospect of it has been haunting me for more than 30 years after my dad's death.

Continue reading "Losing my parents"