Software Engineering in WordPress, PHP, and Backend Development

Tag: WordPress (Page 198 of 218)

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

Less – A Minimal WordPress Theme By Jared Erickson

When it comes to sharing resources, I try to do a good job of publishing that stuff that I’ve found useful or that I don’t think is necessarily getting the attention that it deserves.

The majority of my friends who are developers or designers maintain their own blogs and publish their own stuff, so I rarely see the need to cross-post any content.

But there are times I make exceptions and such is the case with Less – a free minimal WordPress theme.

Continue reading

How To File and Manage a WordPress Plugin Bug Report

When it comes to WordPress development, there typically tends to be two camps (with a third that’s on the rise):

  1. There are theme developers
  2. There are plugin developers
  3. Then there is the growing field of application developers

Personally, I’m a fan of building plugins. Obviously, it’s not because I have anything against building themes, but I’m a programmer – not a designer – by nature, so I add to the WordPress experience through functionality rather than functionality and design.

In fact, I think if I had to design, it’d probably take away from the experience :).

But plugins are software and there are problems that have existed as long as software has existed. In fact, entire markets have been created around said problem: filing bug reports.

I’m not here to provide the ultimate solution for how to provide a WordPress plugin bug report – if that existed, it would have been solved long before today; however, I do want to share a couple of things that I’ve noticed.

Continue reading

Hello Dolly – Episode 1: The Empire Strikes Back

A couple of weeks ago, my team and I published the first episode of Hello Dolly largely as an experiment to see if we had anything worthwhile to contribute to the podcast-space regarding WordPress.

In fact, the episode was such an experiment that we named it Episode 0.

But based on the feedback via comments, tweets, and emails, it was clear that you guys were interested in the podcast, and so we wanted to publish the first official podcast before the end of the year.

Today, we’ve done just that.

Continue reading

Quick Tip: Handle When save_post Is Called Twice

If you're an experienced developer, you may wish to skip to the code.

If you’ve ever done any work with building a plugin or building a feature of a theme that includes a custom meta box or that includes functionality that is fired on the save_post action, then you’ve likely seen WordPress save_post called twice.

The thing is, this is expected behavior, but because of how it’s used, you may not always want your code to execute until the user actually clicks on the save button.

So here’s a quick tip on how to properly manage the case when save_post is called twice.

Continue reading

How To Find The Permalink By Slug in WordPress

If you're an advanced developer, then you may want to skip directly to the code.

As soon as you begin working on an advanced plugin or an application in which you try to maintain some form of solid cohesion (or even an API), then you end finding that there’s a function you need that isn’t available in the Codex.

This isn’t unique to WordPress. Any programming language that has a rich API ultimately has a set of solid features that allow you to build upon them to write more power functions.

For me, I try to publish most of my helper functions here on the site. It makes things searchable, available, and even available for code review for the more critical readers :).

Case in point: In a recent project, I needed to find the permalink by slug in WordPress and there wasn’t a function available to do exactly that, so here’s what I ended up doing.

Continue reading

« Older posts Newer posts »

© 2024 Tom McFarlin

Theme by Anders NorenUp ↑