Changing a database table prefix is easy and here’s the simple step-by-step guide! For WordPress installations, it’s essential!
This post is short — no intro to UNIX file permissions or a plethora of commands, just how to easily setup WordPress file & database permissions!
So you need to get a subtring between two strings? A quick Google returns about 101,000 results, the first three of which are from StackOverflow and solve the problem for rather specific use-cases. I wanted to solve the problem once-and-for-all in a more general-purpose way.
Unidimensional arrays and objects can be converted by casting (e.g.
$array = (array) $object; /
$object = (object) $array;) but if multidimensional only the first tier is converted. Here’s the solution!
When a full RDBMS is overkill, you can use Excel to model relational data over multiple spreadsheets. Simple but surprisingly powerful!
WordPress always adds an
alt attribute to images added via the Media Library so finding images without alternative text is easy!
Here’s a quick-and-dirty way to create custom global commands in Command Prompt (cmd.exe) with parameters.
Continue reading “Custom global commands in Command Prompt (cmd.exe) with parameters”
Shortcodes are a great way to extend WordPress and as developers there are some pretty groovy undocumented tricks we can employ.
Showing keyboard keys in your content is super-easy with a plugin for TinyMCE and, at most, a bit of CSS in your theme.
Sometimes you just want to set a typographic baseline manually without scripts. When you do, you’ll need some horizontal lines…