Software Engineering in WordPress, PHP, and Backend Development

Tag: WordPress (Page 134 of 219)

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

Use Your WordPress Powers For Good

This past weekend, I had the opportunity to speak at WordCamp Atlanta about the Importance of Following The WordPress Coding Standards.

I had a blast talking with the audience, meeting new people, answering questions, and being exposed to some ideas and techniques that I’d not previously considered.

Following The WordPress Coding Standards

During the talk, a friend of mine happened to snap a picture of two young guys – between 11 – 13 years old or so – sitting on the front-row of the presentation.

Since I tend to be protective about sharing pictures of my own kids online, I’ve opted not to share the picture here, but it doesn’t matter – the important thing is that there were young kids present at this WordCamp soaking up every word that was being present and even asking questions.

This is something that I’ve yet to see at a WordCamp – at least in Atlanta – and it’s really got me excited for the future of computer science, of WordPress, and of programming in general.

Continue reading

Avoid Loops With save_post in WordPress

When working on WordPress projects, there may be times during which you have to do some sort of processing on the content or attributes of the post before saving it to the database.

There are a number of ways to do this, but one of the most straightforward ways to go about it is to setup a custom function hooked to the save_post action and then handle the attributes of the post in that function.

If you opt to go this route, there are a few considerations that you need to make (mainly that help you avoid some type of infinite loop) in order to properly adjust the content to your liking.

Continue reading

Debugging with Query String Parameters

There are a number of ways that we debug our WordPress-based projects.

  • Some people end up going through the code and setting up `print_r` statements or `var_dump` statements
  • Some end up working through the code and changing variables or function names until they find where something breaks (or changes)
  • Some use debugging software (or the debugging features in their IDE)
  • Some use a combination of plugins and other techniques
  • And some likely use some strategy that isn’t listed here

Personally, I’m partial to using some of the developer tools that are provided by WordPress through the use of setting constants and using plugins that are available to us, but I’m also a fan of using Codebug App (which is the content for another point).

Codebug App

But, for the purposes of this post, that’s beside the point.

Continue reading

The Basics of How WordPress Works

If you’re getting started in WordPress development, odds are it won’t be long until you bump up against the concept of hooks. That is, points during the WordPress life cycle that allow us to add our own functionality to customize how WordPress behaves.

Of course, this is how both themes and plugins are made to do some of the neat (or not so neat, depending on the project) things that they do. And though I obviously recommend reading up on them in the Codex, I think it’s also important to understand how the WordPress application loads itself.

More specifically, I think it’s important to understand how WordPress works. There are a lot of resources out there available to read and review; however, John Blackbourn has been working on a no-frills version of this very idea that I believe to be worth starring and referencing.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑