Software Engineering in Web Development, Backend Services, and More

Tag: WordPress (Page 215 of 220)

Articles, tips, and resources for WordPress-based development.

Organize Your WordPress Installation For Subversion-Based Development

If you’ve done any development on themes, plugins, or the core application itself, then you know that the team uses Subversion for WordPress development. This means that when you checkout the project, you’re either pulling down at least three directories, or you’re pulling down the trunk.

The challenge is figuring out a way to organize your local development environment so that it resembles the staging and production environment rather than what the repository looks like.

But this can be tough if you’re used to working with the trunk, with copying files, or with whatever crazy ways you’ve come up with managing version controlled files.

Here’s the most effective way that I’ve found to organize my installation when using Subversion for WordPress development:

Continue reading

Plugins For WordPress Developers

There are a number of plugins for WordPress Developers that I consider to be must-have for any local development environment. These include:

Each of these serves a unique purpose when working on themes and plugins especially if you care about localization and using the latest version of the WordPress API.

The downside is that it can be somewhat of a pain to install these each time you setup a new development environment (depending on how you actually setup your local machine).

But thanks to the guys over at WordPress VIP, this process for getting up and running with the necessary suite of plugins for WordPress developers is much easier.

Continue reading

Programmatically Set a WordPress Template

If you're an advanced developer or just want the TL;DR version of this, skip to the code.

Programmatically Add a Template to a Page

One of the nicest things about WordPress is the ability to customize the look and feel of pages by applying customized page templates.

Whenever I am working on an advanced theme or an application, I often treat my pages like views and my templates like layouts.

In cases like this, I often need to programmatically create posts, pages, and other data upon theme activation. Similarly, I’ve also needed to programmatically add a template to a page during activation, as well.

This is relatively easy to do.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑