Software Engineering in Web Development, Backend Services, and More

Tag: WordPress (Page 211 of 220)

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

How I Organize My Files When Developing WordPress Themes

I recently shared how I organize my files when developing WordPress plugins, but since I also work with themes and have recently been building two applications using WordPress, I thought I’d also share my thoughts on organizing WordPress theme files.

For what it’s worth, I think that some developers – especially beginners – often try to make the plugin model fit the theme model or vice versa, and although both types of projects are aimed specifically at WordPress, they require different approaches.

Simply put, theme file organization differs from plugin file organization. With that said, here’s how I organize my files when developing WordPress themes.

Continue reading

Resolving wp_redirect and the “Headers Already Sent” message

I’ve been working on building a web application in WordPress on which I’m implementing a set of rewrite rules to introduce RESTful routing into the application.

Once the application is done, I hope to provide a significantly more in-depth post on how I built it, but in the mean time I figured I’d cover how I’m handling certain challenges that I’ve faced in development.

In this case, I needed to fire a call to wp_redirect after a certain event happened, but kept getting the PHP error:

Cannot modify header information - headers already sent by (output started ... )

Here’s how I ended up resolving the wp_redirect headers already sent message.

Continue reading

How To Check If a User Has a Gravatar in WordPress

If you're experienced with programmatically creating pages, you may wish to skip down to the code.

I’ve been working on a project where the requirements simply stated this:

  • If the user has a gravatar, display it
  • Otherwise, give the user the ability to upload a profile image from their computer

The WordPress API offers the get_avatar function for easily retrieving a users gravatar image, but there’s currently no API function that allows us to check if a user has a gravatar.

Continue reading

The Problems with WordPress Themes

Problems with WordPress Themes

Japh – a fellow tweep and WordPress evangelist at Envato – recently shared a post on his blog titled “The Problems with themes on ThemeForest are problems with Themes.

The topic of discussion boils down to this:

  • ThemeForest has a massive library of themes that are available for purchase
  • Some of the themes that are available for purchase consist of poor code that ultimately affect plugins and/or the overall WordPress experience
  • A proposed solution for how to increase standards and improve the theme review process

Though I’ve little experience with ThemeForest, I shared my thoughts as a developer who cares about the importance of code quality, as someone who as worked directly work Automattic’s theme team, and as someone who is highly aware of the problems with WordPress themes. Continue reading

How To Get Started with WordPress Plugin Development

Last week, I mentioned that I’m often asked by aspiring WordPress Developers is how to get started within the community. After all, it’s active, there are a lot of people, and there are various ways to contribute.

One thing that seems to be a common thread is that developers often come wanting to know how to develop themes or develop plugins. If they’re interested in both, their interest still seems to lean in one of the two areas.

That said, the same challenge exists: How do you get started with WordPress Plugin Development?

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑