Development

Development in (and with) WordPress.

How to customize the WordPress theme customizer defaults

Photo of author
Brian Krogsgard
The theme customizer feature was introduced in WordPress 3.4, released June 2012. Since then, it's been a great tool that's allowed theme developers to move away from complex options managers to a simpler, more logical interface where many settings can…

Rethinking Blogs at the New York Times

Photo of author
Brian Krogsgard
Scott Taylor works at the New York Times. He's also a major core contributor to WordPress. In this post, he describes how the Blogs division of the New York Times rebuilt their setup to fit into the Times' overall redesign…

A self hosted alternative to Jetpack’s Photon service

Photo of author
Brian Krogsgard
While Jetpack and its Photon service are useful, it is not a solution fit for everyone, and may users and developers have reservations about integrating with the WordPress.com infrastructure. Will Norris takes the open source approach and has rolled his…

Share sidebars in WordPress Multisite with transients

Photo of author
Brian Krogsgard
Corey Collins goes in depth on the WebDevStudios blog to offer a solution to a problem experienced by many Multisite users: for sharing sidebars across a Multisite instance. The solution uses transients to store everything and a small AJAX function…

Understanding _n_noop()

Photo of author
Brian Krogsgard
How a function that doesn't do anything can save your life. Well, not really, but close. _n_noop() can be very interesting, especially for APIs in larger plugins.

Turn WordPress into a Twelve-Factor App

Photo of author
Brian Krogsgard
If you’re going to be creating complex websites with WordPress, then you need to get serious about it. This series of posts is based on the Twelve-Factor App methodology, adapted for large scale WordPress projects.

You’re using transients wrong

Photo of author
Brian Krogsgard
Ryan McCue has written an insightful post about caching data in WordPress with the Transients API. Most interesting to me is how he describes expiration in transients as a "maximum age" versus a "guaranteed expiration". He also makes a worthwhile…

Rewrite rules made easy

Photo of author
Brian Krogsgard
Getting rewrite rules and Regex right is an often painful task in WordPress. Conflict solving, commenting the expressions, et cetera is something most people want to avoid. To be honest, every modern PHP or JS framework nowadays has a very…

Parent to child post relationships

Photo of author
Brian Krogsgard
Justin Tadlock has another nice tutorial out where he guides you in the relatively simple function that adds a metabox to a post screen to be able to assign a post parent from another post type. This is highly useful…

Retroactive Composer support for WordPress with ComposerPress

Photo of author
Brian Krogsgard
Tom Nowell has created a project called ComposerPress which analyses an existing WordPress install and creates a Composer .json file in your root directory. If you've already gotten to know the value of Composer, but need something to help bring…
A2 Hosting
WordPress.com