Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 252 of 428)

Include a WordPress Theme Style Guide

In a previous post, I questioned whether or not we should exclude a WordPress theme style guide from our themes when releasing them to our customers.

On the one hand, I think that a case can be made that we should exclude them. In short, I said that:

Offering up a style guide that helps users deviate in any way from the core design, the one that’s created from a level of expertise, is something I think isn’t worth creating.

But there’s another side to all of this. Specifically, what if the theme itself is just one component that’s part of an organizations overall brand?

Continue reading

Working with the WordPress Media Uploader

Comments on this post are closed. Please leave comments on the respective posts linked from here.

Though I’ve talked about working with the WordPress media uploader in previous posts, I’m currently working through a series on Tuts+ that takes you through the process of incorporating the WordPress media uploader into your own plugin.

This post is going to serve as the landing page for the series of articles, but if you’re a beginner then this series should be for you.

Continue reading

Exclude a WordPress Theme Style Guide

When it comes to WordPress themes, one of the things that I used to think should be more common was the idea of style guides.

You know what I’m talking about: The documents that are either included with or ship with a theme that guide you on the typography, image sizes, video sizes, and other collateral to make sure that you use the theme exactly as it’s been designed to be used.

In other words, it prevents you from making the theme look ugly.

But are they really needed?

Continue reading

Programmatically Add Post Terms in WordPress

Importing CSV files (or something similar) is something that’s nothing new to web development.

If you’re writing a server-side code that’s responsible for importing a file in the context of WordPress, then you can be doing anything from programmatically creating posts to creating more complex relationships among post types, taxonomies, and so on.

In this case, it’s nice to have an abstract function that can help to do a lot of the repetitive work for you. After all, aren’t functions specifically for that?

Continue reading

Making Anonymous Functions Maintainable

Obviously, the majority of the content that I write for the site deals with WordPress in someway, but there are times where I talk a bit about JavaScript, related libraries, and so on.

The Face of Anonymous Functions

The Face of Anonymous Functions

Generally speaking, a lot of the JavaScript that’s written in the context of WordPress is done using jQuery because it’s the library that ships with the core applications, it’s tried and true, and its a good fit for a lot of the DOM manipulation that happens in themes and in plugins.

But one of the things that I’ve begun to notice over the past few years is that writing maintainable JavaScript (using jQuery or not) gets a bit more difficult when using anonymous functions.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑