Software Engineering in Web Development, Backend Services, and More

Tag: WordPress (Page 212 of 220)

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

How To Prevent a Page From Being Deleted in WordPress

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

I’m currently working on two applications that I’m building on top of WordPress (of which I hope to share once they’re complete).

Both projects have views – basically pages with templates – that need to be created when the application is installed and the pages aren’t meant to be deleted.

Though I’ve covered how to programmatically create a post in WordPress, I thought I’d share a quick example of how you can programmatically prevent a page from being deleted in WordPress, too.

Continue reading

How To Get Started with WordPress Theme Development

One of the questions that I’m often asked from developers is how to get started with WordPress theme development. Sure, there are great resources like the Theme Development guide, but if you’re looking to dive headfirst into working with an existing theme, your options are limited.

At least, that used to be the case.

Yes, you can tinker around with Twentyten, Twentyeleven, or another theme, but sometimes the best place to learn is to watch someone develop a theme from the ground up. Thanks to GitHub, being able to do this is easier than ever.

Brian Krogsgard is currently in the process of building a theme and he’s made his work available on GitHub.

Continue reading

How I Organize My Files When Developing WordPress Plugins

So much of software development consists of actually maintaining projects after they’ve been released. Unfortunately, that’s where a lot of time is actually spent refactoring that didn’t necessarily have to occur if more planning had been done from the outset of the project.

Sure – some teams get this right, some teams don’t, and sometimes it’s just the nature of bad luck. After all, the best we can do is try to make the smartest decisions possible given the initial requirements.

When it comes to building plugins, there’s a specific way that I organize my WordPress plugin files that I’ve found to make bug fixes, future updates, and overall development much easier as a the lifetime of a plugin increases.

Continue reading

How To Add Custom User Meta During Registration

I’m currently working on an application that requires users to register before logging into the site. The application is based on WordPress, but the registration process is using a custom template and requires some extra information.

As an example, I thought I’d share how I’m programmatically creating a user during the registration process, adding extra information to the user’s profile, and then displaying it in the user management dashboard.

Continue reading

Understanding WP_Query

I’ve done my fair share of work with WP_Query this week – it’s definitely been an exercise in education, but when an employee of Automattic comments and offers advice, it’s worth listening

But I wanted to keep the conversation going for the benefit of other developers.

As such, I wanted to reblog this talk by lead WordPress developer and Audrey Capital technologist Andrew Nacin in which he discusses the various topics surrounding WordPress queries, hooks, and so on in order guide others in understanding WP_Query.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑