Software Engineering in WordPress, PHP, and Backend Development

Category: Articles (Page 122 of 258)

Personal opinions and how-to’s that I’ve written both here and as contributions to other blogs.

A Pressmatic Image for WordPress Trunk

As a follow-up to yesterday’s post with using Pressmatic and a copy of WordPress from the Subversion repository, Kiko Doran asked me a good question via Twitter dealing with one of Pressmatic’s nicest features:

First, you can think of Pressmatic templates as preconfigured images that can be used to re-create a development environment. This is useful if you need to create a second or third or ninth install on your machine.

Or, better yet, it’s really convenient to have it available for your team so that you can make sure you’re all running the same image across all development machines.

Still, the question remains: Can you create an image that has trunk installed by default?

Continue reading

Using Pressmatic with WordPress Trunk

Pressmatic 1.0 was released a few days ago (with 1.0.1 made available today).

Pressmatic with WordPress Trunk

There is no shortage of options when it comes to setting up local WordPress development environments. And as with anything, there are pros and cons to each of the available products. Ultimately, this gives us a choice when it comes to setting up our machines for what works best for us.

Since the product entered beta, I’ve been reading tweets and blog posts all about it and ultimately decided to purchase it and give it a try for myself.

Continue reading

Internationalizing WordPress Plugins

Earlier this week, I shared a link to the introduction of a series of articles I’m writing on internationalizing WordPress plugins. The gist of the series is straightforward:

  1. I introduce the concept of internationalization,
  2. I demonstrate how to create a plugin that’s ready for translation,
  3. I then create the translations for a particular locale.

The second part of the series has is available via Envato. As is the case with other articles I’ve written, this post serves as a short description of the article to help determine if the tutorial covers more information you’d like to read.

And as mentioned above, this particular article covers how to write a localization-ready plugin.

Continue reading

Get Started Internationalizing WordPress Projects

Internationalizing WordPress projects are arguably more important now than ever. With WordPress’ market share as large as it is, it’s never been used by such a wide audience.

To that end, it makes sense that a project accessible to people all over the world can be translated into the various languages said people use.

I think it’s important to make a clear distinction, though:

  • If you’re working on a project for a particular client and you know that it doesn’t need to support internationalization, then building the project for that specific language is okay.
  • If on the other hand, you’re working on a theme or a plugin that will be distributed in one of the public repositories or marketplaces and has the potential to be used by people who speak a language different than your own, then your should be internationalizing your project.

In the past few years, it’s become easier than ever to internationalize WordPress projects. And in my latest set of articles for Envato, I’m walking readers through exactly how to do it.

Continue reading

Object-Oriented Partials in WordPress

Partials in WordPress, regardless of if they are part of a plugin or part of a theme, can help maintaining a project much easier (let alone building a project).

But if you’re working with them to help drive your settings pages or your WordPress administration pages, part of working with them is making sure they are adequately represented on the server-side, too.

Generally speaking, this is usually referred to as the domain logic or may even be thought of as part of the “model” or “controller” code when thinking regarding MVC. Of course, this isn’t MVC, and I’m no fan of trying to apply patterns where they don’t fit.

My point, though, is that I’m talking about object-oriented classes that are responsible for managing data and handling coordinating information rendered in the partials and how the user interacts with it.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑