Snippet to add Edit link to category archive page

WooCommerce and its Storefront theme display so-called category archive pages to list products in the category. If the category includes a description, it shows at the top of the page along with the category’s name. This php snippet adds an Edit link to those pages allowing a privileged user logged in to the Dashboard to … Read more

Speeding up WordPress database operations

Rick James and I are cooking up a plugin to help optimize the way WordPress uses its MySQL database. The basic idea It’s an ordinary WordPress plugin, downloadable from the plugin repository. As of early June 2021 it’s a work in progress. It’s here on github. Upon activation, it examines … the WordPress version and … Read more

Transcoding JPEG optimizer from Mozilla

The people at Mozilla have produced a transcoding JPEG optimizer. https://github.com/mozilla/mozjpeg/releases This thing is sweet: it takes ordinary JPEG files and recompresses them much more efficiently without making the images deteriorate. It uses the long-standing and well-tested Independent JPEG Group reference implementation, and adds a bunch of optimizations. It’s not built for GUI users; it’s … Read more

Cost-effective Digital Signs

A digital sign is a big TV set in a public place showing information or possibly advertisements. Ideally a digital sign can show upcoming events, announcements, pictures, advertisements, and other stuff that’s relevant to a community of people who might look at the sign. How can you make a digital sign with off-the-shelf 2014 technology? … Read more

Resources for WordPress plugin development

PHP Manual   PHP The Right Way  Vagrant Opscode Chef Cookbook sources    php-o … some function wrappers Guidelines for theme development: some of this applies to plugins as well. Messing around with the new media manager   Gmail Modern HTML/CSS tutorial PDF metadata  http://framework.zend.com/manual/1.12/en/zend.pdf.info.html From the CODEX http://codex.wordpress.org/Writing_a_Plugin Hints and tips http://wp.smashingmagazine.com/2011/03/08/ten-things-every-wordpress-plugin-developer-should-know/ Best practices http://wp.smashingmagazine.com/2010/07/30/lessons-learned-from-maintaining-a-wordpress-plug-in/ … Read more