Month: February 2014

How to properly change and reference various WordPress directories

root-wp-directory-git

Using WordPress, it’s a poor assumption to assume the wp-content, plugins, and uploads folders are always in the same place, or even always called by those names.

The configuration you see above is a sample WordPress root directory. This isn’t uncommon. Many people who manage their installs with version control such as Git probably recognize this format.

As you can see above, WordPress core has its own folder, wp, so that core is not at the root level. This allows us to include WordPress as a submodule of our project, and makes for a cleaner experience.

You’ll also notice that wp-content is actually called content.

Now you can see why it’s not a good idea to hard code the uploads, plugins, or wp-content directories into your plugins.

This point was made by Pippin Williamson on Twitter the other day, and he and Brad Touesnard discussed it on Apply Filters yesterday — an excellent podcast by the way.

How to change default directories

You can see how to edit wp-config to define the wp-content directory and URL using constants in wp-config.php.

define('WP_CONTENT_DIR', __DIR__ . '/content' );
define('WP_CONTENT_URL', 'http://mysiteurl.dev/content');

You can similarly alter your default plugins directory:


define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/content/plugins' );
define( 'WP_PLUGIN_URL', 'http://mysiteurl.dev/content/plugins' );

And again for uploads:

define( 'UPLOADS', '/content/uploads' );

You can learn more about various things you can define and utilize with this excellent Codex resource.

How to reference default directories, the right way

Now, let’s show a couple examples for referencing these directories the right way.

Read more

Interview with Drew Strojny, Founder of The Theme Foundry

drewstrojnyI had the pleasure to interview Drew Strojny, founder of The Theme Foundry, about their work at The Theme Foundry, their philosophies about themes, and their latest theme release, Oxford.

Direct Download

Drew is a former Duke football player that spent a few years in the NFL before he started a small business doing general marketing. Over time, his clients started asking for websites, so he discovered WordPress. His work with web projects led him to start designing WordPress themes, and he ended up being an early player in the commercial theme market in 2008.

Competition with themes over time

In 2008, there weren’t many people selling themes. Chris Pearson was selling Thesis, Brian Gardner was selling Revolution, pre-Genesis. WooThemes was just underway. But the demand was enormous.

Well, I thought we’d just throw our hat into the ring and try a design and see how it goes, and we got a really huge response.

It was really great timing on our part. It was one of the best times to get into the theme market.

The WordPress theme space really exploded for a few years. Drew notes that they haven’t seen the explosive growth in the past couple years compared to the first two

The market is maturing and there are a lot more companies in the space, and a lot more options.

Setting themselves apart

I asked Drew how The Theme Foundry sets themselves apart from the competition, considering just how many theme providers there are now. They like to tout their “world class design and clean code” when they market their themes.

They do most of their design in house, but they also commission some designs to get outside the bubble of the “WordPress theme” concept, and those commissioned themes help them expand their work.

John Hicks designed Shelf. Ryan Essmaker designed the Anthem theme, Dave Ruiz designed the Avid theme, and most recently Veerle Pieters designed the Collections theme.

The Theme Foundry notably doesn’t use any form of framework and attempts to limit theme options as much as possible. When they sell a theme to a customer, they want it to “just work” and be reliable over time.

The impact of selling themes on WordPress.com

Read more

How to deactivate WordPress Multisite properly

WordPress Multisite is a great feature of WordPress. But it’s not always the right feature.

I just disabled Multisite on my personal blog. I used it for the wrong reasons back in the day, and have either deleted or moved the sites in the network. It was time to disable Multisite completely.

There isn’t much documentation on this, and none that’s totally thorough. Here are the primary steps, in order of how you should disable Multisite to really get rid of everything:

Remove any remaining sites

Remove all sites from your Multisite installation, other than your main site, by going to My Sites > Sites in the WordPress admin. If you need to move a subsite to its own WordPress install, that’s out of scope from this article, but also possible if you roll your sleeves up.

Remove unwanted users

Remove any users you don’t want to have access to your website anymore. Just because you delete a site doesn’t delete users associated with that site, because the users in Multisite are global. So you’ll want to clean up your user accounts by going to the Users section of the admin.

Remove Multisite lines from WP Config

Read more

Aesop, a Medium-esque “story engine” for WordPress

aesopAesop is a self-described “story engine” for WordPress. The plugin boasts “components designed for rich storytelling experiences.” Basically, it creates an admin interface that allows a site owner to create interactive stories, similar to those popularized by projects like Medium 1.0 and a number of big news agencies like The Washington Post and The New York Times.

To get a sample from The New York Times, I’d recommend you read Invisible Child, the story of Dasani, a young homeless girl in New York City. It’s very moving.

You can also see Aesop’s introduction video here:

http://www.youtube.com/watch?feature=player_embedded&v=BndId0gvMlA

There’s also a demo page with a number of sample Aesop stories to showcase what’s possible.

Crowdfunded

Aesop has had an interesting storyline itself. Developer Nick Haskins raised just over $6,000 to create Aesop, a reduced goal from his original $15,000 target. Originally the funding was going to help pay for a hosted version of the system in addition to the free and self-hosted plugin.

He started the campaign with working demos, but it just didn’t quite take off like he hoped. However, he reduced the goal and removed the guarantee for the hosted version, and used the $6,000 to complete development of the plugin.

Version 1.0 hit the WordPress plugin repository today.

How Aesop works

Read more

our sponsors

A2 Hosting
Omnisend
Kinsta
Progress Planner
Elementor
WP Munich
Atarim
Patchstack