This extended category features quality articles about developing clean, smart and fast websites with WordPress. The articles are intermediate level, with an emphasis on practical, hands-on discussions related to WordPress. Curated by Jeff Starr. .
Popular tags in this category: Essentials, Techniques, Hacks, Templates, PHP, Themes, Plugins.
Imagine you’re playing the latest hash-tag game on Twitter when you see this friendly tweet: "You might want to check your #WP site. It includes two copies of jQuery. Nothing’s broken, but loading time will be slower."
You check your source code, and sure enough you see this:
If you’re into WordPress development, you can’t ignore hooks for long before you have to delve into them head on. Modifying WordPress core files is a big no-no, so whenever you want to change existing functionality or create new functionality, you will have to turn to hooks.
In this article, I would like to dispel some of the confusion around hooks, because not only are they the way to code in WordPress, but they also teach us a great design pattern for development in general. Explaining this in depth will take a bit of time, but bear with me: by the end, you’ll be able to jumble hooks around like a pro.
What seems like one of the most complicated bits of functionality in WordPress is adding meta boxes to the post editing screen. This complexity only grows as more and more tutorials are written on the process with weird loops and arrays. Even meta box "frameworks" have been developed. I'll let you in on a little secret though: it's not that complicated.
Creating custom meta boxes is extremely simple, at least it is once you've created your first one using the tools baked into WordPress' core code. In this tutorial, I'll walk you through everything you need to know about meta boxes.
WordPress plugins are PHP scripts that alter your website. The changes could be anything from the simplest tweak in the header to a more drastic makeover (such as changing how log-ins work, triggering emails to be sent, and much more).
Whereas themes modify the look of your website, plugins change how it functions. With plugins, you can create custom post types, add new tables to your database to track popular articles, automatically link your contents folder to a “CDN” server such as Amazon S3… you get the picture.
Local development refers to the process of building a website or Web application from the comfort of a virtual server, and not needing to be connected to the Internet in order to run PHP and MySQL or even to test a contact form. One of the most annoying parts of development, at least for me, is the constant cycle of edit, save, upload and refresh, which, depending on bandwidth and traffic, can turn a menial task into a nightmare.
With application platforms such as WordPress, which require a server back end to work, you would normally be constrained to develop on a live server, with the headaches that go along with that. MAMP and its Windows counterpart, WAMP, are tools that allow you to locally develop applications that require a server on the back end.
While many functions you already use in WordPress communicate with the database there is an easy and safe way to do this directly using the
$wpdb class. Built on the great ezsql class by Justin Vincent,
$wpdbwill allow you to address queries to any table in your database, and it will also help you handle the return data. Since this is built in WP functionality, there is no need to open a separate database connection (you would be duplicating code in this case), and there is no need to do hacks, like modifying a result set after it has been queried.
In this article I will show you how to get started with the $wpdb class, how to retrieve data from your WordPress database and how to run more advanced queries which update or delete something in the db. The techniques here will remove some of the contraints that you run into with functions like
wp_list_categories(), allowing you to tailor the queries you make to your specific needs. This method can also make your website more efficient by only getting the needed data, nothing more, nothing less.
In recent years, it seems WordPress has been growing at an exponential rate. It's also become a much better piece of software, almost becoming a transparent experience to the user, who can set up a beautiful, fully functional site or CMS in minutes. There are many user-focused sites that will help with the basics, but as you get further into WordPress, the list of reliable resources on more advanced topics grows thin. This presents an opportunity...
These days, cutting through the noise to find the quality content is a full-time job. Most of us are already working non-stop, so taking time to keep up on the ever-changing world of WordPress can be a challenge. I've spent countless hours searching through blog posts and forum threads looking for reliable, in-depth information on things like custom fields, image attachments, and post types. You know, those slices of WordPress wisdom that really provide some real-world, useful information.
It’s interesting to look back at our previous WordPress themes round-ups. It’s almost like looking at a visual timeline not only of WordPress’ advances in theme design, but of the rapid development in functionality of the CMS itself. The themes from year to year clearly differ in style as Web design trends have evolved. As each year passes and more functionality is added to WordPress’ core, these improvements are strongly reflected in the themes developed for it.
Once upon a time, all WordPress themes looked like traditional blogs, with basic functionality and not a heck of a lot more. But as you will see from the themes below, that original “blog” design style is clearly gone, perhaps never to be seen again. It makes you feel nostalgic.
Nowadays, user requirements for WordPress themes are very high. Users expect all themes (including free ones) to have pages for admin options built in, where you can quickly set up your website and personalize it with a minimum of fuss. With the rise of these options pages, niche-specific theme designs (such as for portfolios, blogs or magazines) are no longer required and are, in fact, few and far between.
The WordPress eco-system has changed so much in the past few years that keeping up with all of it has become a challenge! It's been so encouraging not only to see WordPress themes and plug-ins increase in quality and use, but to see the overall appeal and acceptance in the worldwide marketplace grow as well.
For example, you know that an application is gaining a lot of steam when some of the largest organizations in the world (including many Fortune 50 businesses) are starting to use it for both their internal and external properties.