1. 2017

    Move your WordPress site from non-www to www domain

    So, you’ve launched your WordPress site on a non-www domain, like example.com, but since then found out that running it on on www, like www.example.com, is better and want to move? You’re in luck, because it is really easy.

  2. 2017

    To www or not to www – Should you use www or not in your domain?

    For 20 years or so, there has been the debate over whether you should use www or not in your web site’s canonical hostname. So should you use www or not?

  3. 2017

    Keep the internet healthy – Internet for people, not profit.

    “ [A healthy Internet needs all of us](https://www.mozilla.org/en-US/internet-health/)”, Mozilla states. And they’re right.

  4. 2017

    Encrypt and decrypt a file using SSH keys

    If you have someone’s public SSH key, you can use OpenSSL to safely encrypt a file and send it to them over an insecure connection (i.e. the internet). They can then use their private key to decrypt the file you sent.

  5. 2016

    Flexible Content Fields in Field Manager

    [Field Manager](http://fieldmanager.org/) doesn’t have a flexible content field type as [Advanced Custom Fields Pro](https://www.advancedcustomfields.com/pro/) does, but it is possible to mimic the functionality by using a little logic.

  6. 2016

    Do you want my time for free?

    Publishing open source software or articles for free is very giving. Not only does it give you a warm fuzzy feeling inside when someone appreciates what you release, but it can also have [other indirect consequences](https://www.ostraining.com/blog/wordpress/giving-back/) that give you a happier life. But when something is free – as in no cost – people will also often turn to a mindset where they don’t appreciate your effort, time or value as a human being. For some reason, some people forget all about being polite and demands that I give them professional support because they can’t read instructions, don’t know what they are doing, or just feel like their time is much more important than mine.

  7. 2016

    Moderate WordPress comments with WP-CLI

    I very much appreciate comments that bring new insights, corrects my errors, or leaves a thank you note. But even so, it is a bit tedious to moderate comments. Though logging into WordPress – even with [two-factor authentication](https://www.bjornjohansen.com/two-factor-authentication-for-wordpress) enabled – isn’t much of a hassle, it is still a nuisance when you just want to approve or trash a couple of comments.

  8. 2016

    How to do an Nginx redirect

    Nginx is an extremely efficient and quite flexible web server. When you want to do a redirect in Nginx, you have a few options to select from, so you can choose the one that suits you best to do an Nginx redirect.

  9. 2016

    The future of Certificate Authorities

    With the advent of the fully automated and free of cost certificate authorities Let’s Encrypt and StartCom there is no doubt that the future of CAs are changing.

  10. 2016

    SVG uploads in WordPress (the Inconvenient Truth)

    Enabling uploads of SVG files in WordPress is quite easy, and there is a tonne of posts on the Interwebs explaining how you do it. Usually along the lines of: ``` function add_svg_to_upload_mimes( $upload_mimes ) { $upload_mimes['svg'] = 'image/svg+xml'; $upload_mimes['svgz'] = 'image/svg+xml'; return $upload_mimes; } add_filter( 'upload_mimes', 'add_svg_to_upload_mimes', 10, 1 ); ``` And that’s pretty much it. Except it is not.