Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 377 of 424)

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

Don’t Feed The Trolls (or What I’ve Learned About Negativity on The Internet)

Last week, I commented on a blog post on the Mika Epstein’s blog – also known (or perhaps more commonly known) as @Ipstenu – on Handling Negatives.

In the article, Mika talks about the fun that comes with developing plugins, themes, and generally any product where customers can share their thoughts with you. And if it isn’t obvious by the title, she covers how to handle negative feedback.

It was a good read and fun discussion and it definitely rings true for anyone who is an open source developer, but I think that it rings true for anyone who’s an aspiring developer, photographer, videographer, blogger, and so on.

So, I thought I’d share my thoughts on the pervasive negativity on the Internet and how it’s hit home for me.

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

Professional WordPress Development

Professional WordPress Development

Professional WordPress Development is a topic that’s something I obviously discuss quite a bit here – I believe that WordPress has matured to a point where its potential for building not only blogs, websites, or content-managed sites has grown to where it’s a viable platform for building applications.

In order to share my thoughts on this with a wider audience, I’m currently running a series on Envato that’s all about professional WordPress Development.

Continue reading

« Older posts Newer posts »

© 2024 Tom McFarlin

Theme by Anders NorenUp ↑