Software Engineering in Web Development, Backend Services, and More

Author: Tom (Page 364 of 430)

Quick Tip: Looping Through an Array with jQuery

When it comes to writing jQuery-based JavaScript, there are generally two camps of people:

  • Those who believe that you should intermingle jQuery with vanilla JavaScript for when you need it
  • Those who believe that if you’re importing jQuery, then you should use it as much as possible

Both camps have their own sets of arguments neither of which I’m looking to explore in this particular post; however, one of the features that’s all too common is having to loop through a vanilla array using JavaScript.

The two main ways that you can do about doing this are to use a standard for, while, or do loop or use jQuery’s iterator.

If you fall into the former camp, but are looking to use an iterator, here’s how you can begin looping through an array with jQuery.

Continue reading

How To Customize WordPress Emails

Customize WordPress Emails

One of the lesser known features of the API is how to customize WordPress emails.

There are a number a pluggable and extensible functions that make this possible, but they don’t crop up that often in articles, documentation, or in discussion when building products built using WordPress.

In my latest series over on Envato, I attempt to provide more information on exactly this.

Continue reading

JavaScript Screencasts From Bocoup

Aside from working with WordPress, I’m also a big fan of JavaScript and have been trying to slowly include more content about the language.

Generally speaking, I think JavaScript is an important language to learn because it’s a core component of WordPress for both plugins and themes, and for public-facing code as well as the administration area of JavaScript.

Despite the fact that WordPress uses jQuery, I think that it’s always important to explore and understand the core language, too.  Continue reading

Dynamically Creating a Custom Stylesheet For WordPress Plugins

For more technical users or to skip the the background explanation, skip directly to the code.

One of the challenges that comes with building WordPress plugins is supporting the conflicts that ensue with other poorly coded plugins and/or poorly coded themes.

It’s just the nature of the beast.

When it comes to addressing the way a plugin or widget looks on the frontend, I’ve often advised users to modify the plugin’s stylesheet in order to achieve the results they want.

Unfortunately, this is problematic for a number of reasons.

Continue reading

Comment Images 1.6

With the recent release of WordPress 3.5, I’ve spent some time updating my plugins to make sure they’re update to date with the latest version. Additionally, I’ve been trying to patch any outstanding bug, issues, and minor features before introducing anything new.

Comment Images generally receives more questions and comments than any of my other plugins, so prior to introducing any major new features, I wanted to resolve a few outstanding issues.

Here’s a run down of the latest update to Comment Images for WordPress.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑