Latest Posts

Using PHP’s PDO With WordPress

1I know what you want. You want a code snippet you can paste into your WordPress project so you run custom SQL against your WordPress database. I’ll give it to you, but stick around if you want to learn more about why I started using PDO in my WordPress plugin alongside of $wpdb. Here it […]

Read it

Connect to a WordPress Lightsail Database from a GUI

Learn how to connect to your Lightsail database from TablePlus, MySQL Workbench, and any database GUI that supports SSH connections.

Read it

WordPress Post Syntax Highlighting with Highlight.js and Prism

There are plenty of WordPress plugins for syntax highlighting, but the ones I tried (and I tried many) tried to integrate into the editor, letting you edit code with syntax highlighting enabled. This isn't what I wanted. I wanted a syntax highlighter to highlight the code blocks in my blog posts as visitors were reading them.

Read it

Add a Link to Your Plugin from the WordPress Plugin List

There's nothing more annoying than installing a new WordPress plugin and having to dig around the WordPress admin menu to figure out where the plugin lives. In this post, you'll learn how to add a link to your plugin page from the plugin list.

Read it