This post is short — no intro to UNIX file permissions or a plethora of commands, just how to easily setup WordPress file & database permissions!
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 substring 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.
Continue reading →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 →
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…
The easiest way to style your editor is by applying your theme’s stylesheet, making content look the same while editing as it does in your content.