Running? Check. Rest of today: WordCamp Portland, soft-relaunch ONA conference homepage, prep Daily Emerald presentation for tomorrow, Edit Flow refactoring and driving to Eugene.
Tag Archives: WordCamp Portland
#wcpdx: WordPress Multisite
These are my notes from the 4:15 session I did at WordCamp Portland. It’s a quick introduction WordPress multisite, and why you might want to consider using it.
What is it?
WordPress Multisite is a way for using one instance of WordPress to host as many sites as you’d like. Originally known as WordPress MU, the multisite functionality was merged into WordPress in WordPress 3.0.
Disclaimer
Danger, danger, danger! You’re entering the realm of advanced WordPress user and, by editing files, the database, etc. you can potentially break your site so it will cry. Make sure to back everything up before you get started. And know that you’ve been warned.
Why is it useful?
WordPress Multisite is especially useful for those who have to administer multiples sites. If you meet all of the prereqs, it can make keeping WordPress up to date, installing new functionality, backing your data up, etc. a breeze. Instead of having to manually update each website you’re responsible for managing, you simply update one.
How do I set it up?
There is documentation you can follow in the WordPress.org Codex. Basically, what you need to do is configure DNS if you plan to use subdomains, make a change to your wp-config.php file, change .htaccess values if you’re using Apache, and then run through the guide in the admin. Boom, you’re done.
What should I be aware of?
Converting a single instance of WordPress to WordPress Multisite creates and alters database tables, and isn’t recoverable.
Hosting a lot of websites with WordPress Multisite means you should scale the resources available to WordPress accordingly. Otherwise, all of your sites will be slow.
Plugins and themes are installed once, so any changes you make are incurred for all of the users across your site. For this reason, if you’re using any WordPress.org or premium themes, you should make all modifications to the theme as a child theme (or, better yet, just CSS changes).
You can make some themes available to all sites, and other themes available to just specific sites.
If you plan to install a lot of themes, it would benefit you in advance to establish a scheme for storing them (e.g. setting up /wp-content/themes/woothemes/ and /wp-content/themes/wporg/)
Usernames are unique across the network. If you’ve set up a multisite instance for all of your clients, create usernames as firstnamelastname or similar.
Network activating plugins means they’re activated across all the sites in your network, functionality is available by default, and it’s not possible for the site admin to deactivate it.
WordPress Multisite isn’t magic, it’s technology that makes your life awesome.
What tips do you have for me?
Use a plugin like Restrict Multisite Plugins to make certain plugins conditionally available to sites.
Map custom domains to sites on your network with the domain mapping plugin.
When importing content with embed codes into a site on your WordPress Multisite network, make sure to disable the KSEs filter. As of WordPress 3.2.1, you need to do so with a special filter (which didn’t exist before 3.2).
You may want to disable some of the email notifications that go out.
Keep your users from needing to modify theme template files with the WordPress.com Custom CSS plugin. This is the same code that formerly ran on WordPress.com, is super awesome, and keeps a revision history of all your changes.
Configure your admin bar to include network admin links for super admins so you can easily access management functionality. You can also expose additional functionality for your users (e.g. custom CSS) where it makes sense.
Write your short plugins to customize the admin interface, and put them in /wp-content/mu-plugins/ to have them automatically loaded.
Other useful management plugins:
- Term Management Tools – WordPress plugin allowing you to easily move terms between taxonomies, among other things.
- Unconfirmed – See a list of invited but unconfirmed network users.
- Plugins for Publishers – A list I put together back in April with other plugins I like
What questions do I have for you?
What doesn’t make sense about the network admin UI?
What features or functionality would you like developed as plugins?
What features or functionality would you like included in core?
WordPress Github Plugin Updater
Aside
WordPress Github Plugin Updater. Have your plugin auto-update from Github instead of WordPress.org.
Status
Seeing real users interact with your software is a humbling, eye-opening experience every developer should experience on a regular basis.
What I’d like to talk about at WordCamp Portland
In the spirit of being prepared, here are a few things I’d like to talk about at WordCamp Portland:
WordPress Multisite – In a nutshell, how it works and why it will make your life infinitely more manageable. If we have a group of people who quickly get their heads around the basics, I’d also love to share tips and tricks for pimping a multisite instance. For instance, using plugins like Restrict Multisite Plugins and customizing your admin bar to give easy access to the network admin for super admins. (People I should bump in to: Emma McCreary, Kayleen)
Test-driven Development – WordPress doesn’t do it, and I’m terrible at it. I should find a mentor with fountains of knowledge. (People I should bump in to: Michael Fields, Than Taintor, Toby McKes)
WordPress for Publishers – More and more newsrooms are using WordPress for all parts of their workflow. From experience, I know that journalists tend tolerate crappy technology. I’d love to hear from users about their current frustrations and pain points. (People I should bump into: Joe Boydston, Toby McKes)
Dogfooding It – We love WordPress and sell to our clients, but a lot of us developers don’t actually use it on a regular basis. Why? How should we fix this? (People I should harass to no end: Nacin)
If you see me there on Friday, Saturday or Sunday, say hello! I look like this but with much shorter hair.
Zero to Blog: Our First-Timer Workshop
Aside
Zero to Blog: Our First-Timer Workshop. Newbie workshop round two right before WordCamp Portland, September 16th from 9 to 4.
#wcpdx: Speed Up WordPress
First session at WordCamp Portland this morning was “Speed Up WordPress” with Jason Grigs of Cloud Four. He jokingly argues that “we’ve remade the internet in our image and the image is obese.” Since 2003, web page size has tripled, number of objects has doubled, and we can partially blame it on WordPress. On the developer’s side, the expectation is that everyone is going to be on a fast connection, with broadband at home or at work.
Page load time, however, determines whether people will stay on your site and do what you want them to do. Speed and performance affect can change perceived quality and credibility of the website. “You can have a great brand and your site is really slow and people will think you’re crap online.” It’s critically important that your application maintains the user’s flow and focus. Amazon says they lose $1 million for every extra second in their shopping cart experience. There’s also an environmental impact for slow site. The number of data centers in the last four years has doubled, and has an energy consumption equivalent to five 1,000 megawatt power plants or the entire state of Mississippi.
In short, build a site that is optimized and doesn’t use more resources than it needs to. Be proactive about it.