Creating and maintaining a blog isn’t easy. Getting your site to look right, load quickly, and be mobile friendly takes time. And, after all that, you still need to craft your content, and make sure it reaches as many people as possible. For this, you need to be strategic about when you schedule it to post on your social media channels—the operative word being schedule. Here we’ll take a look at some of the necessary tools for streamlining your editorial workflow and scheduling your content for maximum engagement. Having a successful blog requires a carefully planned editorial process: you need to schedule when […]
On the WordPress REST API: Reflecting on the past and looking to the future
If you go to a WordCamp and spend anytime around developers, it is hard to not notice the excitement around the new WordPress REST API. The REST API team just released version 1.2 of the plugin, which they are continuously developing with the goal of merging it into WordPress core. It’s a big project, much bigger than Ryan McCue—who, along with Rachel Baker, leads the project—ever thought it would be. I recently spoke with Ryan about the challenges of such a huge project and about the complexities in creating a “universal API” for every WordPress site, as well as the plans […]
Staying safe and DRY with register_meta()
I know this is probably going to upset, but this is the best way to save an input from a form to a post meta field in WordPress: update_post_meta( $post->ID, ‘_slug_number_field’, $_POST[ ‘number_field’ ] ); And yes, on its own that line of code is a terrible, no good idea. Most likely, you mentally rewrote it to something like this: if ( isset( $_POST[ ‘number_field’ ] ) && 0 < absint( $_POST[ ‘number_field’ ] ) ) { update_post_meta( $post->ID, ‘_slug_number_field’, (int) $_POST[ ‘number_field’ ] ); } Before I discuss how to make that first line of code acceptable, I […]
Stronger together, learning from WordPress security vulnerabilities
Last week two very popular plugins, WooCommerce and WordPress SEO, identified, fixed, and disclosed security issues. The details of these vulnerabilities are now publicly available, which allows other developers to learn from their mistakes. In a previous article for Torque, I discussed the importance of responsibly disclosing security issues. To get a better understanding of this in relation to the recent vulnerabilities I reached out to James Golovich, a WordPress developer who recently discovered security issues in WP All Import, Easy Digital Downloads, and IgnitionDeck as well as several other plugins and themes, which he details on his highly informative blog. […]
Defining the WordPress 80/20 problem
The 80/20 rule, also known as the Pareto Principle, states that “for many events, roughly 80% of the effects come from 20% of the causes.” The 80/20 rule is named after Italian economist Vilfredo Pareto, and was popularized as a business tool in the book Living the 80/20 Way, by Richard Koch. This is one of the most useful principles for finding the most important things to focus on in business marketing and development. Identifying the 20% of your efforts that have the biggest impacts is a fundamental step in maximizing your efficiency in any pursuit. Most people with a freelance web […]
Defining best practices and SOPs: Have you defined “doing it right?”
These days everyone is talking about following best practices, established standards, and just doing it right. This is undeniably great, but does your company have a clear definition of what any of this means? I ask because documenting this information can create a valuable resource for your employees and contractors to learn from—all while establishing a company-wide standard. More importantly, however, it creates a way to offer the most constructive type of feedback to those who are not doing it right. Instead of telling them they are flat out wrong, you can direct them to where it says how to do […]
Creating location-aware WordPress sites with GeoIP
One of the best things about having an online business is that you can reach customers all over the world. Of course this creates unique complications, as users in different countries and regions have specific needs, and are subject to different laws. For eCommerce sites, knowledge of your site’s visitors is especially important for calculating tax rates. In addition, it’s also important to consider if you are selling something that could be illegal in certain regions. For this, geolocation awareness — i.e., the ability to programmatically be aware of a visitor’s location, by country, region, or even longitude and latitude — […]
Lessons we can learn from Jetpack, and how it’s helped WordPress succeed
Of the many gifts that Automattic has given this community, Jetpack is definitely one of the greatest. Jetpack is an all-in-one suite of tools, including services that run on WordPress.com’s servers, for free, that couldn’t be handled by the kind of $5 per month shared hosting packages many users start with. If it wasn’t for this plugin helping to ease the onboarding of new users, WordPress would not be where it is today. Automattic has gained a lot from this: they are a company, with a simple objective to make money, pay salaries, and provide a quality return on investment […]
Automating WordPress plugin updates and releases with Grunt
In my last article, I demonstrated how to use three tools for automating WordPress theme, plugin, and full-site development using Grunt, a taskrunner that uses JavaScript for scripting. Creating tasks with Grunt to automate repetitive processes is actually quite easy. Not only is there a huge number of pre-existing tasks available, but its use of JavaScript also has its advantages. In this article I will be showing you how to automate the process of releasing a plugin. This is something I recently did for the Pods Framework, after an incident where I skipped a step doing it manually, causing our admin […]
Using Grunt to automate redundant tasks in WordPress development
Grunt is a NodeJS-powered, automated JavaScript task runner that can be used to take a lot of the repetitive work out of web development. In this article, I will give an introduction to Grunt and the technologies it works with, as well as go over some of the ways it can be used to improve WordPress development. I will also recommend some tools to get you up and running with Grunt for plugin and theme development, and generating full WordPress sites. In a future article, I will cover how to automate the process of preparing a plugin for release on WordPress.org […]
2 Comments