The crossplatform email game has gotten a lot easier in the past five years: the main platforms to target are iOS and Android. Everyone else gets the same content.
Continue reading HTML Email Got Easier
You’re running the WP-CLI and get that message, plus the following error:
Error: One or more database tables are unavailable. The database may need to be repaired.
Continue reading PHP Notice: Undefined index: HTTP_HOST in /home/…/ms-settings.php on line 48
I think VBA was supposed to sunset in the previous decade, but it just won’t go away. Back in the mid 2010s I wrote a lot of articles about VB.NET and VBA. It’s over at the old site. Can’t keep a glue language down.
I am migrating from Drupal to WordPress, but don’t want to copy everything over. Some articles, I want in WordPress, but others can be left on the old site, or even on an old static archive.
This tool helps create the rewriter rules, and inserts them into the .htaccess file.
Continue reading URL Migration Tool
In yesterday’s post, I talked about fixing up old PHP code to be safer.
There’s another anti-pattern common in old PHP code, and that’s mixing the display logic with the output logic. While some of this is inevitable, nowadays, the rule is to use a templating system like Twig to separate out even small bits of HTML code from the logic.
WordPress does this on the front end via Underscore templates, but configured to use Handlebars-like syntax.
This is a PHP class that does the same thing with PHP. I wrote it so I could use the same, or similar, templates on both the client and server side.
Continue reading WP’s Backbone-like Templating Language