Archive | May, 2013

Increasing the PHP timeout on NGINX for WordPress

I’ve been using a Vagrant development set up for a while now, which has introduced me to NGINX after always using Apache in the past. The transition has been fine in the main, though I had an issue yesterday with PHP scripts timing out on me, so needed to figure out how to extend the […]

Continue Reading Comments { 1 }
Mac Console

Sending your own output to the WordPress debug log

Every WordPress developer knows how to use WP_DEBUG in the wp-config.php file to enable the WordPress debug log. But how do you go about sending output to the WordPress debug log, so you can debug your own code while developing a theme or plugin? Every developer is familiar with using the old print_r($my_stuff); die; trick to […]

Continue Reading Comments { 4 }

Getting the WordPress current template name in posts and pages

Yesterday I needed to selectively hide breadcrumbs for particular WordPress templates, but had some issues with getting the WordPress current template name when needed, so I thought I’d share how I went about it. First things first – the way you go about it depends on whether you’re working with pages or posts – these are not seen […]

Continue Reading Comments { 5 }
A/B testing

Simple A/B testing in WordPress with Google Analytics site experiments

As we’re about to make some significant tweaks and changes to the main product pages on the Smart Insights site, I’ve looked at a lightweight way to do simple A/B testing in WordPress. What is A/B testing? You’ll probably be aware of the concept, I’m sure! A/B testing, also called split testing or multivariate testing, […]

Continue Reading Comments { 23 }

Disable WordPress notifications email for users and admins

I’ve just had two separate issues in two days which needed me to try to disable WordPress notifications email. WordPress sends a lot of automated email, and it’s not so easy to see how to change or suppress it. So I thought I’d share the solutions I found in case it saves anyone else time, […]

Continue Reading Comments { 6 }